Last Updated on January 3, 2011 EST by Jordan
So, I needed to fix up a Ubuntu install that went wacko. I guess a couple of partitions weren’t deleted and left, and a new partition layout was created beside the empty ones. Let’s just say, some space needed to be reclaimed.
1. I downloaed GParted, and fixed up my partitions so that I deleted the empty useless ones, and increased the root partition.
Once this was completed, I needed to update Grub to change the drive to boot off.
2. So I Mounted /dev/sda5 to /mnt/sda5 and then proceeded to mount /proc and /dev so that I could access the partitions in my chroot enviroment. Then I ran Grub and viola.
mkdir /mnt/sda5
mount /dev/sda5 /mnt/sda5
mount -t proc /proc /mnt/sda5/proc
mount -o bind /dev /mnt/sda5/dev
chroot /mnt/sda5
grub
Then within grub type the following.
find /boot/grub/stage1
Which will then return something along the lines of “(hd0,4)”. Then you will need to enter this value in Grub.
root(hd0,4)
setup(hd0)
Done!