Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [tlug] recovering from hosed GRUB




> -----Original Message-----
> From: tlug-bounces@example.com [mailto:tlug-bounces@example.com Behalf Of
> David Riggs
> Sent: Thursday, September 27, 2007 11:24 PM
> To: tlug@example.com
> Subject: [tlug] recovering from hosed GRUB
> 
> 
> Dear TLUG,
> 
> I tried to increase the NTFS partition on my dual-boot R50e Thinkpad 
> (Debian Sarge). I got into trouble messing around and now I get GRUB 
> Error 22 immediately.
> 

This is from memory, so not a lot of detail.  I'm sitting on a windows
box at the moment, so my instructions will be a little vague.

Assuming the linux install is fine, you may try booting up with a live CD, 
then mount the boot parition (will be either /boot, or just / on most
systems), and look at the config file for grub.  Make sure that the drives
are listed correctly.  Remember grub uses a 0 indexed list instead of the
usual letter+number that linux as a whole uses.  so /dev/hda1 is hda(0).

You may want to use gparted or fdisk to look at your parition table and
make sure you know where every partition is before you start.

once you know that is right, remount the approriate partitions so that it
will all line up propperly for a chroot.  chroot into the new environment
and run grub with the --no-floppy option, or whatever it is.

Run the initialization code for the boot parition again.  After
that, close out of grub, use 'exit' to leave your chrooted environment,
and unmount the excess partitions (remember to do it in reverse order.
umount won't unmount anything that has other mounts attatched).

Now reboot.  Most propper live disks will give you the chance to
eject your CD or do it for you, before the actual reboot part.  :-)

This SHOULD take you back to your grub menu.

-- 
Ken





Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links