Grub install with Knoppix

Status
Not open for further replies.

The General

Banned
Messages
5,191
For some reason, etch beta 2 won't install GRUB and I need to do it manually with a Knoppix disc. I didn't want to screw anything up, but I found this in a forum and it looked promising, I just need help in changing some stuff to make it work with my computer.

Mount the partition (provide the correct HD notation for hdax):
# mount -o dev,rw /mnt/hdax

If it's already mounted, remount it like this:
# mount -o remount,dev,rw /mnt/hdax

Now, restore grub like this:
# chroot /mnt/hda1 grub-install /dev/hda

If the chroot method doesn't work, try remounting as outlined above and do:
# grub-install -root-directory=/mnt/hda1 /dev/hda

Here's my computer:

/dev/sda1 (150gb Windows)
/dev/sda3 (96gb / )
/dev/sda2 (4gb swap)
/dev/sdb (250gb LVM)
/dev/sdc (250gb LVM)
/dev/hda (cdrom0)
/dev/hdb (cdrom1)

/dev/sdb1 + /dev/sdc1 = 500gb of /home

Here's my question, am I right in converting this "howto" to my computer by doing this:

Mount the partition (provide the correct HD notation for hdax):
# mount -o dev,rw /mnt/sda

If it's already mounted, remount it like this:
# mount -o remount,dev,rw /mnt/sda

Now, restore grub like this:
# chroot /mnt/sda3 grub-install /dev/sda

If the chroot method doesn't work, try remounting as outlined above and do:
# grub-install -root-directory=/mnt/sda3 /dev/sda

And once I do that, I can just edit my /boot/grub/menu.lst and add Windows on the list?
 
Whatever, I went ahead and did it, but now I'm at a grub shell. I tried
Code:
root (hd0,2)
kernel /vmlinuz root=/dev/sd3
boot
but I get a kernel panic and it says to append a valid root=/ but I don't know what else to do so I'm kinda stuck here. :(

EDIT: Okay I got a little further
Code:
root (hd0,2)
kernel /boot/vmlinux-2.6.15-1-486 root=(hd0,2)
initrd /initrd.img
boot

And I got a kernel panic, then I tried this:

Then I tried
Code:
root (hd0,2)
kernel /boot/vmlinux-2.6.15-1-486 root=(hd0,2)
initrd /boot/initrd.img-2.6.15-1-486
boot

And it took me to here:

img1341zb1.jpg
 
Try changing the menu.lst like this, see if this would help.

Code:
    root (hd0,1)
    kernel /boot/vmlinux-2.6.15-1-486 root=/dev/sda3 
    initrd /boot/initrd.img-2.6.15-1-486
    boot
 
(hd0,1) is my swap partition, therefore /boot/vmlinuz-2.6.15-1-486 doesn't exist. :(

I'm just going to format all three of them, swap the harddrives sda and sdb, and install on a different harddrive and see if that works, I see no reason why the etch installer would fail to install grubb.
 
Status
Not open for further replies.
Back
Top Bottom