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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-10-2007, 06:21 PM
|
#1
|
|
Member
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190
Rep:
|
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.
|
|
|
|
10-10-2007, 07:00 PM
|
#2
|
|
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,697
Rep:
|
Post the output from ' /sbin/fidsk -l ' as root.
Brian
|
|
|
|
10-10-2007, 07:04 PM
|
#3
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
Do they both boot ???.
Let's have a look at /boot/grub/device.map
|
|
|
|
10-10-2007, 09:19 PM
|
#4
|
|
Member
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190
Original Poster
Rep:
|
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.
|
|
|
|
10-12-2007, 06:06 PM
|
#5
|
|
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,697
Rep:
|
Kind of at a lost.
Brian
|
|
|
|
10-12-2007, 06:57 PM
|
#6
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
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.
|
|
|
|
10-12-2007, 08:41 PM
|
#7
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
And in addition to that, "root (hd0,<tab>" (tab completion for partitions). The number will tell you which disk it is seeing as zero.
|
|
|
|
10-12-2007, 11:24 PM
|
#8
|
|
Member
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190
Original Poster
Rep:
|
Interestingly enough when I ran the find command at boot it found vmlinuz on hd0...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:37 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|