LinuxSir.cn,穿越时空的Linuxsir!

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

版主帮帮忙!df: cannot read table of mounted file systems

[复制链接]
发表于 2007-1-28 11:14:18 | 显示全部楼层 |阅读模式
按照手册安装系统,当执行chroot /mnt/gentoo /bin/bash 变更目录后就不能使用df -h,出现标题提示。而且不能安装grub ,应该如何操作呢?
执行了 export PS1="(chroot) $PS1" 也不行。
发表于 2007-1-28 11:47:12 | 显示全部楼层
一定要执行df -h么?
你在什么情况(是否chroot)下安装grub,什么错误提示?
执行export PS1="(chroot) $PS1" ,和这两个问题的解决无任何关系
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-28 12:12:15 | 显示全部楼层
gentoo / # grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
df: Warning: cannot read table of mounted file systems: No such file or directory
df: Warning: cannot read table of mounted file systems: No such file or directory
Could not find device for /boot: Not found or not a block device.

否则怎么启动啊?
回复 支持 反对

使用道具 举报

发表于 2007-1-28 12:23:48 | 显示全部楼层
我快3年没这么装gentoo了,不记得具体步骤
你从chroot环境退出来再装试试
回复 支持 反对

使用道具 举报

发表于 2007-1-28 12:37:56 | 显示全部楼层
1>>建立mtab这步做了吗?

#grep -v rootfs /proc/mounts > /etc/mtab

2>>试过手动装grub没有?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-28 12:59:55 | 显示全部楼层
Post by 杨珂
1>>建立mtab这步做了吗?

#grep -v rootfs /proc/mounts > /etc/mtab


正解。建后
gentoo grub # df -h
Filesystem            Size  Used Avail Use% Mounted on
df: `/newroot': No such file or directory
df: `/newroot/mnt/cdrom': No such file or directory
df: `/newroot/mnt/livecd': No such file or directory
df: `/newroot/sys': No such file or directory
df: `/newroot/dev': No such file or directory
df: `/newroot/dev/pts': No such file or directory
df: `/newroot/mnt/livecd/lib/firmware': No such file or directory
df: `/newroot/mnt/livecd/usr/portage': No such file or directory
df: `/newroot/proc/bus/usb': No such file or directory

。。。。。
现在已经装上grub了。scis盘也用hd标志!
回复 支持 反对

使用道具 举报

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

本版积分规则

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