Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-16-2006, 01:18 AM   #1 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Question Grub install with Knoppix

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.

Quote:
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:

Quote:
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?
The General is offline  
Old 09-16-2006, 01:46 AM   #2 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default

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:


The General is offline  
Old 09-16-2006, 10:51 AM   #3 (permalink)
Law
Law's Avatar
 
Wizard Techie

Join Date: Aug 2005

Location: the data closet

Posts: 4,172

Law is on a distinguished road

Default

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

Law is offline  
Old 09-16-2006, 02:40 PM   #4 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default

(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.
The General is offline  
 
Closed Thread

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