QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 909|回复: 6

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

[复制链接]
发表于 2005-2-21 00:40:31 | 显示全部楼层 |阅读模式
[code:1]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 #[/code:1]

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

但是格式化之前fsck的结果是这样的
[code:1]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![/code:1]

格式化之后就正常了。
[code:1]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 #[/code:1]

有人能帮帮我吗,指个方向也行。
 楼主| 发表于 2005-2-21 00:48:04 | 显示全部楼层
    
忘了,附上我的fstab和内核相关配置。

[code:1]# /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[/code:1]

[code:1]#
# 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

#[/code:1]
回复

使用道具 举报

发表于 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
回复

使用道具 举报

 楼主| 发表于 2005-2-21 16:40:05 | 显示全部楼层
这个 之前我看了下FC3的fstab,上面的条目是用的Label,我照样子改了,结果mount /dev/hda2是一样结果。

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

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

使用道具 举报

发表于 2005-2-22 19:19:54 | 显示全部楼层
由于我的主板Over了,只好强借来老爹的本本安装gentoo。版主老大等等我啊。

同情一下 :-)
回复

使用道具 举报

发表于 2005-2-23 23:05:11 | 显示全部楼层
[quote:b813b3877c="linky_fan"]
由于我的主板Over了,只好强借来老爹的本本安装gentoo。版主老大等等我啊。

同情一下 :-)[/quote]
回复

使用道具 举报

 楼主| 发表于 2005-2-24 02:35:58 | 显示全部楼层
本本搞上gentoo了,只剩gensplash没有搞定。不过听说直接在本子上编译不好,决定休息一段时间,直到我的主板修好。

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

ps:准备打劫银行。    
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 04:35 , Processed in 0.040014 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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