Смешные комментарии в интернетах.

Захотелось мне, очень сильно захотелось, увеличить объём виртуального диска в виртуалбоксе, а через меню не получается. Пошёл гуглить, нашёл нужный топик, а в нём нашёл нужный комментарий:

Hi,
You could try something like this (see also Tutorial – All about VDIs: How can I resize the partitions inside my VDI?):
Create a new VDI of the desired size.
Boot GParted Live in a VM with both old and new VDIs attached.
Check in the partition editor (opened automatically after booting) what your old and new disk locations are. (It’ll be something like /dev/hda and /dev/hdb.)
Copy contents from old to new disk. This will take a fair amount of time. (Here /dev/hdX is your original disk and /dev/hdY the new one).
dd if=/dev/hdX of=/dev/hdY
Warning: Make sure you do not mix up your input and output disks or you’ll wipe all information from your original disk! (if= specifies the input and of= specifies the output.)
Reboot (again with GParted-Live). Now you should be able to increase the Windows partition size on the new disk.
Once you’ve verified the larger VDI boots Windows fine (and disk size is as you’d expect) you can of course delete the old smaller VDI.

Edit: Instead of rebooting before you resize the partition you should be able to run partprobe and the hit CTRL+R in GParted instead.

Regards,
VT

Изумился простоте, подумал что надо почитать топик ещё, может кто ещё чего интересного посоветует. И не ошибся. Правда, потом пришёл какой-то умный человек и изумлённо написал:

Just run..
VBoxManage modifyhd Compiler.vdi --resize 10240
For resize to 10240 MB

С другой стороны первые два автора молодцы, они решили свою проблему, а мне все равно пришлось переустанавливать убунту: она не смогла растянуть ФС на свежее место.

2012.03.05 01:21