LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-10-2007, 06:21 PM   #1
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Rep: Reputation: 30
Question regarding GRUB


I'm coming from Slackware, which uses LiLo, to Ubuntu, which uses GRUB, and I had some difficulty getting things setup. Finally I got it all working, but I'm curious about something. The pertinent part of menu.lst is:
Code:
title		Ubuntu, kernel 2.6.20-16-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.20-16-generic root=UUID=fea4a51a-3d61-45ca-991f-0d736333016a ro quiet splash noapic
initrd		/boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           WinXP
root            (hd1,0)
savedefault
makeactive
map             (hd0) (hd1)
map             (hd1) (hd0)
chainloader +1
Note that GRUB is set to look for Ubuntu on hd0 and XP on hd1, but when I do
Code:
keith@Krypton:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.

grub> find /boot/vmlinuz-2.6.20-16-generic
 (hd1,0)
Am I missing something here? Shouldn't it be hd0? My setup is Ubuntu on a Sata dive, and XP on an IDE drive.
 
Old 10-10-2007, 07:00 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Post the output from ' /sbin/fidsk -l ' as root.

Brian
 
Old 10-10-2007, 07:04 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,127

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Do they both boot ???.
Let's have a look at /boot/grub/device.map
 
Old 10-10-2007, 09:19 PM   #4
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Original Poster
Rep: Reputation: 30
Code:
keith@Krypton:~$ sudo /sbin/fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1216     9767488+  83  Linux
/dev/sda2            1217       13374    97659135   83  Linux
/dev/sda3           13375       13617     1951897+  82  Linux swap / Solaris
/dev/sda4           13618       38913   203190120   83  Linux

Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        3770    30282493+   7  HPFS/NTFS
/dev/hdb2            3771       30401   213913507+  83  Linux
keith@Krypton:~$
Yes, they both boot, and here's the device.map:
Code:
keith@Krypton:~$ gedit /boot/grub/device.map 
(hd0)	/dev/sda
(hd1)	/dev/sdb

Last edited by thekid; 10-10-2007 at 09:22 PM.
 
Old 10-12-2007, 06:06 PM   #5
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Kind of at a lost.

Brian
 
Old 10-12-2007, 06:57 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I am stabbing in the dark. I think it is possible that the mixture of ide and sata can cause confusion.

I would be curious what the "find" command would say if you did it during startup. Reboot and, when the grub screen comes up, hit esc to stop the countdown (possibly esc again to get to text mode), and then "c" for a command prompt. Do the "find" thing from there.
 
Old 10-12-2007, 08:41 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,127

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
And in addition to that, "root (hd0,<tab>" (tab completion for partitions). The number will tell you which disk it is seeing as zero.
 
Old 10-12-2007, 11:24 PM   #8
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Original Poster
Rep: Reputation: 30
Interestingly enough when I ran the find command at boot it found vmlinuz on hd0...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 question... Robert Diggs Linux - Newbie 1 01-30-2007 11:48 AM
Two things: (Probably Simple) Grub question, and a gDesklets question Wilffo Linux - Software 3 05-20-2006 01:33 PM
Question on Grub Cougaris Linux - Software 1 03-04-2006 04:06 PM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
GRUB Question LinuxGeek Linux - General 5 12-31-2004 05:39 PM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration