Linux文件系統(tǒng)變成只讀解決辦法
1.重啟看是否可以修復(fù)(很多機(jī)器可以)宇塵網(wǎng)絡(luò)幫助中心域名知識(shí)|虛擬主機(jī)知識(shí)|VPS主機(jī)知識(shí)|服務(wù)器知識(shí)|網(wǎng)站建設(shè)知識(shí)|網(wǎng)絡(luò)推廣
2.使用用fsck – y 來(lái)修復(fù)文件系統(tǒng)
3.若,在進(jìn)行修復(fù)的時(shí)候有的分區(qū)會(huì)報(bào)錯(cuò),重新啟動(dòng)系統(tǒng)問(wèn)題依舊
查看下分區(qū)結(jié)構(gòu)
[root@localhost mobile]# more /etc/fstab
[root@localhost ~]# more /proc/mounts
[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)
仿牌空間、香港月付空間、韓國(guó)月付空間、日本月付空間、荷蘭VPS、香港VPS
查看ro掛載的分區(qū),如果發(fā)現(xiàn)有ro,就重新mount
umount /dev/sda1
mount /dev/sda1 /boot
如果發(fā)現(xiàn)有提示“device is busy”,找到是什么進(jìn)程使得他busy
fuser -m /boot 將會(huì)顯示使用這個(gè)模塊的pid
fuser -mk /boot 將會(huì)直接kill那個(gè)pid
然后重新mount即可。美國(guó)月付空間、月付美國(guó)空間、美國(guó)VPS、美國(guó)服務(wù)器租用
4.直接remount,命令為
[root@localhost ~]# mount -o rw,remount /boot 更多技術(shù)知識(shí),更多網(wǎng)絡(luò)服務(wù),盡在宇塵網(wǎng)絡(luò)。我們的成長(zhǎng),離不開(kāi)你們的支持,宇塵網(wǎng)絡(luò),歡迎您的訪問(wèn)。