Wednesday, September 26, 2012

GParted to resize your existing hard drive

I am using VMware as my Virtual Disk but it is the same as standalone or dualboot machines.
First you need to ISO image I am using linuxmint-13-cinnamon-dvd-64bit.iso which can be downloaded from Linux Mint. You cannot resize the hard driver unless you load from LiveCD or ISO image. i.e.
kubuntu-14.04-desktop-amd64.iso. VMware setting and expand the hard drive you want it.

You need to hit F2 to go to BIOS setup and setup CD as 1st boot. In VMware there are 2 variables on VMX file locates in your Virtual Machines -> Name of  your Virtual Machine.VMX.
If these variables are exist you can add as follow to let VMware knows. The string name are exactly as you see.
bios.bootDelay = "5000"
bios.forceSetupOnce = "TRUE"
The 1st option delay boot time so you have enough time to hit F2 and 2nd option it boots into BIOS or ESC to choose the device to boot up. This is one time boot selection.

This is BIOS of VMware and not BIOS of the system. VMware creates a BIOS similar to BIOS system to handle Boot and other things. VMware using PhoenixBIOS. My system BIOS is ACER.
To distinguish between 2 BIOS. I call system BIOS and VMware BIOS.
When load into this VMware BIOS you need to change CD/DVD file points to ISO that you want to run.
With the virtual machine powered off, open the Configuration Editor (choose Settings then Configuration Editor), and select the DVD/CD-ROM. If not, it won't boot from this iso even you hit ESC to choose CD/DVD boot. This is a virtual CD/DVD drive not physical CD drive !!!. no need to put CD in the physical drive if choose ISO option instead of physical drive. The default of ISO image is pointing to C:/Program Files(X86)/VMware Player/linux.iso all you need to point this to right ISO.
Using edit VMware Hardware then Click on ISO image instead of physical CD/DVD. My case is  linuxmint-13-cinnamon-dvd-64bit.iso the iso just downloaded into Downloads directory.
In this CD/DVD setup choose use ISO to boot and device status select connect at power on so it can boot.
 Remember the new size is only good to VMware but Linux-Mint won't know until you change the size using GParted. YOU CANNOT RESIZE IF IT BOOTS FROM THE SAME HARD DRIVE for example /dev/sda1 if you drive to resize it will prompt that device is busy it needs to umount first and this is the reason we boot from LiveCS ISO image. After it boots we can go change the hard drive of /dev/sda1 because it is umounted.
When ISO boot up choose demo and run from there. Do not select installation all we want is to use Gparted.
If GParted in not installed in this live CD need to install: sudo apt-get install gparted. The ISO is stored from disk or USB, the demo runs from RAM so gparted in run from RAM when it is shut down gparted is gone and it does not write into ISO file. Since the disk expand is rarely using so to issue the command sudo apt-get install gparted is a small thing.

Ref.
http://communities.vmware.com/message/1061677 
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=102



This is system BIOS. It is different with VMware BIOS above.
If you have a problem to install Win 7 with RAID then Disable RAID in BIOS and enabled native IDE.
RAID (redundant array of independent disks)




No comments: