Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I knew I would be using someone elses computer for a while, so when I came I brought a partitioned and formatted usb drive - used GParted Live CD - no label attached to partitions - never touched except by GParted.
When I got here I installed fedora 8. Fedora decided the usb drive was sda and the original ide drive was sdb. I thought I screwed up installing fedora so installed opensuse 10.3 more carefully. Same result:
From suse's /dev/disk/by-path:
What makes you say grub is any different to the rest of them ???.
Get into grub (CLI, as root) and try this
Code:
geometry (hd0)
geometry (hd1)
I told you this was confusing, or I should have. Note: GParted sees (hd0) as hda, (hd1) as sda
used version 0.3.1 >>>>>>>>>>Correct!!
>>>>>>>>>>>>>>>>>>>>>>From command line during boot "option c"
Quote:
grub> geometry (hd0)
drive 0x80: C/H/S = 1023/255/63, number of sectors = 78125000, LBA
Partition num: 0, Filesystem type unknown, partition type 0xde
Partition num: 1, Filesystem type unknown, partition type 0x7
grub> geometry (hd1)
drive 0x81: C/H/S = 234441648, LBA
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x82
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type unknown, partition type 0x7
===============================================================
from /root/anaconda-ks.cfg >>>>>>>>>>This is correct!!
[QUOTE]# Kickstart file automatically generated by anaconda.
install
lang en_US.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$sQBVbssf$QApPpXuuKc6kFAIs42Bem.
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone America/Chicago
bootloader --location=mbr --driveorder=sda,sdb --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux --drives=sdb
#part / --fstype ext3 --onpart sdb1
#part swap --onpart sdb5
==============/boot/grub=================================
[root@fed8 grub]# cat device.map >>>>>>>>>>>>Correct!!
# this device map was generated by anaconda
(hd0) /dev/sda
(hd1) /dev/sdb[\QUOTE]
Then, once I'm up and running in Fedora or Suse:
Quote:
>>>>>>>>>From gnome-terminal window:>>>>>>WRONG!!
grub> geometry (hd0)
drive 0x80: C/H/S = 14593/255/63, The number of sectors = 234441648, /dev/sda
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x82
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type unknown, partition type 0x7
grub> geometry (hd1)
drive 0x81: C/H/S = 4863/255/63, The number of sectors = 78125000, /dev/sdb
Partition num: 0, Filesystem type unknown, partition type 0xde
Partition num: 1, Filesystem type unknown, partition type 0x7
==================================================================
>>>>>>>>>>>>>>>>>>>>>>>>>>>>from gnome-terminal
grub> cat (hd0,0)/boot/grub/grub.conf>>>>>>>>CATING WRONG DRIVE/PARTITION
but the grub.conf/menu.lst gets it right!!
# all kernel and initrd paths are relative to /, eg.
# root (hd1,0)
# kernel /boot/vmlinuz-version ro root=/dev/sdb1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=15
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
#hiddenmenu
title Windoz
rootnoverify (hd0,1)
chainloader +1
title Fedora (2.6.24.4-64.fc8)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24.4-64.fc8 ro root=LABEL=fed8 rhgb quiet
initrd /boot/initrd-2.6.24.4-64.fc8.img
title Fedora (2.6.24.3-50.fc8)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24.3-50.fc8 ro root=LABEL=fed8 rhgb quiet
initrd /boot/initrd-2.6.24.3-50.fc8.img
title openSUSE 10.3 - 2.6.22.17-0.1
root (hd1,1)
kernel /boot/vmlinuz-default root=/dev/disk/by-id/usb-Initio_ST3120026A_0010100500030OM2-0:0-part2 vga=0x305 resume=/dev/sdb5 splash=
silent showopts
initrd /boot/initrd-default
title Failsafe -- openSUSE 10.3 - 2.6.22.17-0.1
root (hd1,1)
kernel /boot/vmlinuz-default root=/dev/disk/by-id/usb-Initio_ST3120026A_0010100500030OM2-0:0-part2 vga=normal showopts ide=nodma apm
=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd-default
title Debug -- openSUSE 10.3 - 2.6.22.17-0.1
kernel (hd1,1)/boot/vmlinuz-debug root=/dev/disk/by-id/usb-Initio_ST3120026A_0010100500030OM2-0:0-part2 vga=0x305 resume=/dev/sdb5 sp
lash=silent showopts
initrd (hd1,1)/boot/initrd-debug
------------------------------------------------------------------ TO ronlau9:
In the bios under Drive Configuration:
Diskette .......... Drive A
Primary Master..... HardDrive
Primary Slave ..... OFF
under HardDrive Sequence:
1. System bios boot devices
2. USB device
under Boot Sequence:
1. Diskette
2. IDE CD-Rom
3. HardDrive Drive C
I was tempted to put USB device first, to see if it would boot off pendrives, which it won't do now, but so far USB has been the second choice.
I just now notices that Primary Slave is off. Wonder what would happen if I set it to "auto". Do jumpers on a usb drive make any difference to master/slave status?
So, GRUB works from the console, but it's as confused as anybody else, once the OS is loaded.
A while ago, while I was running from the GPartd CD, I ran sfdisk -l. It got the drive order correct. Tried to copy it to somewhere, but couldn't.
I'm thinking about swapping HardDrive Sequence order and setting Primary Slave to Auto and checking the jumper on the usb drive. Don't know if that would do anything since the usb drive doesn't have any partitions flagged 'boot'. Re setting Primary Slave to 'auto', will it see the usb drive as a slave? Don't think so. Do jumpers in a usb drive make any difference? Don't thinks so.
BTW, the Dell hard drive is jumperd as Cable Select. I changed it to Master once and then it couldn't find Hard Drive 0. Dell really rocks.........
Anyway, I imagine your eyes are glazing about now. Any other comments, ideas, questions definitely appreciated.
This is the result of the libata change that now assigns P-ATA (IDE) drives in the SCSI namespace.
Basically the distro devs can't get their collective heads around the fact people may have a mix of drives. Ubuntu royally screwed this with gutsy - I opened a bug during the beta (yes gutsy, not the current hardy beta). Never did get a decent answer. They blamed the libata change when they hadn't bothered rethinking their udev rules.
If you go to Ubuntu, you may be worse off - I still have one machine that I have to adjust at the boot menu to get Ubuntu to come up. Archlinux on the same box is fine.
Yeah, I filed a bug report w/ Fedora the first time they labeled all drives starting w/ drive 0 as scsi. All I had were 2 IDE drives. The reply was that all drives were basically scsi and it wasn't a bug.
I've got ubuntu (7.04 upgraded to 7.10) at home one of my machines on the second IDE drive. I believe it labels all drives in scsi order too. I don't know what it would do if I tried installing it on a usb drive though. Replaced Slack w/ Archlinux (love it) and it's also on the same second IDE drive as ubuntu and also uses scsi ordering. No problems w/ either one.
Mandriva2008 still mixes hda,hdb,sda,sdb,etc. Maybe if I install Mandriva it will come out right.
I still think it's a Dell glitch though.
This is basically a throw away situation. When I get back home, this drive will be sdc to all but Mandriva,
Actually I suppose I ought to spend my time trying out OSs I haven't used before.
Thanks or the time and comments. Any further thought are very welcome.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.