书签/计算机中未自动检测/安装附加硬盘和闪存驱动器

书签/计算机中未自动检测/安装附加硬盘和闪存驱动器

我恢复了昨天创建的 Ubuntu 分区的副本。一切正常,只是我无法从启动器看到我的附加硬盘(创建磁盘映像时会显示它们)。如果我从终端安装它们,它们会显示在书签中,但重新启动后,它们又消失了。

安装内容:

/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/kaven/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=kaven)
/dev/sdb1 on /media/Storage type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb2 on /media/Win7 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=063c3b6a-cd55-4d31-bb89-1afa1e5823e8 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=ac9cee77-f306-4da6-b404-27f9db390e2e none            swap    sw              0       0

sudo blkid 的内容:

/dev/sda2: UUID="063c3b6a-cd55-4d31-bb89-1afa1e5823e8" TYPE="ext4" 
/dev/sda5: UUID="ac9cee77-f306-4da6-b404-27f9db390e2e" TYPE="swap" 
/dev/sdb1: LABEL="Storage" UUID="6A4C3AF14C3AB7A1" TYPE="ntfs" 
/dev/sdb2: UUID="B6E2DEADE2DE70DB" TYPE="ntfs" 
/dev/sdb3: UUID="b464937b-4d07-4c50-8c87-7fde6b3eeca5" TYPE="ext4"

我该如何继续?

答案1

您的系统/etc/fstab尚未恢复,并且不包含在启动时安装第二个硬盘上的分区所需的语句。

为此,请将以下几行添加到/etc/fstab

#mount /dev/sdb 1 and 2 at boot time:
UUID=6A4C3AF14C3AB7A1  /media/Storage  ntfs-3g  defaults,noexec,windows_names,locale=en_US.utf8  0  2
UUID=B6E2DEADE2DE70DB  /media/Win7     ntfs-3g  defaults,noexec,windows_names,locale=en_US.utf8  0  2

并且两者都sdb1sdb2在启动时安装!

由于你没有指定挂载点sdb3,我无法提供给你,但你现在应该能够通过查看其余部分自己弄清楚这一点fstab 并阅读官方文档

;-)

相关内容