On Saturday 13 Mar 2010 00:19:09 David Haller wrote:
Hello,
On Fri, 12 Mar 2010, C wrote:
The drives are all physically connected to the motherboard SATA controller (no extra controller card etc):
SATA0 = 1TB (main drive with 4 partitions for various Linux distributions, 1 swap and 1 /home) SATA1 = 1TB (data drive1, single partition) SATA2 = 500GB (data drive2, single partition) SATA3 = 500GB (data drive3, single partition) SATA4= 320GB (Windows drive)
How did you get to these names? Do they correspond to the labels on the motherboard?
openSUSE 11.2 is mounting the drives by ID, and this always works fine. The order openSUSE sees the drives (using fdisk -l) on /dev is different than the physical connect order:
/dev/sda = SATA2 /dev/sdb = SATA3 /dev/sdc = SATA4 /dev/sdd = SATA0 /dev/sde = SATA1
Please show the output of lspci. Many motherboards with more than 4 SATA-Ports have 2 onboard-controllers!
And please also show the output of: dmidecode | grep 'Product: '
openSUSE is installed on the 6th partition of SATA0 (/dev/sdd6). Grub in openSUSE is set to boot (hd0,5)... which is correct (as I understand Grub) and which boots fine.
Now here is where it gets weird.
I installed Gentoo on the 7th partition of SATA0 (dev/sdd7)... but fdisk -l from the Gentoo install sees the drives differently than openSUSE... it sees the drives like this:
/dev/sda = SATA2 /dev/sdb = SATA3 /dev/sdc = SATA4 /dev/hdc = SATA0 /dev/hdd = SATA1
And here you seem to use the one with SATA{0,1} with a PATA driver.
Please compare the outputs of lsmod on both distributions.
Next I installed Ubuntu 9.10 on the 5th partition of SATA0. Grub from Ubuntu is set to boot (hd3,5). hd3? Where did that come from?
Grub's devices are mapped to devices of the system that you install grub from. Please show the /boot/grub/device.map of both systems. And tell us what grub you want where to boot what.
Ubuntu boots fine with this Grub line.... but... how? The SATA0 drive is not hd3 in any way I understand it could be. As well, it picked up openSUSE at (hd3,6), and Windows at (hd2,1)..... yet when I do an fdisk -l it shows the exact same info as openSUSE.
It's all a matter of how devices are mapped to grub's devices.
So.. with all this conflicting information.. it's making it really hard for me to figure out what Grub in openSUSE should be set to (since I want to use the openSUSE boot menu for all of the installed OSes).
If you use just one grub in the MBR, e.g. openSUSEs, you need to use the grub-devices from the device.map of the openSUSE grub. As root= kernel-parameter though, you have to use the one as seen from e.g. Ubuntu to boot Ubuntu.
Each install thinks the drives are different in some way.. which is making life... difficult to say the least. Why is SATA0 attached to /dev/sdd?
It's on the first port of the second controller initialized. You can adjust that by having only the driver for the controller on which the boot-partition (the partition containing /boot) resides.
Why not /dev/sda? (minor issue since I'm using mount by id, but still... doesn't make sense) Why is one Linux seeing SATA0 as /dev/sdd and the other seeing it as /dev/hdc?
See above. It depends on which driver is used.
Why would Grub in openSUSE see SATA0 as hd0 (which makes sense to me) and Grub in Ubuntu see that same drive as hd3 (which makes no sense at all to me)?
Ubuntu doesn't see the drive as hd3. Its grub may seems to. And what that maps to depends on it's device.map.
Does anyone have any hints or clues for me here?
info grub ;P
-dnh Since people started messing around trying to be clever with this stupid SATA and forcing IDE drives to become SCSI devices there has been nothing but continual trouble with drives getting brain dead allocations and this device by name thing is well bin fodder .
Can we all stop trying to prove just how twisted our minds can work and just get back to drive on the first interface hda second hdb ect get rid of this stupid enforced scsi rubbish if sata devices need a seperate name then sata satb satc satd makes far more sense this device by name thing can we please get rid of this deranged junk , If devices are read in the order they are on the MB IDE1 is hda and hdb IDE2 is hdc and hdd sata1 is sata sata2 is satb ect it would all work very nicley We would not have this continual hassle with devices getting strange mappings from one distro to another that makes NO SENSE at all we are all supposed to be Linux so lets get everything talking correctly this we are going to do it this way because they have done another way is crap yes CRAP and dont come the innovation line cus that sucks that big it's unreal , Every distro should see a collection of drives in a computer the same way not each to their own this is one of the things that is holding Linux back it is too difficult to setup and once setup it makes no sense the way drives have been named I know there are certain people that are so far up their own backsides that they cant see this but there is our problem pure and simple . Pete . -- Powered by openSUSE 11.2 Milestone 2 (x86_64) Kernel: 2.6.30-rc6-git3-4- default KDE: 4.2.86 (KDE 4.2.86 (KDE 4.3 >= 20090514)) "release 1" 06:55 up 48 days 21:38, 3 users, load average: 0.03, 0.08, 0.02