Linux file system become read-only solution

Solution

1, restart see if you can repair (many machines possible).

To repair the file system y / dev / hdc6 (/ dev / hdc6 refers you need to fix the partition) - 2, use with fsck.

3. If, during the repair time and some will complain partition, reboot the system the problem remains.

 

View the next partition structure

[root@localhost ~]# mount

/dev/sda3 on / type ext3 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/sda1 on /boot type ext3 (ro)

tmpfs on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

View ro mounted partition, if found to have ro, to re-mount

umount /dev/sda1

mount /dev/sda1 /boot

If you find a prompt "device is busy", to find what is the process of making him busy

fuser -m / boot module will display that uses this pid

fuser -mk / boot will directly kill the pid

Then you can re-mount.

4, direct remount, command

[root@localhost ~]# mount -o rw,remount /boot

 

 

This article comes from: https://www.cnblogs.com/wajika/p/6815176.html

Guess you like

Origin www.cnblogs.com/flower-0626/p/11687514.html