LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2006, 06:21 PM   #1
pjo22
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
GRUB disk numbering is different from SUSE installer


Hello! I am trying to multiboot Windows XP and SUSE 10.1 using NTLDR.
I tried this method for Fedora Core 5 and it worked.

There are 4 SATA disks. No IDE disks.

/boot partition was created at the top of sdb and it is called sdb3 which is 50MBytes.
Bootloader for SUSE was installed to sdb3 by SUSE installer.

Using KNOPPIX,
#dd if=/dev/sdb3 of=/mnt/xxx/bootsector.dat bs=512 count=1
xxx is a FAT32 partition.

In WIndows XP, boot.ini was edited to have an entry to this bootsector.dat:
c:\bootsector.dat="SUSE 10.1"

When SUSE is selected at the NTLDR Menu, GRUB was loaded and the famous "GRUB_" was displayed and freezed there.


This motherboard ASUS A8N-SLI Premium has a function to select boot drive and sdb was selected to be booted.
This time GRUB> console appeared and console works.
It seemed like menu.lst did not work.
So manually input command,
root (hd1,2)
error no such partition !
this is exactly what was written in menu.lst created by SUSE installer.
Now, tab was used to find out which partitions were recognized and I found out that (hd1,2) which is sdb3 is (hd0,2) in GRUB.
So, the disk numbering is diffrent in SUSE Installer and GRUB.
then
kernel/vmlinuz root=/dev/sdb7 vga=0x31a resume=/sdb5 splash=silent showopts
initrd /initrd
boot

result: kernel panic
In the original menu.lst:
kernel/vmlinuz root=/dev/sdb8 vga=0x31a resume=/sdb6 splash=silent showopts

I found this page:
www-uxsup.csx.cam.ac.uk/pub/doc/suse/suse9.3/suselinux-adminguide_en/sec.grub.probs.html

In here,
System Containing IDE and SCSI Hard Disks Does Not Boot

During the installation, YaST may have determined the boot sequence of the hard disks incorrectly (and you may not have corrected it). For example, GRUB may regard /dev/hda as hd0 and /dev/sda as hd1, although the boot sequence in the BIOS is reversed (SCSI before IDE).

In this case, correct the hard disks during the boot process with the help of the GRUB command line. After the system has booted, edit the file device.map to apply the new mapping permanently. Then check the GRUB device names in the files /boot/grub/menu.lst and /boot/grub/device.map and reinstall the boot loader with the following command:

grub --batch < /etc/grub.conf

But I do not understand "correct the hard disks during the boot process with the help of the GRUB command line" I would like to know how to do this.
Maybe using map command ? Please advise exactly what commands should be typed in.

Thank You in advance.
pjo
 
Old 06-09-2006, 01:55 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
In the grub manual, you will find this:

"If you are not sure which partition actually holds these files,
use the command find (*note find::.), like this:

grub> find /boot/grub/stage1

This will search for the file name `/boot/grub/stage1' and show the
devices which contain the file."

Open a console, then enter the word 'grub' without parameters, to get to the grub prompt. then enter the find command as you see it. It will tell you the correct partition name to use in your grub config file.

Last edited by bigrigdriver; 06-09-2006 at 01:56 PM.
 
Old 06-09-2006, 08:52 PM   #3
pjo22
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bigrigdriver
In the grub manual, you will find this:

"If you are not sure which partition actually holds these files,
use the command find (*note find::.), like this:

grub> find /boot/grub/stage1

This will search for the file name `/boot/grub/stage1' and show the
devices which contain the file."

Open a console, then enter the word 'grub' without parameters, to get to the grub prompt. then enter the find command as you see it. It will tell you the correct partition name to use in your grub config file.

Thanks for your reply.

I will try that.

pjo
 
Old 06-11-2006, 02:56 AM   #4
pjo22
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
The disk had to be changed to new one.
There are three SATA disks.
So it has benn completely formatted.

This time

sda1 /boot
sda2 swap
sda3 /
sda4 /home
all primary partions.
sda1 was not set to be active.
no other partitions exists.

bootloader was wriiten in the sda1.

Using BIOS boot disk selector, sda was selected.
This time GRUB> did not come up.

Only GRUB _ came up and did not accept any keyboard input.

So no way to find /boot/grub/

Using Knoppix, it has been shown that sda1 has /boot/grub and grub files.

Is there any way to boot SUSE 10.1 ?

I will try to disconnect other disks for Windows XP so that only sda is connected.

pjo

---------------------------------------------
sda only test: Using BIOS function to select boot disk, same result, GRUB _ was displayed and freezed there.

So it looks like BIOS disk ordering is not the cause.

-----------------------
Is there any IRC channel of linuxquestions.org ? I serached but could not find one.

Last edited by pjo22; 06-11-2006 at 03:50 AM.
 
Old 06-11-2006, 05:18 PM   #5
pjo22
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
SUSE boots but .....

If esc is hit twice or more during the system boot, now GRUB> shows up !

root(hd0,0)
kernel /boot/vmlinuz root=/sda3 vga=0x31a resume=/dev/sda2 splash=silent showopts
initrd /boot/initrd
boot

This brings up a GUI SUSE 10.1, asking for username and password.

But in the GUI install process, there was no user creation phase.

How can user be created ?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub hard disk error old thinkpad SUSE 9.3 Alvarez SUSE / openSUSE 0 09-15-2005 12:40 PM
Disk partitioner in installer schermozzel Fedora 26 07-10-2005 09:50 AM
Grub Doesn't Boot Slave Disk, After Autoconfig by SUSE Swords SUSE / openSUSE 6 02-10-2005 04:41 PM
SuSe 9.1 installer stops in Grub on first boot alancook Linux - Newbie 1 07-24-2004 07:16 AM
How to make LILO installer disk? kolt Linux - General 1 02-06-2004 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration