Cannot boot after resizing

Discussions related to using VirtualBox on Windows hosts.
Post Reply
libuz
Posts: 5
Joined: 7. May 2012, 13:03

Cannot boot after resizing

Post by libuz »

I had Ubuntu in my VBox and my disk got full. So I tried to increase the disk by
VBoxManage modifyhd "C:Users\....\Ubuntu.vhd" --resize 40960
Then it showed ... 100%

Then I tried to start my Ubuntu, but it gives "FATAL: No bootable medium found! System halted."

I found that .iso was not attached. So I attached it again. Now, when I start my Ubuntu, it wants me to install Ubuntu again. But I need to run my previous Ubuntu, because I have my data there.

How can I run my previous Ubuntu?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot boot after resizing

Post by mpack »

You must have done something else wrong, because resizing the disk will not stop Ubuntu booting - and the ISO should never be necessary for a boot once it has been installed onto the virtual hard disk.

Resizing the disk is equivalent to copying the existing partitions onto a larger disk. It will have no effect until the guest OS is told to use the extra disk space (using gparted), which from your description you had not yet done.

So far, you have not provided enough of a description for me to picture what it is that you were doing. If you have been running Ubuntu "live", i.e. from a CD, then I can't imagine why that would be affected by resizing the hard disk, unless perhaps you've been saving state instead of shutting down.

You might consider cloning the old drive, setting the clone aside. Then installing Ubuntu from scratch onto the enlarged drive. Later on you can mount the clone as a 2nd drive in a working VM, to get your data out.
libuz
Posts: 5
Joined: 7. May 2012, 13:03

Re: Cannot boot after resizing

Post by libuz »

mpack wrote:You must have done something else wrong, because resizing the disk will not stop Ubuntu booting - and the ISO should never be necessary for a boot once it has been installed onto the virtual hard disk.

Resizing the disk is equivalent to copying the existing partitions onto a larger disk. It will have no effect until the guest OS is told to use the extra disk space (using gparted), which from your description you had not yet done.

So far, you have no provided enough of a description for me to picture what it is that you were doing. If you have been running Ubuntu "live", i.e. from a CD, then I can't imagine why that would be affected by resizing the hard disk, unless perhaps you've been saving state instead of shutting down.

You might consider cloning the old drive, setting the clone aside. Then installing Ubuntu from scratch onto the enlarged drive. Later on you can mount the clone as a 2nd drive in a working VM, to get your data out.
I thought I need to add ISO in the IDE controller. my ubuntu.iso is inside my windows folder.
I dont know where did it go wrong.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot boot after resizing

Post by mpack »

Ubuntu setup CDs can be used "live", i.e. run directly off the CD, or it can be installed onto the (virtual) hard disk. If you run it live then all of the data is volatile - it will be lost when the PC is shut down. The live mode is intended to let you play with Ubuntu and see whether you like it. The live mode also allows for repair disks etc. For normal, everyday use on a PC (including virtual PCs) you are supposed to install it permanently, after which the CD (or ISO) can be unmounted and set aside for emergencies. I get the feeling that you didn't actually install Ubuntu.
libuz
Posts: 5
Joined: 7. May 2012, 13:03

Re: Cannot boot after resizing

Post by libuz »

I am sure that I installed Ubuntu. I was using ubuntu in my Vbox for more than 5 months and I didnt change anything until today.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot boot after resizing

Post by mpack »

Did you use snapshots in this VM?
libuz
Posts: 5
Joined: 7. May 2012, 13:03

Re: Cannot boot after resizing

Post by libuz »

No
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot boot after resizing

Post by mpack »

Then I don't know what to tell you. You seem to have eliminated all possibilities, leaving a unique problem. Normally I would ask for a log, but a log in this case would be useless since there is nothing wrong with the VM, it's just missing a disk.
libuz
Posts: 5
Joined: 7. May 2012, 13:03

Re: Cannot boot after resizing

Post by libuz »

anyways, thanx for your help
DexSK
Posts: 2
Joined: 8. Feb 2013, 10:44

Re: Cannot boot after resizing

Post by DexSK »

Hello, I got absolutely the same problem, I've installed a VM for testing purposes, ran out of disk space, expanded the VHD using vboxmanage and afterward I was unable to boot it up. Diskpart (guest OS was Windows) showed no partitions on disk, recovery tools however showed the normal partition layout for a Windows system disk. I've managed to "recover" and assign a drive letter to them, even browsed the files over Hiren's BootCD Mini XP environment, but after rebooting again and trying to start it up, it again showed no partitions on disk. Lucky this was only on a test machine and not on a production one.
DexSK
Posts: 2
Joined: 8. Feb 2013, 10:44

Re: Cannot boot after resizing

Post by DexSK »

DexSK wrote:Hello, I got absolutely the same problem, I've installed a VM for testing purposes, ran out of disk space, expanded the VHD using vboxmanage and afterward I was unable to boot it up. Diskpart (guest OS was Windows) showed no partitions on disk, recovery tools however showed the normal partition layout for a Windows system disk. I've managed to "recover" and assign a drive letter to them, even browsed the files over Hiren's BootCD Mini XP environment, but after rebooting again and trying to start it up, it again showed no partitions on disk. Lucky this was only on a test machine and not on a production one.
even after reinstall of the test system, it booted up after the finished install, but after that, when I have installed security updates and restarted it again, the problem reocurred. trying to completely remove the old vm and install from scratch on a fresh vm with a larger HDD, hopefully it stays that way now.
Post Reply