如何解决Ubuntu中的磁盘挂载错误
自动挂载Ext4分区时,报错:
mount: wrong fs type, bad option, bad superblock on /dev/sda7, missing codepage or helper program, or other error In some cases useful info is found in syslog try dmesg | tail or so
当我尝试通过GUI挂载分区时,它给了我以下错误:
Unable to mount 80 GB Fliesystem Error mounting: mount exited with exist code 1: helper failed with: mount: only root can mount /dev/dsa7 on /media/80GB
dmesg | tail命令错误信息如下
[ 2123.530257] [] ? ieee80211_scan_rx+0x190/0x190 [mac80211]
[ 2123.530264] [] worker_thread+0x124/0x2d0
[ 2123.530270] [
[ 2123.530278] [] kthread+0x6d/0x80
[ 2123.530285] [
[ 2123.530292] [
[ 2123.530297] —[ end trace befde56ba3820bed ]—
[ 2675.446643] EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: (null)
[ 4831.528024] EXT4-fs (sda7): Unrecognized mount option “uid=1000” or missing value
[ 5441.695588] EXT4-fs (sda7): Unrecognized mount option “uid=1000” or missing value
修复磁盘安装错误
dmesg指出了有问题的部分。 uid = 1000时遇到问题。实际上,我已经编辑了/ etc / fstab文件,以包括以下行来自动挂载Ext4分区:
UUID=f920adf0-6038-4145-8214-4e1b79ca2d9b /media/80GB ext4 defaults,uid=1000 0 0
我用下面给出的行对其进行了更改,以删除麻烦的" uid = 1000":
UUID=f920adf0-6018-4145-8314-4e1b79ca2d6b /media/80GB ext4 defaults 0 0