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

A list of changes and fixes in the iPhone 2.1 Firmware

There is a full list of changes and fixes in the new iPhone 2.1 firware on Apples site, which you can read here: http://www.apple.com/iphone/softwareupdate/ I've also included them below:
General Updates * Decrease in call set-up failures and dropped calls. * Significantly better battery life for most users. * Dramatically reduced time to backup to iTunes. * Improved email reliability, notably fetching email from POP and Exchange accounts. * Faster installation of 3rd party applications.
Read More

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