Page 1 of 1
Ubuntu doesn't start up after increasing disk size
Posted: 1. Dec 2020, 17:55
by MHD
I increased the disk size in Virtual Media Manager from 10GB to 12GB. but now the Ubuntu doesn't boot up. It hangs when it comes to black screen with white underscore. I tried increasing RAM and video memory, but it didn't help.
Re: Ubuntu doesn't start up after increasing disk size
Posted: 2. Dec 2020, 01:24
by scottgus1
Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.
Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
Also, What caused you to want to increase the disk size? Did Ubuntu report that it was out of disk space?
Re: Ubuntu doesn't start up after increasing disk size
Posted: 2. Dec 2020, 16:46
by MHD
Yes the system was notifying me that disk space is low.
Re: Ubuntu doesn't start up after increasing disk size
Posted: 3. Dec 2020, 14:20
by MHD
scottgus1 wrote:Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.
Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
Also, What caused you to want to increase the disk size? Did Ubuntu report that it was out of disk space?
I would at least like to restore some data I had on the machine if that's possible.
Re: Ubuntu doesn't start up after increasing disk size
Posted: 4. Dec 2020, 15:37
by MHD
Alright I recovered files that I needed by simply opening .vdi file with 7zip. I might as well create a new disk that is bigger.
Re: Ubuntu doesn't start up after increasing disk size
Posted: 4. Dec 2020, 18:03
by mpack
00:00:03.964392 Host RAM: 8153MB (7.9GB) total, 3370MB (3.2GB) available
...
00:00:04.191872 RamSize <integer> = 0x000000013d200000 (5 320 474 624, 5 074 MB, 4.9 GB)
This may not be the only problem, but you were over-committing RAM. This problem would be unrelated to enlarging the disk size.
You say that Ubuntu doesn't start up, but the log provided says otherwise: it shows the guest getting as far as loading the Guest Additions, which means boot was virtually completed.
Re: Ubuntu doesn't start up after increasing disk size
Posted: 4. Dec 2020, 19:48
by fth0
mpack wrote:You say that Ubuntu doesn't start up, but the log provided says otherwise: it shows the guest getting as far as loading the Guest Additions, which means boot was virtually completed.
That part is easy to explain:
Ubuntu has started up to the point where the next display resolution change would occur to display the graphical login screen, which increases current memory usage. Since Ubuntu shows a black screen (with a blinking cursor) before that, it's not obvious for the common user if it is running or hanging. Of course, one could look at the status line ...
Re: Ubuntu doesn't start up after increasing disk size
Posted: 4. Dec 2020, 20:50
by scottgus1
A quick google "ubuntu ran out of disk space now wont log in" shows this happens on physical computers too. Solve as if it happened on a real PC using Ubuntu's help channels and web-searches, and ignore that the "hardware" was provided by Virtualbox.