Mount: you must specify the filesystem type

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29500582/viewspace-1369392/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值