Linux mount hard disk error "you must specify the filesystem type"

  

Today's virtual machine disk is used to complete, so I want to add a disk, when the mount finds the error you must specify the filesystem type. (Note: My system environment is lcentos6.3 virtual machine installed in virtualbox).

Originally because the disk has no format partition, so the following operations:

1) First check the current system situation, the newly added disk is sdb

 
  1. [root@test ~]# lsblk
  2. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  3. sr0 11:0 1 1024M 0 rom
  4. sda 8:0 0 8G 0 disk
  5. ├─sda1 8:1 0 500M 0 part /boot
  6. └─sda2 8:2 0 7.5G 0 part
  7. ├─ VolGroup-lv_root (dm-0) 253:0 0 6.6G 0 lvm /
  8. └─VolGroup-lv_swap (dm-1) 253:1 0 992M 0 lvm [SWAP]
  9. sdb 8:16 0 8G 0 disk

    2) Try to mount, report error

    1. [root@test ~]# mount /dev/sdb /disk < Br>
    2. mount: you must specify the filesystem type

      3) Format the disk

      1. [root@test ~]# mkfs.ext3 /dev/sdb
      2. Mke2fs 1.41.12 (17-May-2010)
      3. /dev/sdb is entire device, not just one partition!
      4. Continue anyway? (y,n) y
      5. File System Tags =
      6. Operating System: Linux
      7. Block Size = 4096 (log=2)
      8. Block Size = 4096 (log=2) < Br>
      9. Stride=0 blocks, Stripe width=0 blocks
      10. 524288 inodes, 2097152 blocks
      11. 104857 blocks (5.00%) reserved for the super user
      12. One data block=0
      13. Maximum filesystem blocks=2147483648
      14. 64 block groups
      15. 32768 blocks per group, 32768 fragments per group
      16. 8192 inodes per Group
      17. Superblock backups stored on blocks:
      18. 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

      19. Writing inode Table: Complete
      20. Creating journal (32768 blocks): Complete
      21. Writing superblocks and filesystem accounting information: Complete

      22. This filesystem will Be automatically checked every 27 mounts or
      23. 180 days, whichever comes first. Use tune2fs -c or -i to override.
      24. [root@test ~]#

        4) Mounted successfully

        1. [root@test ~]# cd /disk/
        2. [root@test disk]# ls
        3. Lost+found

          5) Increase boot time

          1. tmpfs /dev/shm tmpfs defaults 0 0
          2. devpts /dev/pts devpts Gid=5,mode=620 0 0
          3. sysfs /sys sysfs defaults 0 0
          4. proc /proc proc defaults 0 0
          5. /dev/sdb /disk ext3 defaults 0 0
Copyright © Windows knowledge All Rights Reserved