redhat5 device因檔案系統fs不能mount_ext3_ext2

wisdomone1發表於2013-06-06

--前期測試掛的disk /dev/sdb1一直mount不成功,也檢查了/etc/fstab基本是正確

--經查詢,可以在作業系統啟動時檢視系統日誌,一分析是檔案系統搞清了,正確是ext2而非ext3
[root@rhel5 oracle]# more /var/log/messages|grep sdb1
Jun  5 13:37:16 rhel5 kernel:  sdb: sdb1
Jun  5 13:37:18 rhel5 kernel:  sdb: sdb1
Jun  5 13:38:27 rhel5 kernel: VFS: Can't find ext3 filesystem on dev sdb1.--提示很明顯了
Jun  6 01:29:08 rhel5 kernel:  sdb: sdb1
Jun  6 01:39:15 rhel5 kernel:  sdb: sdb1
Jun  6 02:08:17 rhel5 kernel:  sdb: sdb1
Jun  6 02:08:17 rhel5 kernel: ext3: No journal on filesystem on sdb1
Jun  6 02:08:20 rhel5 kernel: ext3: No journal on filesystem on sdb1
Jun  6 02:48:11 rhel5 kernel: ext3: No journal on filesystem on sdb1
Jun  6 02:50:47 rhel5 kernel:  sdb: sdb1

小結:
   1,如果裝置不能mount,直接檢視/var/log/messages

 列下

[root@rhel5 oracle]# more /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
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
LABEL=SWAP-sda2         swap                    swap    defaults        0 0
/dev/sdb1               /oracle                 ext2    defaults        1 1

 

--這個也可以檢視裝置mount檔案系統型別

[root@rhel5 oracle]# mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /oracle type ext2 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-763182/,如需轉載,請註明出處,否則將追究法律責任。

相關文章