LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-23-2006, 07:59 AM   #1
dravenloft
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 68

Rep: Reputation: 15
PCI IDE randomly changes order


Ok, googling about Linux using a PCI IDE controller and an onboard one the kernel sets PCI IDE0 to /dev/hda and then the mainboard's IDE0 = /dev/hde.
Due certain config needs and one drive that hates the PCI IDEs I have my drives arranged as PCI IDE0 = Linux, PCI IDE1 = DVD, IDE0 = Win, IDE1 = DVD
Normally when I boot this makes hda, hdc, hde, hdg. Fine.

Sometimes I reboot Linux and it does it the other way around (naturally it then can't find / when this happens... joy).

Why can't it decide what order this goes in? Worse, why has it in the past 24 hours decided that it will steadfastly refuse to see a PCI IDE as anything BUT hde even if I put ALL the drives on the card and turn the onboard channels completely off (Award BIOS so I can disable the IDE controllers)

EDIT: Sorry, got distracted, and hit submit before I was done:

Kernel is latest version in the Debian/Sid packages as of 21.5.06 2.6.16-10 I believe. (2.6.16-something anyway) and I use Lilo, and please don't suggest GRUB, believe me... if it didn't give me errors about the partition table I would use it (it's apparently not compatible with the BSD table format you can select when installing debian... go figure)

Last edited by dravenloft; 05-23-2006 at 08:03 AM.
 
Old 05-23-2006, 08:30 AM   #2
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
When your kernel got updated it might have change the option in the kernel for
"boot offboard chipsets first"

You could check this and change it. I've had a similar issue and I worked around it by using the e2label command to label the disks, and changing grub(sorry but its what i use ) to have a root device of

/dev/LABEL=root instead of the /dev/hda8

pretty sure lilo can do the same. Thats how they do it on RHEL so if the controlers and hard disks get messed up it still boots. Let us know how you get on and if you fix it.
 
Old 05-23-2006, 09:54 AM   #3
dravenloft
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by KarlosDaJackel
When your kernel got updated it might have change the option in the kernel for
"boot offboard chipsets first"

You could check this and change it. I've had a similar issue and I worked around it by using the e2label command to label the disks, and changing grub(sorry but its what i use ) to have a root device of

/dev/LABEL=root instead of the /dev/hda8

pretty sure lilo can do the same. Thats how they do it on RHEL so if the controlers and hard disks get messed up it still boots. Let us know how you get on and if you fix it.
Thanks, I'll give it a go. Gotta get a live CD burned to get into anyting more versitile than busybox. Vi and I don't get along, and it's hard to control lilo from it.

How convenient... it just finished d/ling. Well. ~crosses fingers~ here goes.
 
Old 05-23-2006, 01:19 PM   #4
dravenloft
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
I give up.
I've spent the last day and a half or more in Windows . I have 0 patience left to fix this. I need some advise on 3 points because I'm just going to fix this the drastic way rewrite the partitions and resintall:
1) what is the best & Fastest way to back up 30ish GB spread across 4 partitions onto DVD-RWs?
I'm using the CD-ROM copy of Knoppix 4.02 if that tells you what programs I have available to me at the moment.

2) I've got more than 4 partitions and I liked the ... I guess elegance of the BSD partition table being able to just count consecutively and to not need extended partitions (funny... the lack of an extended partitions filled with logical partitions the data in those FSes seems to r/w faster). GRUB doesn't like the BSD table type though. Is there a partition table type that it would get along with that doesn't require extended partitions? Is fine if not, I'll just go back to the msdos table.

3) It's possible for / to be XFS. It's possible even for the /boot to be XFS with GRUB. But how do you INSTALL GRUB to one of these? It always crashes when I try.
 
Old 05-23-2006, 02:50 PM   #5
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
Shame you gave up, but i'll have a go at the new questions

1) dont know, that reminds me I should back up

2) Ideal partioning is imho
1 Primary partiton (usually windows}
2 extended Partion (container for other partions)
3 linux boot partion (for grub)
5 swap partion
All partions after this point will be your choice, I run 2 distros so i have 2 / partions 1 for each distro.

P.s. On scsi/sata there is a 15 partition limitation, on IDE it is 40.

3) Yes, Root can be XFS JFS, whatever. If you look at your boot partion in /boot/grub. you will see stage files. If there is a file called xfs_stage_1_5, your grub can boot xfs. On my laptop I had the following Setup for Gentoo

/dev/hda1 Dell utility partition 50meg
/dev/hda2 Windows XP SP2
/dev/hda3 /boot (200MB ext2)
/dev/hda4 (((EXTENDED)))
/dev/hda5 / (XFS its a laptop, just treat the battery is like a portible UPS)

I built grub with the xfs use flag so i have a xfs stage. I'm not that fussy about the partion table after an install as it never gets used after that point. I like the BSD slices system also but it seems to be the source of all your problems? Do you really need it or just want it?

Cheer up, at least your not trying to install elilo into an EFI partition on an Itanium box. My hair goes grey just thinking about that one
 
