LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-24-2007, 03:59 AM   #1
wavesound
LQ Newbie
 
Registered: Oct 2006
Location: Cardiff
Distribution: ubuntu
Posts: 20

Rep: Reputation: 0
Grub Guru needed Sata + IDE booting


Hi

Just done a search on this forum and not quite got the answer I need yet.
I'm convinced I have just missed something simple here re the way Grub see's disks.
I have
hda windoxe Xp
hdc debian kubuntu
and
sda ubuntu Edgy


After SMART telling me my 150 gig was about to die (thank you) I upgraded to a SATA disk 250 gig.

I have installed Edgy EFT 6 10 from Linux magazine.

Here is my drive config:

************************************

Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 522 4192933+ 7 HPFS/NTFS
/dev/hda2 523 3741 25856617+ f W95 Ext'd (LBA)
/dev/hda3 3742 7475 29993355 7 HPFS/NTFS
/dev/hda5 523 3741 25856586 7 HPFS/NTFS

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 9352 75119908+ 83 Linux
/dev/hdc2 9353 9729 3028252+ 5 Extended
/dev/hdc5 9353 9729 3028221 82 Linux swap / Solaris

Disk /dev/sda: 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/sda1 * 1 31 248976 83 Linux
/dev/sda2 32 30401 243947025 5 Extended
/dev/sda5 32 408 3028221 82 Linux swap / Solaris
/dev/sda6 409 30401 240918741 8e Linux LVM
studio@studio-desktop:~$

************************************************

Here is the drive mapping:

***********************************************

(hd0) /dev/hda
(hd1) /dev/hdc
(hd2) /dev/sda

***********************************************

And here is the menu list I use,
only the top kernel will boot
I can't boot the sda or windows on hd0

********************************************

title Ubuntu,Studio, kernel 2.6.15-27-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdc1 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
savedefault
boot

title Windows XP
rootnoverify (hd0,0)
chainloader +1(hd0,0)

title Ubuntu, kernel 2.6.17-10-generic
root (sd0,0)
kernel /vmlinuz-2.6.17-10-generic root=/dev/sda1 ro quiet splash
initrd /initrd.img-2.6.17-10-generic
quiet
savedefault
boot


title Ubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.15-27-386
boot

title Ubuntu, kernel 2.6.15-26-386
root (hd2,0)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hdc1 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot

title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot

title Ubuntu, kernel 2.6.15-23-386
root (hd2,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hdc1 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot

title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot

title Ubuntu, memtest86+
root (hd2,0)
kernel /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:

title Windows 2000 Professional
root (hd0,1)
makeactive
chainloader +1

*********************************************

What am I doing wrong here.
I have spent hours on this.


Is it this drive mapping causing the problem?

I have no primary slave anymore, it's the sata disk.

I note that my kubuntu is now on hd0 same as windows!



Cheers
Bob
 
Old 01-24-2007, 04:32 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If that first entry boots, I'd say you installed grub over the top of your XP partition. Have a look at /dev/hda1 when you get a linux system booted.
If so, I'd be betting on an re-install - of both XP and grub.
 
Old 01-24-2007, 06:34 AM   #3
wavesound
LQ Newbie
 
Registered: Oct 2006
Location: Cardiff
Distribution: ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00
If that first entry boots, I'd say you installed grub over the top of your XP partition. Have a look at /dev/hda1 when you get a linux system booted.
If so, I'd be betting on an re-install - of both XP and grub.

Yes this start ti filter into my mind.

So it's do this fix mbr thing in XP ( been that long I bet I cant remember the pw!)

Then fix the mbr with linux?


Many thanks

Bob
 
Old 01-24-2007, 04:44 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Probably not that easy. If it boots with "root (hd0,0)", that means the stage files were installed there.
fixboot/fixmbr won't resolve that - and if you reinstall XP you'll wipe out grub.

I'd be inclined to reinstall grub (the package) to where you want it, re-write the MBR to point to the new location. Then check things still work (i.e. boots), and then do XP.
Then you'll still need to go back and fix the MBR for grub after XP clobbers it.

Remember that this is all guesswork by me without being able to look at what's actually on each partition.
Lots of luck.
 
Old 01-25-2007, 03:25 AM   #5
wavesound
LQ Newbie
 
Registered: Oct 2006
Location: Cardiff
Distribution: ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00
Probably not that easy. If it boots with "root (hd0,0)", that means the stage files were installed there.
fixboot/fixmbr won't resolve that - and if you reinstall XP you'll wipe out grub.

I'd be inclined to reinstall grub (the package) to where you want it, re-write the MBR to point to the new location. Then check things still work (i.e. boots), and then do XP.
Then you'll still need to go back and fix the MBR for grub after XP clobbers it.

Remember that this is all guesswork by me without being able to look at what's actually on each partition.
Lots of luck.
Hi I think I'll run the live CD breezy and back up Home dir of Ubuntu.
Just to add fog to a misty day I installed a thing called GAG and it's boots windows fine but not the Linux's ( wonder if it supports SATA?)

I don't have enough hours to reinstall XP (at least I have a disk!) and SP 2 or whatever it's at now, and as for drivers and stuff, must be here somewhere.

Cheers
Bob
 
  


Reply

Tags
booting, grub, ide, mapping, sata



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
IDE/SATA Grub config advice needed wolveen SUSE / openSUSE 5 11-04-2005 06:25 AM
Dual booting with a SATA and an IDE Neccophiliac Linux - Hardware 1 09-20-2005 10:30 AM
grub guru needed: XP/FC3 dual boot FC3noob Linux - Newbie 4 02-13-2005 03:15 AM
Dual booting w/ 1 SATA and one regular IDE HD. Haniblectre Slackware 2 01-10-2004 05:20 AM
RH 9 ide + WinXP SATA + dual booting Ev D Linux - Hardware 0 07-21-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:01 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