openSUSE Forums > Install/Boot/Login » help -- won't boot after resizing partition

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-Nov-2009, 11:27
MountainX's Avatar
Explorer Penguin
 
Join Date: Oct 2009
Location: A place with no mountains
Posts: 126
MountainX hasn't been rated much yet
Question help -- won't boot after resizing partition

I installed openSUSE 11.2 RC1 yesterday. (It was a fresh install; I erased the milestone 8 install I had done previously).

I installed to a 5 GB logical partition at (hd0,10) which is /dev/sda10. (BTW, that's grub2 numbering). There is a 300 MB boot partition at /dev/sda1 or (hd0,1) in grub2 numbering again.

After I got everything set up exactly the way I wanted it, I realized 5GB is way too small for openSUSE KDE, even though ALL data is on another partition.

Next step: booted to a live CD (with grub2) and used gparted to remove /dev/sda11 (another 5GB logical partiition), then resized the openSUSE partition (/dev/sda10) to 10GB. Fine.

Rebooted and no success. I can't remember the exact problem, but my previous openSUSE boot menu was gone. No problem - I wanted OS independent booting anyway.

Next step: again booted to a live CD (with grub2). Mounted the boot partition (/dev/sda1) as /mnt. Then used grub-install

Code:
grub-install --root-directory=/mnt/ /dev/sda
Now, after rebooting I get:
Code:
sh:grub>
OK, good. So grub has control of the MBR.

Then I executed these commands:
ls / -- gives the expected output
cat /grub/grub.cfg -- lists my expected grub.cfg file, with my chainloader statements exactly like I put them.

Code:
menuentry "openSUSE 11.2 RC1 KDE4 64bit on sda10" {
  set root=(hd0,10)
  chainloader +1
  boot
}
I am not sure whey it isn't working.

So now, I decided to try booting manually:
Code:
linux (hd0,10)/boot/vmlinuz
initrd (hd0,10)/boot/initrd
boot
And now I'm booted into openSUSE just as I left it before expanding the partition.

But, I'm not sure how to fix this so it will boot next time.

Is the problem because grub cannot find grub.cfg?
Reply With Quote
  #2 (permalink)  
Old 03-Nov-2009, 17:30
MountainX's Avatar
Explorer Penguin
 
Join Date: Oct 2009
Location: A place with no mountains
Posts: 126
MountainX hasn't been rated much yet
Default Re: help -- won't boot after resizing partition

Solved.

My boot partition had a directory called /grub under the root. I simply moved this to /boot/grub on the same partition, where the new /boot directory is empty except for containing the grub directory under it.

That fixed it!
Reply With Quote
Reply

Bookmarks

Tags
boot, grub2


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2