Mount: you must specify the filesystem type

Michael_DD發表於2014-12-16
Mount: you must specify the filesystem type


問題描述
[root@test1 ~]# mount /dev/sdb2 /var/lib/mysql/
mount: you must specify the filesystem type

問題原因:檢視硬碟系統,未格式化磁碟/dev/sdb2



問題解決:格式化成ext3檔案系統
[root@test1 ~]#  mkfs.ext3 /dev/sdb2
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1048576 inodes, 4194300 blocks
209715 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
128 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

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

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


 掛載成功:
[root@test1 ~]# mount /dev/sdb2 /var/lib/mysql/
[root@test1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-LogVol01
                       22G   19G  2.0G  91% /
tmpfs                 520M     0  520M   0% /dev/shm
/dev/sda1             485M   33M  427M   8% /boot
/dev/sdb2              16G  173M   15G   2% /var/lib/mysql
[root@test1 ~]#

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

相關文章