virtualBox开机挂载windows分区,并把光盘镜源设为源

virtualBox开机挂载windows分区,并把光盘镜源设为源。

设置fstab文件。把windows的d,e,f盘分别开机挂载到了/misc/d /misc/e /misc/f 。/misc是自建的目录,是miscellany的缩写。

# cat /etc/fstab 

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=590c2b64-87b7-4f92-b32f-7133139be772 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=1e4e1188-d057-4210-99e7-6f2d1529db80 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
D_DRIVE         /misc/d         vboxsf      rw,auto         0       0             0
E_DRIVE         /misc/e         vboxsf      rw,auto         0       0             0
F_DRIVE         /misc/f         vboxsf      rw,auto         0       0             0
/misc/d/debian_ios/debian-7.1.0-amd64-DVD-1.iso /misc/a_iso udf,iso9660 user,loop,auto 0 0
/misc/d/debian_ios/debian-7.1.0-amd64-DVD-2.iso /misc/b_iso udf,iso9660 user,loop,auto 0 0
/misc/d/debian_ios/debian-7.1.0-amd64-DVD-3.iso /misc/c_iso udf,iso9660 user,loop,auto 0 0

 

我的sourcse.lst文件。

deb file:///misc/a_iso stable main contrib

deb file:///misc/b_iso stable main contrib

deb file:///misc/c_iso stable main contrib