Skip to main content

Thread: GRUB Problems after Editing Partitions


i fixed problem, figured i'd explain how fixed in case else has issue.

while adding macbuntu 10.10 alongside ubuntu 11.04 natty narwhal , windows 7 os's, saw had linux-swap partition. 10.10 live usb used 1 swap , 11.04 used other, 1 needed remove being used live usb. (in hindsight, have avoided mess unmounting it, have been smart thing do.) tried remove 1 of partitions using windows 7, removed both of linux-swap partitions instead. created new linux-swap partition using gparted 10.10 live usb, but, after rebooting, grub came looking weird , couldn't use arrow keys. if selected default kernel, read:
code:
error: invalid extent error: symbol not found: 'grub_os_area_addr' error: symbol not found: 'grub_os_area_addr'  press key continue.
i found solution here: http://ubuntuforums.org/showthread.php?t=1719857. booted live usb , opened gparted check location of main ubuntu partition ("/dev/sda5") , location of hard disk ("/dev/sda"). ubuntu partition ext4 file system , hard disk found in top right corner. opened terminal , typed (replace "dev/sda5" , "dev/sda" found in gparted):
code:
sudo mount /dev/sda5 /mnt sudo grub-install --root-directory=/mnt /dev/sda
however, system still not automatically mount linux-swap partition. found solution here: https://bugs.launchpad.net/ubuntu/+s...nux/+bug/66637. first, checked location of linux-swap partition in gparted. ran in terminal (replace "sda7" found in gparted):
code:
sudo mkswap /dev/sda7 sudo swapon /dev/sda7 free
but, 2 files need updated after this. update uuid in these 2 files uuid listed previous set of terminal commands (you can find new uuid in gparted right-clicking linux-swap partition , selecting "information"):
code:
sudo gedit /etc/fstab sudo gedit /etc/initramfs-tools/conf.d/resume
update uuid in these 2 files uuid listed previous set of terminal commands (you can find new uuid in gparted right-clicking linux-swap partition , selecting "information"). this:
code:
sudo update-initramfs -u
while i'm @ it, i'll throw in other fix found. when installed 10.10, mbr (master boot record) overwritten, of grub customizations removed. linux likes customized though, , found out how bring back. booted original 11.04 system , ran in terminal ("/dev/sda" should replaced location of hard disk):
code:
sudo grub-setup /dev/sda
that's (although "sudo update-grub" wouldn't hurt either).

thanks sharing greenraccoon

type of helpful , informative post adds value forums, helping both new , more experienced users.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] GRUB Problems after Editing Partitions


Ubuntu

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support