X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-resize;fp=tools%2Fvirt-resize;h=8a71f96c68e163be6c1af31f6940b19588a939a5;hb=7d746ba6915e3c0d8fbe41053da64f4e9fa11cd4;hp=2a6c406a7c77422dc0f39c760309740fac051420;hpb=f7475ec577b7ca810185e0fd70a39ac9adaae620;p=libguestfs.git diff --git a/tools/virt-resize b/tools/virt-resize index 2a6c406..8a71f96 100755 --- a/tools/virt-resize +++ b/tools/virt-resize @@ -1404,6 +1404,23 @@ Windows may initiate a lengthy "chkdsk" on first boot after a resize, if NTFS partitions have been expanded. This is just a safety check and (unless it find errors) is nothing to worry about. +=head2 GUEST BOOT STUCK AT "GRUB" + +If a Linux guest does not boot after resizing, and the boot is stuck +after printing C on the console, try reinstalling grub. This +sometimes happens on older (RHEL 5-era) guests, for reasons we don't +fully understand, although we think is to do with partition alignment. + + guestfish -i -a newdisk + > cat /boot/grub/device.map + # check the contents of this file are sensible or + # edit the file if necessary + > grub-install / /dev/vda + > exit + +For more flexible guest reconfiguration, including if you need to +specify other parameters to grub-install, use L. + =head1 ALTERNATIVE TOOLS There are several proprietary tools for resizing partitions. We @@ -1443,6 +1460,9 @@ L, L, L, L, +L, +L, +L, L, L.