When the Linux virtual machine mounts the hard disk, you are prompted to specify how to solve it?

  
                

The disk space in the Linux virtual machine is not enough. When you mount a hard disk, an error message appears, that is, you must specify the filesystem type. What does this mean? Friends who don't understand may wish to come along with Xiaobian to understand the solution.

phrase in English means must specify a system partition. (Note: My system environment is lcentos6.3 virtual machine installed in virtualbox)

It turns out that the disk has no format partition, so the following operation:

1, first view In the current system situation, the newly added disk is sdb

[root@test ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sr0 11: 0 1 1024M 0 rom

sda 8:0 0 8G 0 disk

├─sda1 8:1 0 500M 0 part /boot

└─sda2 8:2 0 7.5G 0 part

├─VolGroup-lv_root (dm-0) 253:0 0 6.6G 0 lvm /

└─VolGroup-lv_swap (dm-1) 253:1 0 992M 0 lvm [SWAP]

sdb 8:16 0 8G 0 disk

2, try to mount, report error

[root@test ~]# mount /dev/sdb /disk

mount: you must specify the filesystem type

3. Format the disk

[root@test ~]# mkfs.ext3 /dev/sdb

mke2fs 1.41.12 (17-May-2010)

/dev/sdb is entire device, not ju St one partition!

Continue anyway? (y,n) y

File System Tags=

Operating System: Linux

Block Size=4096 (log=2)

Block Size =4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

524288 inodes, 2097152 blocks

104857 blocks (5.00%) reserved for the super User

First Data Block=0

Maximum filesystem blocks=2147483648

64 block groups

32768 blocks per group, 32768 fragments per group< Br>

8192 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

In the inode table: Finish

Creating journal (32768 blocks): Complete

Writing superblocks and filesystem accounting information: Complete

This filesystem will be automatically checked every 27 mounts or< Br>

180 days, whichever comes first. Use tu Ne2fs -c or -i to override.

[root@test ~]#

4, Mounted successfully

[root@test ~]# cd /disk/

[root@test disk]# ls

lost+found

5, increase boot time

tmpfs /dev/shm tmpfs defaults 0 0< Br>

devpts /dev/pts devpts gid=5,mode=620 0 0

sysfs /sys sysfs defaults 0 0

proc /proc proc defaults 0 0

/dev/sdb /disk ext3 defaults 0 0

The above is the solution to the error when the Linux virtual machine mounts the hard disk. If you do not specify a system partition, then the error message will appear, you can use The method of this paper is solved.

Copyright © Windows knowledge All Rights Reserved