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.
We all know that the tar command under Linux system can be used to decompress files
Linux system, sometimes we will use the tail command, it can output the last part of the specified f
of CentOS uninstalling lamp environment When you are learning PHP, you need to install the lamp env
CentOS system operation, ImageMagick is a picture processing tool, can be used to compress the size
How to transform gedit into TextMate in Linux system
How to install and configure Apache
How to use the top command to monitor Linux system performance
Linux recovery steps for deleting files by lsof command
Solve the problem of installing Linux prompt Boot Efi does not have space to set up
How Linux sets up port forwarding for intranet access to intranet
Common usage summary of free commands under Linux
Deep understanding of Linux text stream
How to view the version of MariaDB server on Linux system
Linux installation steps using Axel
Linux uses sonar to get the number of violations and lines of code
Why does the computer automatically stand by?
WP8 version QQ4.4 group function enhanced version download
Teach you how to easily uninstall Win7 SP1 system
A new chapter in Win10! Microsoft Build2015 Developer Conference comprehensive observation
Simulate Stack effects on the Quick Launch bar
How to modify the background color of Win10 system photo viewer?
Windows7 personality theme package production tutorial (4)
How to enable or disable the guest account on Windows 7 system
Windows XP Personal Edition System Recovery Forum
What should I do if the WinXP system opens the USB flash drive and cannot prompt to delete the file?