今日将以前用作USB移动硬盘的一个80G西数IDE挂在机器主板上了。这样就有一个SATA硬盘和IDE盘
通过SATA 进入Ubuntu发现 位置-计算机 中并没有新添加的IDE盘分区
进入 系统-系统管理-磁盘实用工具 发现 IDE盘能够识别 但 挂载点 为空
点击 挂载 按钮 弹出
Error mounting: mount exited with exit code 1: helper failed with:
mount: according to mtab, /dev/sda1
is already mounted on /
mount failed
信息,说明sda1 已经挂载了。
分析原因,先前系统中只有SATA硬盘,故分区是从sda1开始的
现在新添加了一块IDE硬盘,IDE在系统中识别顺序先于SATA 故系统自动认为 IDE是sda,但sda事实上是SATA盘,IDE应该是sdb!
故需要重新分配挂载点
执行一下命令:
sudo gedit /etc/fstab
打开gedit编辑器,编辑/etc/fstab文件 如下:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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
/dev/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda4 during installation
UUID=e50dd7b3-09b5-4275-83da-f196937e502e none swap sw 0 0
这是一个静态文件系统信息配置文件,由于我们要挂载IDE盘被占用的是sda1于是
将sda1那行语句加#号注释掉,如下:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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
#/dev/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda4 during installation
UUID=e50dd7b3-09b5-4275-83da-f196937e502e none swap sw 0 0
重启,系统已经顺利挂载IDE磁盘上的分区,可以对其操作了。
本文介绍了如何在已有一块SATA硬盘的Ubuntu系统中添加IDE硬盘,并解决因系统识别错误导致的挂载失败问题。通过修改/etc/fstab文件,注释掉原本的sda1挂载配置,成功挂载新IDE硬盘。
1316

被折叠的 条评论
为什么被折叠?



