我尝试访问mount -a
我的硬盘。但最终我得到了这个响应
root@server:~# mount -a
[mntent]: line 16 in /etc/fstab is bad
[mntent]: line 18 in /etc/fstab is bad
[mntent]: line 20 in /etc/fstab is bad
[mntent]: line 22 in /etc/fstab is bad
以下是我的blkid
和fstab
信息。
我可以知道如何修复它吗?
root@server:~# blkid
/dev/sda1: UUID="2c5e3f03-9c84-45ce-8b66-250b2ee16f18" TYPE="ext4"
/dev/sda3: UUID="4fbcae12-a919-498e-8eb5-43cd60ef939d" TYPE="ext4"
/dev/sdc1: UUID="ef042524-6d80-430f-980a-fb658362f8fa" TYPE="ext4"
/dev/sdb1: UUID="2bc1aa0c-ccb1-4f12-89c5-0bfa56f43ddf" TYPE="ext4"
/dev/sdd1: UUID="b6eb5a17-f4b8-45ba-bdfb-34c6f15198b7" TYPE="ext4"
/dev/sde1: LABEL="GMS Backup" UUID="d33007ad-90e0-42d5-9c51-0e1999c18f00" TYPE="ext4"
# /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=2c5e3f03-9c84-45ce-8b66-250b2ee16f18 / ext4 errors=remoun$
# /home was on /dev/sda3 during installation
UUID=4fbcae12-a919-498e-8eb5-43cd60ef939d /home ext4 defaults $
# swap was on /dev/sda5 during installation
UUID=516752cc-4617-4016-a8cb-93979d289241 none swap sw $
# /media was on /dev/sdb1 during installation
UUID=2bc1aa0c-ccb1-4f12-89c5-0bfa56f43ddf /media ext4 defaults $
# /media was on /dev/sdd1 during installation
UUID=b6eb5a17-f4b8-45ba-bdfb-34c6f15198b7 /media ext4 defaults $
# /media was on /dev/sdc1 during installation
UUID=ef042524-6d80-430f-980a-fb658362f8fa /media ext4 defaults $
# /media was on /dev/sde1 during installation
UUID=d33007ad-90e0-42d5-9c51-0e1999c18f00 /media ext4 defaults $
提前致以崇高的谢意。
答案1
据我所知,您不能将多个不同的块设备(由不同的 UUID 表示)安装到同一个文件系统安装点/media
(至少在没有某种覆盖文件系统的情况下不能)。
您需要创建单独的挂载点,例如/media/disk1
,/media/disk2
等等,然后将 fstab 文件修改为类似
# /media was on /dev/sdb1 during installation
UUID=2bc1aa0c-ccb1-4f12-89c5-0bfa56f43ddf /media/disk1 ext4 defaults
# /media was on /dev/sdd1 during installation
UUID=b6eb5a17-f4b8-45ba-bdfb-34c6f15198b7 /media/disk2 ext4 defaults
# /media was on /dev/sdc1 during installation
UUID=ef042524-6d80-430f-980a-fb658362f8fa /media/disk3 ext4 defaults
# /media was on /dev/sde1 during installation
UUID=d33007ad-90e0-42d5-9c51-0e1999c18f00 /media/disk4 ext4 defaults
答案2
编辑并删除行末的/etc/fstab
所有内容。$