Ubuntu 22.04 新增硬盘挂载后变为只读文件系统的GUI解决方案求助
刚入手了一块新硬盘,本来以为安装挂载应该挺简单的——毕竟这种日常操作,普通用户不该非得靠命令行搞定吧?所以我就跟着一个GUI指南一步步操作了。
一开始还挺顺利的,我能从应用里往这块硬盘上写文件,但后来想修改这个文件的时候,系统居然提示这是只读文件系统!我试着用命令改权限:
sudo chmod 777 file_name
结果得到的报错是:
chmod: changing permissions of file_name: Read-only file system
就连修改挂载文件夹的权限也报同样的错。
更奇怪的是,打开GParted的时候,这块新硬盘直接在下拉菜单里找不到,还弹出了错误提示;不过Disks应用倒是能看到它的信息。
我补充了一些排查信息:
执行findmnt -T /media/ssd的输出:
TARGET SOURCE FSTYPE OPTIONS /media/ssd /dev/sda1 ext4 ro,nosuid,nodev,relatime
执行findmnt --fstab的输出:
TARGET SOURCE FSTYPE OPTIONS / UUID=3983f8b5-04f5-4eb4-8356-5f749f7cbaa6 ext4 errors=remount-ro /boot/efi UUID=9450-FE9C vfat umask=0077 none /swapfile swap sw /media/ssd/ /dev/disk/by-uuid/c1189942-b1c5-432f-815b-cdcb40054877 auto nosuid,nodev,nofail,x-gvfs-show
还有执行磁盘检查命令的结果:
sudo fsck -y /dev/sda1
输出:
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
fsck.ext2: Input/output error while trying to open /dev/sda1
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193
or
e2fsck -b 32768
有没有大佬能给个纯GUI操作的简单解决方案呀?我用的是Ubuntu 22.04系统。
备注:内容来源于stack exchange,提问作者rare77

