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

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

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.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值