Old 05-23-2006, 03:04 PM   #6
dravenloft
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by KarlosDaJackel
Shame you gave up, but i'll have a go at the new questions 1) dont know, that reminds me I should back up
I could just tar.bz them a few dirs at a time.. but that just takes SO long.
Quote:
2) Ideal partioning is imho 1 Primary partiton (usually windows} 2 extended Partion (container for other partions) 3 linux boot partion (for grub) 5 swap partion All partions after this point will be your choice, I run 2 distros so i have 2 / partions 1 for each distro. P.s. On scsi/sata there is a 15 partition limitation, on IDE it is 40.
I have a second drive for windoze. I keep to variations on / /tmp /home /mp3s swap. With occasional shifts to a /boot, /root, /var, etc... which is why I liked the BSD thing. I one time had only 6 or 7 partitions but they went out to hda11 because of the msdos scheme.
Quote:
3) Yes, Root can be XFS JFS, whatever. If you look at your boot partion in /boot/grub. you will see stage files. If there is a file called xfs_stage_1_5, your grub can boot xfs. On my laptop I had the following Setup for Gentoo /dev/hda1 Dell utility partition 50meg /dev/hda2 Windows XP SP2 /dev/hda3 /boot (200MB ext2) /dev/hda4 (((EXTENDED))) /dev/hda5 / (XFS its a laptop, just treat the battery is like a portible UPS) I built grub with the xfs use flag so i have a xfs stage. I'm not that fussy about the partion table after an install as it never gets used after that point.
Oh, I know it can be used I just can't figure out how to get it installed. grub-install when one of the partitions it'll have to be working with is XFS does funny things. The people who make XFS admit it does something very odd with XFS that causes that issue, but offer no ideas how to solve it. The people over at GNU don't seem aware of it to read the GRUB stuff there.
Quote:
I like the BSD slices system also but it seems to be the source of all your problems? Do you really need it or just want it?
I don't need it. Just rather like it. :-/ guess I'll use msdos's ideas unless I can find something else.
Quote:
Cheer up, at least your not trying to install elilo into an EFI partition on an Itanium box. My hair goes grey just thinking about that one
True. I'm remembering now why I was happy that SuSE had introduced me to using GRUB in the first place. It's been years now since I used Lilo, and I'm wondering now how we ever got along back when it was the best boot loader Linux had.

Last edited by dravenloft; 05-23-2006 at 03:06 PM.
 
Old 05-31-2006, 08:09 PM   #7
dravenloft
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
Ok. So I've got a vanilla intall of etch. It's working, it's booting. I've got things all set up.
PCI IDE:
/dev/hda1 /boot
/dev/hda2 swap
/dev/hda3 extended
/dev/hda5 /
/dev/hda6 /home
/dev/hda7 /Music
/dev/hdc /media/dvdrw

Onboard IDE:
/dev/hde Win2k
/dev/hdg /media/dvdrom


So I switch my bios back to no booting from CDROM because it gets confused if I've left a music CD in there.
WHY if I put the boot order from CDROM,A,C to C only I now CANNOT get the PCI card to be the /dev/hda? I'm using GRUB so I try setting it to vmlinuz root=/dev/hde5 instead of a5.... either way I get some error where the kernel is panicing over trying to access beyond the end of /dev/hda2. If I try /dev/LABEL=/ (I let debinstall decide what to label things) it just hangs waiting for a response from the root fs . I'd by now just throw the stupid thing out the window and get a Mac.. but I'm broke, so I need a different idea.


BTW, why does bios boot order have odd affects on the kernel? I had a redhat 5.2 and mandrake 6.x install that wouldn't recognise an LS-120 drive unless I left the boot order A,CDROM,C. ASUS P5A, Award Bios if that actually has something to do with it.
 
Old 05-31-2006, 08:21 PM   #8
dravenloft
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
Of course...
I set the boot order back to cdrom,a,c it STILL is suddenly looking for the drives PCI last. I TURNED OFF the onboard IDE controler. It still is looking in the wrong place... but at least now I don't get crap about /dev/hda2 causing a kernel panic.

I HAVEN'T CHANGE THE KERNEL WTF?!?! I don't get it. I was trying to compile a kernel with the "off-board IDE first=y" but my system locked up.

I swear, one more thing mysteriously changes and I'm going to give up. I like linux, hate Windows, love mac. I'll put up with win2k until my machine can be replaced and sold for scrap.
 
Old 05-31-2006, 09:20 PM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I remember reading somewhere a motherboard cannot handle more than two IDE ports on IRQ 14 and 15 respectively. Thus, additional IDE controllers cannot be added if there is one embedded. Maybe this information is outdated, not sure.
 
Old 05-31-2006, 09:53 PM   #10
dravenloft
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
I remember reading somewhere a motherboard cannot handle more than two IDE ports on IRQ 14 and 15 respectively. Thus, additional IDE controllers cannot be added if there is one embedded. Maybe this information is outdated, not sure.
It's not anything to do with IRQs. The PCI IDE Controler is always on 12.
 
  


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
PCI IDE cards in linux hamish Linux - Hardware 5 10-31-2004 02:43 AM
PCI IDE Card Question geoff-taylor@ho Linux - Hardware 0 10-30-2004 06:22 PM
pci/ide controller trackrat Linux - Hardware 0 06-13-2004 04:05 PM
IDE pci cards r_jensen11 Linux - Hardware 4 04-04-2004 01:38 PM
how2 make the kernel scan both PCI IDE and Mboard IDE channels? carboncopy Slackware 1 07-23-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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