Using GParted to fix an Ubuntu Install

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!


Did you like this article?


0 Shares:
You May Also Like

Corporate critics feel the stinging lash of DMCA misuse

I use to work for an ISP and was head of the Abuse Department. We only really received legitimate DCMA's that were then handled by legal. We didn't really seem to get that many DMCA notices, maybe its because we're a Canadian organization?
Corporate critics feel the stinging lash of DMCA misuse -

Two recent cases show that companies aren't always fans of criticism, and some will file misguided DMCA notices and defamation cases to scrub it from the Internet.

Read More...

Read More

Apple Releases iPhone Firmware 2.1 and iTunes 8

Apple has just released iTunes 8 and the iTouch and iPhone firmware 2.1! You will need to download iTunes 8 in order to get the new firmware. And unfortunately it looks as though iTunes 8 has blocked the Pwnge tool. However the iphone-dev team knows about this and will have a patch http://blog.iphone-dev.org/post/49689803/countermeasures Enjoy!
Read More