fudaming 发表于 2005-2-21 00:40:31

gentoo里面莫名其妙的挂载分区问题.

fudaming root # mkfs.ext3 -L /boot /dev/hda2
mke2fs 1.35 (28-Feb-2004)
Filesystem label=/boot
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
130560 inodes, 522112 blocks
26105 blocks (5.00%) reserved for the super user
First data block=1
64 block groups
8192 blocks per group, 8192 fragments per group
2040 inodes per group
Superblock backups stored on blocks:
      8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first.Use tune2fs -c or -i to override.
fudaming root # mount /dev/hda2
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
       or too many mounted file systems
fudaming root # mount /dev/hda2 /boot
fudaming root #

分区除了根分区,还有几个windows的vfat分区以外,其他统统不能自动挂载,包括 /boot。很是奇怪,于是我冒险mkfs了一下,结果是一样的。可是我在FC3里面是正常的。

但是格式化之前fsck的结果是这样的
fudaming root # fsck.ext3 /dev/hda2
e2fsck 1.35 (28-Feb-2004)
fsck.ext3: Filesystem has unsupported feature(s) (/boot)
e2fsck: Get a newer version of e2fsck!

格式化之后就正常了。
fudaming root # fsck.ext3 /dev/hda2
e2fsck 1.35 (28-Feb-2004)
/dev/hda2 is mounted.

WARNING!!!Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? no

check aborted.
fudaming root # umount /dev/hda2
fudaming root # fsck.ext3 /dev/hda2
e2fsck 1.35 (28-Feb-2004)
/boot: clean, 51/130560 files, 51162/522112 blocks
fudaming root #

有人能帮帮我吗,指个方向也行。

fudaming 发表于 2005-2-21 00:48:04

:mrgreen::mrgreen::-D
忘了,附上我的fstab和内核相关配置。

# /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/hda2                /boot                ext3                default                1 2
/dev/hda9                /                reiserfs                noatime                0 0
/dev/hda12                none                swap                sw                        0 0
/dev/hda5                /mnt/d                vfat                iocharset=utf8                0 0
/dev/hda6                /mnt/e                vfat                iocharset=utf8                0 0
/dev/hda7                /mnt/f                vfat                iocharset=utf8                0 0
/dev/hda8                /mnt/g                vfat                iocharset=utf8                0 0
/dev/hda1                /mnt/winxp                vfat                iocharset=utf8                0 0
/dev/cdroms/cdrom0        /media/cdrom                iso9660                noauto,ro                0 0       
/dev/fd0                /media/floppy                auto                noauto                        0 0
/dev/hda10                /mnt/tmp                ext3                default                0 0
/dev/hda11                /mnt/other                reiserfs                default                0 0
/dev/hda3                /mnt/sys_fedora                ext3                default                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                        /sys                sysfs                defaults                0 0
none                        /dev/shm        tmpfs                defaults                0 0

#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
CONFIG_REISERFS_PROC_INFO=y
CONFIG_REISERFS_FS_XATTR=y
CONFIG_REISERFS_FS_POSIX_ACL=y
CONFIG_REISERFS_FS_SECURITY=y
CONFIG_JFS_FS=y
# CONFIG_JFS_POSIX_ACL is not set
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set
CONFIG_FS_POSIX_ACL=y
CONFIG_XFS_FS=y
# CONFIG_XFS_RT is not set
CONFIG_XFS_QUOTA=y
CONFIG_XFS_SECURITY=y
CONFIG_XFS_POSIX_ACL=y
# CONFIG_MINIX_FS is not set
CONFIG_ROMFS_FS=y
# CONFIG_QUOTA is not set
CONFIG_QUOTACTL=y
CONFIG_DNOTIFY=y
CONFIG_AUTOFS_FS=m
CONFIG_AUTOFS4_FS=m

#

linky_fan 发表于 2005-2-21 15:45:22


fudaming root # mkfs.ext3 -L /boot /dev/hda2
mke2fs 1.35 (28-Feb-2004)
Filesystem label=/boot

既然用了label, 那么你相应的fstab的条目中没有使用"LABEL=xxx"参数,这样一来, 下面的情况就可以解释了咯.(可以man一下fstab看看.)

fudaming root # mount /dev/hda2
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
       or too many mounted file systems
fudaming root # mount /dev/hda2 /boot

fudaming 发表于 2005-2-21 16:40:05

这个 :roll: 之前我看了下FC3的fstab,上面的条目是用的Label,我照样子改了,结果mount /dev/hda2是一样结果。

是不是说mount /boot 就可以了?那么我mkfs的时候用”BOOT“作Label呢?
mount Label=BOOT 可不可以? :mrgreen::mrgreen:

由于我的主板Over了,只好强借来老爹的本本安装gentoo。版主老大等等我啊。

linky_fan 发表于 2005-2-22 19:19:54


由于我的主板Over了,只好强借来老爹的本本安装gentoo。版主老大等等我啊。

同情一下 :-)

cnhnln 发表于 2005-2-23 23:05:11


由于我的主板Over了,只好强借来老爹的本本安装gentoo。版主老大等等我啊。

同情一下 :-)

fudaming 发表于 2005-2-24 02:35:58

本本搞上gentoo了,只剩gensplash没有搞定。不过听说直接在本子上编译不好,决定休息一段时间,直到我的主板修好。

ps:IBM就是牛啊,连续开机57个小时,啥事没有。渴望自己搞一个T系的。感叹一下,钱啊!!:mrgreen: :mrgreen:

ps:准备打劫银行。:twisted::twisted:
页: [1]
查看完整版本: gentoo里面莫名其妙的挂载分区问题.