练习文件系统优化后 linux 无法启动了!
1. 我是用虚拟机装了LINUX2. 原系统挂载情况如下
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 + Droot 了, 还一行, 我就输入 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 devptsgid=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 中? 菜鸟向大家请教了! e2label /dev/sda2 /guo 谢谢老大!正如你说 e2label /dev/sda2 /guo ok!
正常启动.
页:
[1]