Disk expansion of the partition sda1 the virtual machine UBUNTU14 system under VMware
In general, when you expand the disk in the virtual machine under Ubuntu, you add a new partition instead of the partition where the system is located, as in this link http://www.cnblogs.com/yiru/archive/2012/11/15/ 2770968.html is the addition of a new partition. But we usually automatically install some software or library, will automatically install in the system is located in the partition/dev/sda1 inside, very inconvenient, today checked the relevant information, find a way to expand/DEV/SDA1, by the way, record a bit.
This method uses a tool called Gparted, and the following is a brief introduction to it:
GParted (Gnome Partition Editor) is a very compact self-booting CD with x org, lightweight Fluxbox window manager, and the latest 2.6 Linux kernel architecture. This includes the GParted hard disk partitioning tool, which is very useful as a system maintenance disk. GParted is a very powerful partitioning tool under Linux, similar to the ' Partition Magician ' under Windows, and very similar in operation and display. GParted can easily create, delete, or resize partitions and move the location of the partitions. GParted supports a variety of common partitioning formats under Linux, including Ext2, Ext4, Fat, HFS, JFS, Reiser4, ReiserFS, XFS, and even NTFS. In addition, the LiveCD and LIVEUSB versions of the GParted are also available for easy partitioning of the hard drive without the main system!
1. Download GParted
ISO image for GParted:
http://jaist.dl.sourceforge.net/project/gparted/gparted-live-stable/or
http://sourceforge.net/projects/gparted/files/gparted-live-stable/
Currently the latest version is: 0.21.0-1, that is, to download Gparted-live-0.21.0-1-amd64.iso or Gparted-live-0.21.0-1-i586.iso
Recommended Use Thunder download started with the browser download for a long time
2. Virtual machine hard disk expansion
Virtual machine hard disk expansion There are two ways, but note that the saved snapshots, unable to expand operations, LZ decisively deleted the snapshot
(1) The first direct use of the VMware Image Interface tool for capacity expansion.
First make sure that the virtual machine is turned off, then click on the Hard Disk tab in the virtual machine settings, adjust the drive capacity and save and exit
(2) The second is to use the virtual machine's command tool for capacity expansion
Or to ensure that the virtual machine is turned off, and then press the keyboard's Win+r key, open the Run window, enter the CMD carriage return, open the Command window, enter the figure of the logo Directive Path:\vmware-vdiskmanager-x 200GB PATH:\\XXXX.VMDK, Hit enter, pop-up containing successfully a paragraph is successful
(Note: The installation directory for virtual machine VMware, then the space to be expanded, and the last quoted number is the path and name of the Ubuntu virtual machine)
At this point, the virtual machine hard disk expansion is complete.
3. Loading the ISO image of the GParted
In the Virtual machine Setup--cd/dvd (SATA), tick the "Connect at startup" and select the Gparted-live-0.21.0-1-amd64.iso image downloaded above, such as:
When prompted to press ESC to enter the boot boot menu, quickly press the ESC key, a list of boot menus, to try several times, the mouse points in the virtual machine inside, to ensure that the key response is virtual machine inside, start in the virtual machine startup, you can quickly press ESC, if not eject the boot interface, Then in
In the options for the virtual machine in the toolbar above VMware, click Send Ctrl+alt+del, and try again
Choose to start from the CD-ROM Driver entry as the first boot device, such as:
Click Enter
Enter
Enter
Select 26 Return Car
Select 0 to return to the car and then enter the GParted interface will automatically pop up the GParted partition interface.
Delete Linux-swap items, extended items, and finally only sda1 and unassigned, then right-click the "SDA1" item to resize, resize the disk to the appropriate size and reserve space as the swap area, the size of the swap area is the size of your system memory
After you right-click "Unassigned" to extend the partition out of the extended partition, and then create a new logical partition Linux-swap, the newly changed LINUX-SWAP partition may not be recognized after startup and needs to be reset, followed by an introduction
The last click Hook (Apply) submission takes effect.
Exit the GParted start screen. and set the CD/DVD (SATA) entry to restart the virtual machine without starting the connection
Open the virtual machine terminal
Enter DF-HL to see if your SDA1 partition is expanding successfully.
Now, to see the size of the swap partition Llinux-swap, enter the directive free-m
Found in the previous partition, deleted the old Linux-swap partition, added a new swap partition, and when the system started, did not mount successfully
Enter Fdisk-l first to view the device path for the Linux-swap partition
Enter Gedit/etc/fstab to open the configuration file as modified as follows, the previous path to be modified according to the device path you see
After the modification is finished, click Save and Close.
After the terminal input SWAPON-A executes successfully, enter free-m again to see the configuration complete
Attached source and Reference link
http://blog.csdn.net/huanghai381/article/details/50033775
http://blog.csdn.net/openrd/article/details/51405884
Disk expansion of the partition sda1 the virtual machine UBUNTU14 system under VMware