Add hard disk space to the Linux virtual machine __linux
Source: Internet
Author: User
Preface: We just started installing Ubuntu on the virtual machine, always reluctant to allocate too much hard disk space. But with a long time to use the hard drive is not enough. One of the stupidest ways to do this is to reload the system, but it's time-consuming. It would be nice if you could add a hard drive without reloading the system. Here's how to implement it.
Two.
1. First of all, the Ubuntu shutdown.
2. Click on the menu in VMware vm-->settings
3. Click the Add button at the bottom of the hardware and select hard Disk-->next-->next-->disk size (GB) to be the new hard drive sizes-->next-->finish--> Ok. This way, in VMware's devices, a hard Disk 2 is a lot more.
Third, the next step is to enter Ubuntu, the new hard drive in the mount.
1.
root@sparkle-desktop:~# fdisk-l
disk/dev/sda:17.1 GB, 17179869184 bytes
255 heads, Sectors/track, 2088 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk IDENTIFIER:0X000AF2A2
Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 993 7976241 Linux
/dev/sda2 994 1044 409657+ 5 Extended
/dev/sda5 994 1044 409626 Linux Swap/solaris
disk/dev/sdb:8589 MB, 8589934592 bytes
255 heads, Sectors/track, 1044 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk identifier:0x00000000
Disk/dev/sdb doesn ' t contain a valid partition table
You can see one more/dev/sdb.
2.
The following is the format of the Ext3 file system
root@sparkle-desktop:~# mkfs-t Ext3/dev/sdb
MKE2FS 1.40.8 (13-mar-2008)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) Y//format the entire new hardware without partitioning.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.