做了幾個檔案系統的練習後 linux 無法啟動了(轉)

BSDLite發表於2007-08-15
做了幾個檔案系統的練習後 linux 無法啟動了(轉)[@more@]1. 我是用虛擬機器裝了LINUX
2. 原系統掛載情況如下
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda1 ext2 2347..... 145.... ...... 25% /
/dev/shm tmpfs 127808 816 ....... 1% /dev/shm
/dev/sda2 ext3 ....... ...... ...... ... /guo
/dev/sda3 swap ....... ...... ...... ...
/dev/sda4 extends ....... ...... ...... ... /shun
/dev/sda5 vfat ....... ...... ....... ....
應該是這樣的,這是初裝系統是的分割槽情況
3. 我在練檔案系統最佳化是執行了如下語句
mkfs.ext3 -b 1024 -i 2048 /dev/sda2
mount /dev/sda2 /mnt/d2
mount /dev/sda1 /mnt/d1
我又在d1/dir1和d2/dir1中各
echo "hi" > /mnt/d1/dir1/f1
echo "hi" > /mnt/d2/dir1/f1
目得是看兩種檔案系統的所有空間大小.
後來我又掛載了隨身碟, 但忘記 umount /mnt/u
就拔了隨身碟. 後來我就關機了.但今天開機出現如下提示
4. 提示資訊
Checking filesystems
/: clean, 59728/1280000 files, 322715/1279167 blocks
fsck.ext3: Unable to resolve 'LABEL=/guo'
*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
*** Warning -- SELinux is active
*** Disabling security enforement for system recovery.
*** Run ' setenforce 1 ' to reenable/
Give root password for maintenamce
(or type Control - D to contimue):
我按 Ctrl + D root 了, 還一行, 我就輸入 password
我想是 /etc/fstab  有問題,就用vi /etc/fstab 顯示結果如下:
# This file is edited by fstab-sync = see 'man fstab-sync' for details
TABLE=/ / ext3 defalts 1 0
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
LABLE=/guo /guo ext3 defalts 1 2
/dev/proc xxxx xxx xxxx xxx
xxxx xx xx xxx xx
我想修改 LABEL=/guo 為 /dev/sda2 但儲存時提示如下:
E45: 'readonly ' option is set ( add ! to override )
5. 我不知問題是不是在 /etc/fstab 中? 菜鳥向大家請教了!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617542/viewspace-959939/,如需轉載,請註明出處,否則將追究法律責任。

相關文章