首页 > 其他 > 详细

挂载本地硬盘的ISO镜像文件

时间:2016-05-18 08:01:29      阅读:200      评论:0      收藏:0      [点我收藏+]

1.定位Debian ISO镜像的位置,比如说sda3

fdisk -l

2.挂载:

# mount -t auto /dev/sda3 /media/mnt

生成isodebian路径 /mnt# mkdir isodebian

t# mount -o loop /media/mnt/debian-8.4.0-amd64-DVD-1.iso /mnt/isodebian
mount: /dev/loop0 is write-protected, mounting read-only

3.添加本地源 

/etc/apt# vi sources.list

 

deb http://ftp.cn.debian.org/debian/ jessie main contrib
deb-src http://ftp.cn.debian.org/debian/ jessie main contrib
deb file:///mnt/isodebian jessie main contrib

 4. 验证更新

#apt-get update

挂载本地硬盘的ISO镜像文件

原文:http://www.cnblogs.com/guxuanqing/p/5503871.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!