我在 macOS 10.12 主机上安装了 Debian VM。由于某种原因,每当我弹出VBOXADDITIONS
CD 时,我都会启动到紧急模式。只有重新安装该CD并重新启动才能正常启动。有没有解决这个问题的方法,或者我最好还是将其安装好?
中有对磁盘的引用/etc/apt/sources.list
,如图:
#
# deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 xfce-CD Binary-1 20160917-14:22]/ jessie main
# deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 xfce-CD Binary-1 20160917-14:22]/ jessie main
deb http://ftp.us.debian.org/debian/ jessie main
deb-src http://ftp.us.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
# jessie-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ jessie-updates main
deb-src http://ftp.us.debian.org/debian/ jessie-updates main
还有对 a 的cdrom0
引用/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=de666870-7693-4c4d-a11d-67158e0898a5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=4032a035-cc16-4483-a6ce-c2a5196be7b6 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,exec 0 0
答案1
在 /etc/fstab 中,当引导期间发出“mount -a”时,您将自动安装 CD。
改变
/dev/sr0 /media/cdrom0 udf,iso9660 user,exec 0 0
到
/dev/sr0 /media/cdrom0 udf,iso9660,user,exec,noauto 0 0
答案2
您需要编辑源列表并在行前添加#
deb cdrom:[Debian GNU/Linux 8.6.0杰西- 官方 amd64 xfce-CD Binary-1 20160917-14:22]/jessie main
保存并退出。
它认为 CD 仍在用作存储库并且需要存在。在 Windows 中, # 会将其排除并停止。