红联Linux门户
Linux帮助

CentOS挂载不上硬盘!

发布时间:2009-06-08 12:48:02来源:红联作者:yb1985122
我添加了一块硬盘用明令fdisk -l显示:
[root@localhost ~]# fdisk -l

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1639 13165236 83 Linux
/dev/hda2 1901 4997 24876652+ f W95 Ext'd (LBA)
/dev/hda3 1640 1900 2096482+ 82 Linux swap
/dev/hda5 1901 4487 20780046 b W95 FAT32
/dev/hda6 4488 4997 4096543+ b W95 FAT32

Partition table entries are not in disk order

Disk /dev/hdb: 41.1 GB, 41109061120 bytes
255 heads, 63 sectors/track, 4997 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2039 16378236 83 Linux
/dev/hdb2 2551 4997 19655527+ f W95 Ext'd (LBA)
/dev/hdb3 2040 2550 4104607+ 82 Linux swap
/dev/hdb5 2551 4997 19655496 b W95 FAT32

Partition table entries are not in disk order
You have new mail in /var/spool/mail/root
然后施用mount命令:
[root@localhost ~]# mount -a /dev/hdb2 /mnt/a
mount: error while guessing filesystem type
mount: mount point /mnt/a does not exist
请问这是什么问题呀?
文章评论

共有 6 条评论

  1. xtnu 于 2009-06-09 14:50:17发表:

    上楼正解,楼主对硬盘分区原理不够熟悉

  2. mblz 于 2009-06-09 09:55:22发表:

    你的hdb2和hda2是整个扩展分区,是不能进行挂载的,
    这里你只能挂载hdb5,hda5,hda6这些逻辑分区。

  3. jagub 于 2009-06-08 13:22:13发表:

    错误提示非常简洁明了,一看就明白

  4. drivers 于 2009-06-08 13:08:22发表:

    装载点目录必须存在

  5. yjgyiysbcc 于 2009-06-08 13:07:23发表:

    [i=s] 本帖最后由 yjgyiysbcc 于 2009-6-8 13:17 编辑 [/i]

    [root@localhost ~]# mount -a /dev/hdb2 /mnt/a
    mount: error while guessing filesystem type
    mount: mount point /mnt/a does not exist

    1、su到root下
    mkdir /mnt/a

    2、
    2.1 在centos下必须指定类形
    mount -t vfat /dev/hdb2 /mnt/a
    2.2 不能直接把整个扩展分区mount到目录,从fdisk输出的信息来看正确的是
    mount -t vfat /dev/hdb5 /mnt/a
    hdb2是扩展分区
    hdb5是逻辑分区
    扩展分区可以包括很多逻辑分区
    当然你现在硬盘里只有一个扩展分区、一个逻辑分区

    但是你的另一硬盘hda2下面就包括了hda5 hda6

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 1639 13165236 83 Linux
    /dev/hda2 1901 4997 24876652+ f W95 Ext'd (LBA)
    /dev/hda3 1640 1900 2096482+ 82 Linux swap
    /dev/hda5 1901 4487 20780046 b W95 FAT32
    /dev/hda6 4488 4997 4096543+ b W95 FAT32

    你会发现hda2的起始与结束大小就等于hda5+hda6

  6. njliuqi 于 2009-06-08 13:03:34发表:

    [i=s] 本帖最后由 njliuqi 于 2009-6-8 13:06 编辑 [/i]

    好像是mount -t vfat /dev/hdb2 /mnt/a
    你/mnt目录中要有a这个目录奥。

    -t参数可能不对,但我又没有找到fat32 fat这个两个的。