Mount: you must specify the filesystem type

Posted on June 26, 2014 at 12:07 pm

If you cannot mount a disk, make sure you assign the filesystem to it:

mkfs.ext3 /dev/xvdb 2>/dev/null

This is an example output:

Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131072 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

Now try to mount the disk, it will work:

root@ mount /dev/xvdb /mnt -t auto

Receive updates via email

Other Posts

Updated Posts