做了几个文件系统的练习后 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
目得是看两种文件系统的所有空间大小.
后来我又挂载了U盘, 但忘记 umount /mnt/u
就拔了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 中? 菜鸟向大家请教了!
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
目得是看两种文件系统的所有空间大小.
后来我又挂载了U盘, 但忘记 umount /mnt/u
就拔了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/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10617542/viewspace-959939/