You are not logged in.

#1 2007-12-13 17:15:11

b9anders
Member
Registered: 2007-11-07
Posts: 691

[solved]problem writing grub on to the mbr

I wanted to try geubuntu the other day and ended up losing my arch grub configuration as geubuntu overwrote the mbr.

I have tried to overwrite it again myself (I prefer the arch graphic boot) but don't seem to have much luck. My menu.lst says this about my arch partition

# (0) Arch Linux
title  Arch Linux
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro vga=773
initrd /boot/kernel26.img

I have tried to run both install-grub, which gave this output:

install-grub /dev/sda5
Installing the GRUB bootloader...
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> root (hd0,4)
 Filesystem type is jfs, partition type 0x83
grub> setup (hd0,4)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/jfs_stage1_5" exists... yes
 Running "embed /boot/grub/jfs_stage1_5 (hd0,4)"...  16 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0,4) (hd0,4)1+16 p (hd0,4)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded

and then grub-install which gave this:

grub-install /dev/sda5
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/sda

All seems to be as it should, yet it is still the geubuntu grub that loads on boot. What am I missing here?

Last edited by b9anders (2007-12-13 19:06:55)

Offline

#2 2007-12-13 17:56:47

ebirtaid
Member
From: USA
Registered: 2007-11-18
Posts: 52

Re: [solved]problem writing grub on to the mbr

when you add:

# (0) Arch Linux
title  Arch Linux
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro vga=773
initrd /boot/kernel26.img

to the ubunu menu.lst it still doesn't work?  also, you may have to edit the root partition numbers to point at the correct root/kernel/etc

Offline

#3 2007-12-13 18:03:17

Sacro
Member
Registered: 2007-06-27
Posts: 10

Re: [solved]problem writing grub on to the mbr

You aren't actually writing GRUB to the MBR, you are writing it to a partition.

try

grub-install /dev/sda

instead

Offline

#4 2007-12-13 18:11:55

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: [solved]problem writing grub on to the mbr

Sacro wrote:

You aren't actually writing GRUB to the MBR, you are writing it to a partition.

try

grub-install /dev/sda

instead

two thumbs up, here is the problem.

Offline

#5 2007-12-13 19:06:22

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: [solved]problem writing grub on to the mbr

thanks, sacro. solved it. smile

Offline

Board footer

Powered by FluxBB