免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3678 | 回复: 9
打印 上一主题 下一主题

为何只能手工挂载而不能自动挂载? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-26 12:45 |只看该作者 |倒序浏览
20可用积分
mkfs /dev/sdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
391680 inodes, 783160 blocks
39158 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=805306368
24 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Writing inode tables: done                           
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.





df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       19G   13G  5.0G  72% /
/dev/sda1              99M   13M   81M  14% /boot
tmpfs                 352M     0  352M   0% /dev/shm
/dev/hdc              2.9G  2.9G     0 100% /media/RHEL_5.2 i386 DVD

这个时候没有心的分区

[root@testfororacle /]# cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/sdb1               /u03                    ext3    defaults        1 2
在/etc/fstab中新增加的分区
[root@testfororacle /]# mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

出现错误很奇怪


[root@testfororacle /]# dmesg | tail
xenbr0: topology change detected, propagating
xenbr0: port 2(peth0) entering forwarding state
eth0: no IPv6 routers present
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
ext3: No journal on filesystem on sdb1
ext3: No journal on filesystem on sdb1
ext3: No journal on filesystem on sdb1

手工挂载
[root@testfororacle /]# mount /dev/sdb1 /u03
[root@testfororacle /]# cd /u03
[root@testfororacle u03]# touch a
产生一个文件
[root@testfororacle u03]# ls
a  lost+found
[root@testfororacle u03]# pwd
/u03

最佳答案

查看完整内容

你的文件系统貌似不是ext3,好像是ext2,你将/etc/fstab中改成ext2试试,或者是tune2fs -j将其转换ext3试试。

论坛徽章:
0
2 [报告]
发表于 2009-05-26 12:45 |只看该作者
你的文件系统貌似不是ext3,好像是ext2,你将/etc/fstab中改成ext2试试,或者是tune2fs -j将其转换ext3试试。

论坛徽章:
0
3 [报告]
发表于 2009-05-26 12:49 |只看该作者
running e2fsck

论坛徽章:
0
4 [报告]
发表于 2009-05-26 13:15 |只看该作者
原帖由 Perl_Er 于 2009-5-26 12:49 发表
running e2fsck




e2fsck /dev/sdb1
e2fsck 1.39 (29-May-2006)
/dev/sdb1: clean, 11/391680 files, 13452/783160 blocks
[root@testfororacle ~]# mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


[root@testfororacle ~]# dmesg | tail
sdb: assuming drive cache: write through
sdb: sdb1
SCSI device sdb: 6291456 512-byte hdwr sectors (3221 MB)
sdb: Write Protect is off
sdb: Mode Sense: 5d 00 00 00
sdb: cache data unavailable
sdb: assuming drive cache: write through
sdb: sdb1
ext3: No journal on filesystem on sdb1
ext3: No journal on filesystem on sdb1


试验了,还是不行

论坛徽章:
0
5 [报告]
发表于 2009-05-26 14:47 |只看该作者
原帖由 peerper 于 2009-5-26 12:45 发表
mkfs /dev/sdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
391680 inodes, 783160 blocks
39158 blocks (5.00%) reserved for  ...



mkfs时是用的mke2fs创建的ext2,
fstab文件里格式是ext3,当然会报错

重新使用mkfs.ext3 /dev/sdb1命令执行就可以了,

论坛徽章:
0
6 [报告]
发表于 2009-05-26 15:22 |只看该作者
支持楼上的,mkfs默认是格式化成ext2的,你需要mkfs.exts /dev/sdb1 才能格式化成ext3格式。然后才能挂载成功。

论坛徽章:
0
7 [报告]
发表于 2009-05-26 15:43 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2009-05-26 16:20 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
9 [报告]
发表于 2009-06-09 12:34 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2009-06-09 13:30 |只看该作者
mke2fs -j
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP