LinuxSir.cn,穿越时空的Linuxsir!

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

xfs的问题

[复制链接]
发表于 2005-8-4 11:55:17 | 显示全部楼层 |阅读模式
装了一个gentoo,用xfs作跟分区,结果重启加载过程中说跟分区无法正确读写,内核已经编译了xfs相关的选项,郁闷
发表于 2005-8-4 12:07:31 | 显示全部楼层
/etc/fstab没写好?
回复 支持 反对

使用道具 举报

发表于 2005-8-4 16:15:33 | 显示全部楼层
有没有把它编到内核去而不是编成模块?
回复 支持 反对

使用道具 举报

发表于 2005-8-5 00:51:12 | 显示全部楼层
没有安装xfsprogs这个ebuild。
回复 支持 反对

使用道具 举报

发表于 2005-8-5 14:13:27 | 显示全部楼层
应该是没有安装xfsprogs。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-5 17:55:14 | 显示全部楼层
我写好了fstab,直接编译进内核的,xfsprogs也已经安装了,可是还是不行啊?
回复 支持 反对

使用道具 举报

发表于 2005-8-5 23:11:58 | 显示全部楼层
如果你的xfs是编译进了内核,不是modules。另外你的/etc/fstab一定要写对哦。
好象genkernel生成的内核,不支持xfs的。你需要手工改下。config部分,让xfs成为内核,而不是modules。手工编译内核最好。
回复 支持 反对

使用道具 举报

发表于 2005-8-6 00:38:28 | 显示全部楼层
把你的fstab贴出来看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-6 10:26:27 | 显示全部楼层
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1                /boot                ext3                defaults,noatime        1 2
/dev/hda7                /                xfs                noatime,notail                0 1
/dev/hda5                none                swap                sw                        0 0
/dev/hda6                /var                reiserfs        noatime,notail                0 2
/dev/hda8                /usr/portage        reiserfs        noatime,notail                0 2
/dev/hda9                /mnt/data        vfat                defaults                0 0
/dev/cdroms/cdrom0        /mnt/cdrom        iso9660                noauto,ro                0 0
/dev/fd0                /mnt/floppy        auto                noauto                        0 0

# NOTE: The next line is critical for boot!
none                        /proc                proc                defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                        /dev/shm        tmpfs                defaults                0 0
none                        /proc/bus/usb        usbfs                defaults                0 0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-6 10:29:23 | 显示全部楼层
启动时出错信息:
Root filesystem could not be mounted read/write.
Give root password for maintenance
回复 支持 反对

使用道具 举报

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

本版积分规则

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