• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3134
  • Last Modified:

GRUB problems with SUSE 10.3

I am having trouble installing GRUB under SUSE 10.3 (final version released this week). I want to install it into my /dev/sdb6 partition, which is where I installed SUSE. I don' t want to install it into the MBR because I already have another boot manager there. This is the first time that I have trouble installing GRUB under SUSE and I suspect it's something related to this new version 10.3. I particularly do not understand why SUSE keeps referring to my sdb6 partition as sdb6,5. Any ideas?

Some data:

1) Output of the command "grub-install /dev/sdb6":
----------------------------------------------------------------------------------------------
    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> setup --stage2=/boot/grub/stage2 (/dev/sdb6,5) (/dev/sdb6,5)

Error 23: Error while parsing number
grub> quit
----------------------------------------------------------------------------------------------

2) Contents of the device.map file
-------------------------------------------
(hd0)   /dev/mapper/nvidia_ifaddacf
(fd0)   /dev/fd0
(hd2)   /dev/sdb0
-------------------------------------------

3) Contents of the /boot/grub directory
---------------------------------------------------------------------------
-rw------- 1 root root     65 Oct  7 12:23 device.map
-rw------- 1 root root     65 Oct  7 11:24 device.map.old
-rw-r--r-- 1 root root   7576 Sep 21 18:59 e2fs_stage1_5
-rw-r--r-- 1 root root   7424 Sep 21 18:59 fat_stage1_5
-rw-r--r-- 1 root root   6664 Sep 21 18:59 ffs_stage1_5
-rw-r--r-- 1 root root   6656 Sep 21 18:59 iso9660_stage1_5
-rw-r--r-- 1 root root   8128 Sep 21 18:59 jfs_stage1_5
-rw------- 1 root root   1511 Oct  7 12:23 menu.lst
-rw------- 1 root root   1511 Oct  7 11:24 menu.lst.old
-rw-r--r-- 1 root root   6844 Sep 21 18:59 minix_stage1_5
-rw-r--r-- 1 root root   9160 Sep 21 18:59 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 Sep 21 18:59 stage1
-rw-r--r-- 1 root root 103162 Oct  7 02:42 stage2
-rw-r--r-- 1 root root   7004 Sep 21 18:59 ufs2_stage1_5
-rw-r--r-- 1 root root   6228 Sep 21 18:59 vstafs_stage1_5
-rw-r--r-- 1 root root   8820 Sep 21 18:59 xfs_stage1_5
---------------------------------------------------------------------------


0
gsaito
Asked:
gsaito
  • 2
  • 2
3 Solutions
 
WizRd-LinuxCommented:
try grub-install --recheck /dev/sdb

You need to install the grub boot instructions to the MBR of a drive, not a partition.
0
 
WizRd-LinuxCommented:
and if you already have another loader there, you will need to add the other OS to your grub.conf and still install it in the MBR.
0
 
wyliecoyoteukCommented:
The device map looks wrong.

Assuming that you have  a PATA disk and a SATA disk,

hd0 should be  /dev/hda ( or /dev/sda)
hd1 should be /dev/sdb

Hd2 will not exist unless you have 3 drives.

sdb6 is the wrong syntax

I have seen the "mapper" entry on 2 machines with SATA controllers with Raid capability, on both I had to edit the device map to install grub correctly, even when installing to the MBR.

grub cannot make sense of the instuction to install to /dev/sdb6
the 6,5 refers to the 6th partition on disk 7  (remember grub counts from 0)

I have one PATA disk and one SATA disk, my device map now looks like this:

(fd0)      /dev/fd0
(hd0)      /dev/sda
(hd1)      /dev/sdb

for grub syntax, look here

http://orgs.man.ac.uk/documentation/grub/grub_11.html




0
 
wyliecoyoteukCommented:
edit:

the line "the 6,5 refers to the 6th partition on disk 7  (remember grub counts from 0)"

is not very clear.

it perhaps should read"the 6,5 refers to disk 7, partition 6  (remember grub counts from 0, and extended partitions start at 4)

0
 
gsaitoAuthor Commented:
Thanks for all the feedbacks.

WizRd-Linux:
I don't think I necessarily need to install GRUB to the MBR. As a matter of fact, I never did so in previous installations. For instance, I have Ubuntu 7.04 installed in another partition [(hd2,5) or /dev/sdb6)], and GRUB installed in that same partition. I have another bootloader (BootIt, my favorite) that resides in MBR. When I want to boot Ubuntu, BootIt will initiate boot on (hd2,5), which automatically initiates GRUB in that partition. I end up going through 2 boot loaders before effectively booting the OS, but it works nicely.

wyliecoyoteuk:
I have 4 hard disks, all SATA. Two of them are linked in NVIDIA's nForce RAID1 mode.
I think SUSE 10.3 got the device map plain wrong, I had to redo it by hand as follows:

(hd0) -> /dev/sda
(hd1) -> /dev/sdc
(hd2) -> /dev/sdb
(hd3) -> /dev/sdd

I installed SUSE in the 6th partition on drive 2, therefore (hd2,5) using GRUB nomenclature, or /dev/sdb6 using Linux nomenclature. I still don't understand why SUSE installation routine kept referring to my partition as sdb6,5. This seems like wrong syntax (like mixing GRUB and Linux nomenclatures...).

Conclusion:
I managed to solve it myself by (i) redoing device.map from scratch, (ii) manually editing the menu.lst file so as to have it refer to (hd2,5) as opposed to the crazy sdb6,5 nomenclature, (iii) manually installing GRUB to (hd2,5) using a GRUB boot diskette, (v) running GRUB's setup command from GRUB's boot menu.

That solved the problem. GRUB is installed in my (hd2,5) partition and is activated by my BooIt bootloader that resides in the MBR. I just don't understand why it was so troublesome to get it working. Previous SUSE installations (everyone since 9.3) would accomplish this straightforward from the installation program.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now