LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1168|回复: 8

第一次装gentoo,不能启动

[复制链接]
发表于 2006-2-6 10:50:32 | 显示全部楼层 |阅读模式
刻了一张盘,按照手册装的
分区是
/dev/hda1          /boot
/dev/hda2          ntfs
/dev/hda3         
/dev/hda5          swap
/dev/hda6          /
/dev/hda7          /home
/dev/hda8          /data
/dev/hda9          fat32
/dev/hda10

装好后,重启,启动过程中出现这个错误:
* ...........
* ..........
* checking root filesystem
ext2fs_check_if_mount: No such file or directory while determining whether /dev/root is mounted.
fsck.ext3: No such file or directory while tyring to open /dev/Root
/dev/ROOT:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is ralid and it really contains an ext2 filesystem (and not swap or ufs or something else).
then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
  e2fsck -b 8193 <device>
* Filesystem couldn't be fixed: (                                                        [!!]
Give root password for maintenance
(or type control-D to continue):

我以为安装可能出错了,就又重装了一遍,结果还是这样。请各位帮我看看。
发表于 2006-2-6 11:18:45 | 显示全部楼层
请问你的linux分区用的是什么文件系统,还有就是把你的fstab帖出来看看
回复 支持 反对

使用道具 举报

发表于 2006-2-6 11:46:40 | 显示全部楼层
改一下你的/etc/fstab
把其中的/dev/Root 改成 /dev/hda6
/dev/Boot 改成 /dev/hda1
/dev/Swap -> /dev/hda5
另外注意一下你的文件系统格式。
回复 支持 反对

使用道具 举报

发表于 2006-2-6 11:49:12 | 显示全部楼层
fstab文件没有改吧?

Gentoo默认的fstab里面根分区好像是写成/dev/root的,改成你实际的根分区设备就好了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-6 18:43:47 | 显示全部楼层
谢谢各位,确实如你们说的一样
不过,fstab是只读的,chmod a+w 无效
新手,不要见怪,呵呵。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-6 18:56:42 | 显示全部楼层
没有足够的权限,是不是没救了,要重装才行?
回复 支持 反对

使用道具 举报

发表于 2006-2-6 19:05:48 | 显示全部楼层
-rw-r--r--  1 root root 1370 Feb  4 14:33 fstab
修改这个文件,适合你自己的,还有,看看你的GRUB是不是有错误
回复 支持 反对

使用道具 举报

发表于 2006-2-6 20:26:41 | 显示全部楼层

ehu给的这招好使。

1、universal CD启动,启动参数输:gentoo docache
2、挂载各分区
mount /dev/hda9 /mnt/gentoo  #hda9是root分区
mkdir /mnt/gentoo/boot
mount /dev/hda7 /mnt/gentoo/boot   #hda7是boot分区
mount -t proc none /mnt/gentoo/proc
3、修改fstab
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
nano -w /etc/fstab
exit
umount /mnt/gentoo/{boot,proc}
cd -
umount /mnt/gentoo
shutdown -r now
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-6 22:08:02 | 显示全部楼层
哦,我知道了, 谢谢
用cd可以启动,进系统修改fstab
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表