On Mon, 28 Dec 2009, Mark Phillips wrote:

> Date: Mon, 28 Dec 2009 08:35:54 -0700
> From: Mark Phillips <[email protected]>
> Reply-To: "General Linux/UNIX discussion and help;    civil and on-topic"
>     <[email protected]>
> To: Phoenix Linux Users <[email protected]>,
>     Portland Linux Users Group <[email protected]>
> Subject: [PLUG] Help - Just Hosed My Grub 2 Install and Can't Boot
> 
> I was just finishing a new Debian squeeze install on a new laptop, and the
> last step was updating grub to grub 2. I went through
> update-from-grub-legacy, but I hit return before I ticked the box for sda.
> Now my system won't boot - I get error 15 when it starts up with grub. I am
> sure I just wiped out the old grub and did not install the new one. Any
> suggestions on how to go back and fix this problem? I can't boot into either
> windows or Debian.
>
> Thanks!
>
> Mark

Here are some steps to follow:

1. Boot from a linux CD (knoppix, finnux, etc).

2. Mount the root filesystem:

    cd /mnt
    mkdir sda3 (assuming this is name of your root partition)
    mount /dev/sda3 sda3

3. cd into the root filesystem mount point, and then mount the boot
    partition (if your /boot resides on its own partition):

    cd sda3
    mount /dev/sda1 boot

4. Just to be safe, mount /dev and /proc:

    mount -t proc none proc
    mount -o bind /dev dev

5. chroot into your root filesystem:

    chroot . /bin/bash
    source /etc/profile

6. Run the command "grub" to enter the interactive grub shell.

7. Once in the grub shell, type the following grub commands:

    root (hd0,0)
    setup (hd0)
    quit

8. Type "exit" to exit the chroot.

9. Unmount all mount points you have previously mounted:

    umount boot dev proc
    cd ..
    umount sda3

10. Reboot. Take the CD out. Enjoy!

Carlos
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to