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.
本文介绍如何将DVD映像用作Debian系统的安装源。首先,你需要将DVD复制为ISO文件,然后修改/etc/fstab以挂载ISO文件。接着,更新source.list文件,将CDROM源替换为文件系统路径。最后执行"apt-get update"更新源。
1万+

被折叠的 条评论
为什么被折叠?



