使用ISO映像作为Debian的安装源

Once I installing Debian system using a DVD,  every time install a new software, I have to insert that DVD disc into DVD-Rom, that is inconvenient.

 

This tips tells you how to use the DVD image as the primary source.

First, you need to copy DVD to an iso file, here is the command. Insert disc into DVD-Rom, and type:

cp /dev/cdrom   ~/debian-6.0.1a-i386-DVD-1.iso

Now you get your iso file, to use this file, we need mount it to our system automatically. And you need modify /etc/fstab file. Add the following line at the tail.

/home/ISOs/debian-6.0.1a-i386-DVD-1.iso  /mnt/debian-dvd udf,iso9660 user,loop 0 0

/home/msi/ISOs/debian-6.0.1a-i386-DVD-1.iso  means the place you store the iso file,

/mnt/debian-dvd means when you mount the iso to your system, you can find contents here.

 

Ok, time to modify the source list file. Open /etc/apt/sources.list

 

Modify the line  deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 DVD Binary-1 20110322-15:11]/ squeeze contrib main”  to  deb file:/mnt/debian-dvd/ squeeze contrib main

Save and close.

And then use “apt-get update” to update the source.

That’s all.

 

 

你可能感兴趣的:(使用ISO映像作为Debian的安装源)