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 ~]#
问题描述
[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/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29500582/viewspace-1369392/