ultramancliub 大佬有话说 :
debian文件系统变成只读了…Read-only file system
chmod: changing permissions of ‘sources.list’: Read-only file system
系统变成只读,搜网络知识库,得知“mount”命令可救
但我执行“mount -rw -o remount /”,提示"mount: /: mount point not mounted or bad option."
魔怔了,求各位小伙伴援助。
root@:~# mount -rw -o remount /
mount: /: mount point not mounted or bad option.
https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif
AD盖 大佬有话说 :
mount -o remount, rw /
ultramancliub 大佬有话说 :
服务器在德国HZ,经历了一次不正常的机房断电,就这样了。:Lhttps://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif
ultramancliub 大佬有话说 :
AD盖 大佬有话说 : 2022-8-12 14:27
mount -o remount, rw /
mount: /: mount point not mounted or bad option.https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif
AD盖 大佬有话说 :
ultramancliub 大佬有话说 : 2022-8-12 14:30
先lsblk,查看是根分区是挂在哪块硬盘上,然后 / 改成对应设备目录(/dev/xxx)
ultramancliub 大佬有话说 :
AD盖 大佬有话说 : 2022-8-12 14:34
先lsblk,查看是根分区是挂在哪块硬盘上,然后 / 改成对应设备目录(/dev/xxx)
lsblk
NAME MAJ:MIN RMSIZE RO TYPEMOUNTPOINT
nvme0n1 259:0 03.5T0 disk
├─nvme0n1p1 259:1 0 2G0 part
│ └─md0 9:0 0 4G0 raid0
├─nvme0n1p2 259:2 0512M0 part
│ └─md1 9:1 0511M0 raid1 /boot
├─nvme0n1p3 259:3 03.5T0 part
│ └─md2 9:2 0 7T0 raid0 /
└─nvme0n1p4 259:4 0 1M0 part
nvme1n1 259:5 03.5T0 disk
├─nvme1n1p1 259:6 0 2G0 part
│ └─md0 9:0 0 4G0 raid0
├─nvme1n1p2 259:7 0512M0 part
├─nvme1n1p3 259:8 03.5T0 part
│ └─md2 9:2 0 7T0 raid0 /
└─nvme1n1p4 259:9 0 1M0 part
目前是这样的,软RAID0https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif
AD盖 大佬有话说 :
ultramancliub 大佬有话说 : 2022-8-12 14:39
目前是这样的,软RAID0
将 / 改为 /dev/md2 重新挂载
zccyun 大佬有话说 :
检查下分区和盘是否有损坏。。。
进ro是一种保护措施。。。大概跟主板防呆插口一样。防呆插口插不上不要大力出奇迹哦
ultramancliub 大佬有话说 :
AD盖 大佬有话说 : 2022-8-12 14:47
将 / 改为 /dev/md2 重新挂载
root@:~#mount -o remount, rw /dev/md2
mount: /dev/md2: mount point not mounted or bad option.
root@:~#mount -o rw /dev/md2
mount: /: /dev/md2 already mounted on /.
root@:~#mount -o remount, rw /dev/md2
mount: /dev/md2: mount point not mounted or bad option.
还是和“/”一样的结果,https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif
hfhfg 大佬有话说 :
就是坏了,要修复才会恢复。