This is one of the best articles of HD resizing ... helped me a lot ... btw how did you learn so much abt hard disks? I would do that with resize2fs myself later on. Any ideas?Install the latest version of virtualbox say 4.3.10 or above from I had this problem as well running a newly installed version of VirtualBox (VirtualBox 6.0). This issue was driving me crazy.

Start here for a quick overview of the site Discuss the workings and policies of this site
So I booted Linux from a live CD. Thanks so much.Funny, I was just trying to accomplish exactly the same task - resizing a virtual drive in VirtualBox for Backtrack 5. I previously ran the GuestAdditions CD image under the devices menu but that did not work. Learn more about hiring developers or posting ads with us Learn more about Stack Overflow the company gparted is also nice and easier to use. Kali Linux is an advanced Penetration Testing and Security Auditing Linux distribution. Since I knew the partition was exactly 50 cylinders big, I only needed to specify -51 for the start and -1 for the end. Yes of course. You can check your drive’s UUID with blkid:So I had to adjust the UUID of the swap partition in /etc/fstab.I powered up the VM and after a couple seconds it booted into linux from the virtual drive again. But I recreated the partitions as they were. Worked out of the box with ubuntu, but not with lubuntu. A single second primary partition would have done as well, since we would not exceed the limit of four primary partitions.

For those who already have the guest extensions and additions , you should go check for additional drivers and install the proprietary video driver for virtualbox , then reset your machine. That was expected. The virtual drive was initially set to have a size of 8GB. I tried with the command resize, but parted was again being stubborn and didn’t execute the operation because the file system had some features enabled that it was not compatible with.This is somewhat silly of parted, since I only wanted to resize the partition table entries and not the file system as well. site design / logo © 2020 Stack Exchange Inc; user contributions licensed under So the command looks like:The operation only took a second.

YEAAH! But it's only a graphical front end to parted. I have noticed that while doing this, i was getting some terminal messages regarding DKMS.So... i tried to install DKMS separetely and boom! Happy hacking, norbert.Excelent article - very helpfull. Or even the plain old fdisk would have done I guess.It also goes without saying, that before you do things like this, that you need to make a backup if the data is of any value to you at all.This was the easy part. Cheers!um...i just booted into a live cd (like you did) and used apt-get install gparted . Noticeable typing lag. I sometimes prefer the command line tools. The program is free and I just used it. Virtual Box. The virtual drive is actually a .vdi file. But I didn’t know any better then to delete the first partition and recreate it at the exact same location. Up to now we did not do anything really dangerous.
Install the Guest Additions tool I used the BackTrack 5 CD since I had it at hand.

I used a gparted image and booted it as a live cd within Virtualbox, but I would have been stuck without your advice on dealing with the swap partition.Hi Derek. Anyway, specifying the position by chs is certainly not a bad idea.Now I removed the partition and created a new one from 0,32,32 – 2036,254,62. By clicking “Post Your Answer”, you agree to our To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Sorry, we no longer support Internet Explorer Make your backup now or forever hold your peace.To be really sure that I would place the new partition at the exact same position I switched the displayed units to So maybe that was not a bad thing.