LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2001, 03:12 AM   #16
Lazlo
Member
 
Registered: Jul 2001
Location: New Mexico
Distribution: Red Hat 7.1
Posts: 33

Rep: Reputation: 15

rdaves,

How many hard drives, cdrom (including cdrom/dvd combos or others)drives do you have? I believe that assignment of device letter depends on this factor. For example, if you have two cdrom drives and two hard drives (one for Win, and one for Linux), then upon boot-up the kernel will recognize the two cdrom drives as hdc and hdd; the two hard drives will be recognized as hde - which is Win and hdf - which is Linux. If you have one cdrom drive and one hard-drive, then PROBABLY the cdrom drive is hdc and the hard drive (Win/Linux) is hde. As jharris noted ealier, the drivers support hde through hdh.


If you are booting using LILO, then you need edit lilo.conf to reflect this The boot process from a floppy I'm not familiar with (perhaps someone else knows). But, If I have the right idea, when it boots from the floppy it gives you a boot prompt and a message telling you to specify where / is located (if different from what it thinks). It is at that point that you specify where your / partition is located. For example, if you found that you linux partition is hdf, then / would be on hdf6 (if may not be 6 on you comp). I would advice not guessing on the ide ports. Instead follow the steps here under section 2a to find the appropriate values

Hope this helps
Lazlo
 
Old 09-06-2001, 10:48 AM   #17
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Lazlo

Thanks for the input.

I have a CDROM and a CDRW and two identical hard drives. The CD's are installed on the secondary IDE channel as master and slave and I have been switching the two HD's (master and slave) between the Primary IDE channel and the Primary ATA channel, depending on whether I am running W98 or Linux . I have W98 and Linux installed on the primary drive and am using the slave drive as a backup medium.

So, I assume my Primary Hard drive is recognized as hde. It is recognized as hda5 when the HD's are plugged into the Primary IDE channel. So, my guess is that this HD is hde5, when plugged into the ATA channel, correct?

I have used A. Cline's mini Howto. I have done what he suggests in 2a of his article, providing: boot: vmlinuz ide2=0x9400, etc. Everything looks good, messages scrolling past screen, but the system hangs at the point where it tries to scan hde.

What I need is the exact code I would provide at the boot prompt. I think it should be: boot: vmlinuz ide2=0x9400, 0x9002. I don't think I need to provide the part about ide3, since I am only using the primary ATA channel (ide2).

If I need to provide something like "hde5", what would that look like?

Many thanks for your help.
 
Old 09-06-2001, 12:18 PM   #18
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
got 1/2 step closer

I set up my system to boot with lilo. I have also re-compiled the kernel making sure that ATA support is turned on. I named my new kernel, and set up lilo.conf calling this kernel "new".
I booted my "new" configuration. Messages scrolled past. Here are some of the messages I got:
--------------------------------------------------
hda irq probe failed
hdb irq probe failed
hde CDROM 56X...
hdf Fujitsu MPG3409AT E, ATA Disk Drive
IDE1 at 0x170-0x177, 0x376 on irq15
IDE2 AT 0x9400-0x9407, 0x9606 on IRQ10
hde: 80063424 sectors (940992MB) w/2048Kib cache, CHS=79428/16/63
hdf: ditto above
hde: ATAPI 56X CD ROM Drive 128KB cache
Univorm CD-ROM driver revision: 3.12
hdd: ATAPI 24X CD-ROM CD-RW drive 2048KB cache
Partition check:
hde: spurious 8259A interrupt: IRQ7
--------------------------------------------------
system hangs

Any ideas about what is causing the hang?
 
Old 09-06-2001, 03:10 PM   #19
Lazlo
Member
 
Registered: Jul 2001
Location: New Mexico
Distribution: Red Hat 7.1
Posts: 33

Rep: Reputation: 15
rdaves,

Hello. Okay...I'm kinda guessing, but: it looks like it's assigning the same device letter to both the first hard drive (hde) and the cdrom drive. This may be causing the hang. Perhaps you should include the ide3 parameters to see if this helps the system identify the drives correctly.

Lazlo
 
Old 09-06-2001, 11:31 PM   #20
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Lazlo

The lilo.conf used by the boot that produced the messages in my previous post included the "ide3=..." entry.

Here's my current lilo.conf

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux
image=/boot/vmlinuz-2.4.2-2
label=linux
read-only
root=/dev/hda5
append="hdd=ide-scsi"

image=/boot/mykernel-2.4.2
label=new
root=/dev/hde5
append="ide2=0x9400, 0x9002 ide3=0x8800, 0x8402"

other=/dev/hda1
optional
label=dos

Also, here are the fdisk -l results of my HD's on the IDE channel:

Disk /dev/hda: 255 heads, 63 sectors, 4983 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 74 4729 37399320 c Win95 FAT32 (LBA)
/dev/hda2 1 7 56196 83 Linux
/dev/hda3 4730 4983 2040255 f Win95 Ext'd (LBA)
/dev/hda4 8 73 530145 82 Linux swap
/dev/hda5 4730 4983 2040223+ 83 Linux

Partition table entries are not in disk order


Disk /dev/hdb: 255 heads, 63 sectors, 4983 cylinders
Units =Disk /dev/hdb: 255 heads, 63 sectors, 4983 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 1276 10249438+ 83 Linux
/dev/hdb2 1277 4983 29776477+ c Win95 FAT32 (LBA)
cylinders of 16065 * 512 bytes

It looks to me like the ATA designators for the Master HD should be hde1 thru 5 and for the slave, hdb1 and 2.

Questions:
[list=1][*]Do you agree with my assumption?[*]Given that the IDE3 entry was in my lilo.conf, why else would that spurious 8259A interrupt happen?[/list=1]
 
Old 09-07-2001, 02:52 AM   #21
Lazlo
Member
 
Registered: Jul 2001
Location: New Mexico
Distribution: Red Hat 7.1
Posts: 33

Rep: Reputation: 15
radaves,

I've read some information abou the spurious interrupt. Check outthis website for an interesting comment on it. It doesn't appear to be a problem or the cause of the system hang. Try this out: you need to edit your lilo.conf file to reflect some things; edit boot= entry to /dev/hde and the other= entry to /dev/hde1. Also, I noticed that under the old kernel's stanza, you have an append="hdd=ide-scsi", try adding this to the new kernel's stanza. Just add it affer the ide3 info (i.e. ".....ide3=....0x8402 hdd=ide-scsi" ). I'll keep looking for info.

Lazlo
 
Old 09-07-2001, 01:41 PM   #22
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Lazlo

I have read other info that confirms what I read in the post you suggest.
So it appears that the spurious 8259A interrupt isn't what is stopping the boot process. That leaves me where I was days ago. No matter what I try, the system hangs at the point where it is doing a partition check on hde.

I made modifications to my lilo.conf per your suggestions. Not sure about one change where the "append" stuff is. I am not clear on whether there needs to be a comma between the two sections and whether or not the quotes are correct.

boot=/dev/hde
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=Windows98
image=/boot/vmlinuz-2.4.2-2
label=linux
read-only
root=/dev/hda5
append="hdd=ide-scsi"

image=/boot/mykernel-2.4.2
label=new
root=/dev/hde5
append="ide2=0x9400, 0x9002 ide3=0x8800, 0x8402" "hdd=ide-scsi"

other=/dev/hde1
optional
label=dos

# Windows 98 stanza
other=/dev/hda1
table=/dev/hda
label=Windows98
# End Windows 98 stanza

After making these changes, I shut the system down, turned it off, and then switched the HD cable from IDE to ATA and rebooted. Once again, the system hung at the hde partition check. I read somewhere that there is a way to dynamite the system into recognizing the HD's correctly by providing head, sector and cylinder addresses, or something like that. I am going to retrace my steps to see if I can locat that information again.

By the way, I sent an email to another person who was having trouble with this ATA 100 thing. She replied that she had researchied this issue in depth and was unable to get any satisfaction...hmmm.

Do you think Linux Torvald could help?
 
Old 09-07-2001, 03:39 PM   #23
Lazlo
Member
 
Registered: Jul 2001
Location: New Mexico
Distribution: Red Hat 7.1
Posts: 33

Rep: Reputation: 15
rdaves,

Heh....I'm Linus could help us on this one; But, I think we'd better try some other stuff ourselves before we contact him. I've read that he's a pretty busy guy.

On the lilo.conf: you do not need to put a the " " between the hdd=ide-scsi and the ide info. It should look like:

append="ide2=0x9400,0x9002 ide3=0x8800,0x8402 hdd=ide-scsi"

Also note that you should remove the spaces between the commas (,) and the numbers. (i.e. ide2=0x9400,0x9002 not ide2=0x9400, 0x9002 --> this may be hard to distinguish here ,but I believe it makes a difference to lilo.)

Be sure to run /sbin/lilo after each change to lilo.conf

Lazlo
 
Old 09-08-2001, 02:04 AM   #24
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Lazlo

After I fixed my lilo.conf per your suggestions and then ran /sbin/lilo, I :[list=1][*]Shutdown[*]Moved HD cable to ATA 100 connector[*]Rebooted[/list=1]

Success! The boot process continued past the hde partition check. However, now I have the following problems.
  1. PPP deaman dies right after modem dials out
  2. No printer
  3. No sound
  4. swapon /dev/hda4 failed during boot

The first entry in my lilo.conf is: boot=/dev/hda

I tried to change this to : boot=/dev/hde. Since I had my HD's connected at that time to the IDE channel, and booted my old Linux, hde did not exist, and the lilo command generated errors.

I am now going to
  1. Switch HD cable to ATA channel
  2. Boot my new kernel
  3. Edit lilo.conf and change boot=/dev/hda to boot=/dev/hde
  4. Run /sbin/lilo
  5. reboot
  6. pray

We shall see if this fixes anything.
Will post more later.
Any thoughts?

Last edited by rdaves@earthlink.net; 09-08-2001 at 02:06 AM.
 
Old 09-08-2001, 02:49 AM   #25
Lazlo
Member
 
Registered: Jul 2001
Location: New Mexico
Distribution: Red Hat 7.1
Posts: 33

Rep: Reputation: 15
rdaves,

GREAT!! What you have planned for now sounds good. let me know how it goes. Let's see if we can move past all the boot-up issues first; then address the others. Great work.

Lazlo
 
Old 09-08-2001, 11:03 AM   #26
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Lazlo

Okay, did as I said I would, and no change
  • no sound
  • no ppp
  • no printer
  • swapon /dev/hda4 failed

Where else does the system go for configuration stuff on startup?
 
Old 09-08-2001, 03:43 PM   #27
Lazlo
Member
 
Registered: Jul 2001
Location: New Mexico
Distribution: Red Hat 7.1
Posts: 33

Rep: Reputation: 15
rdaves,

Okay. Well as far as starup scripts/files go I believe there are quite a few. But one I'm thinking may have to be edited is the /etc/fstab file. Look for the lines (especially swap) that refer to hda and change this to hde. See if this helps with the swapon failure. As for the sound/printer/ppp problems, did you enable support for these when you were configuring the new kernel (in make [x,menu]config? For sound, you might want to try /sbin/sndconfig. This might help set up your card.

Perhaps someone else could comment on any other files that might have to be edited.


Lazlo
 
Old 09-08-2001, 08:21 PM   #28
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Lazlo

I am not clear on how one should compile the kernel. When I recompiled, the only thing I did was to make sure UDMA support
(as I understand it) was available. I assumed that all the settings that existed in the old kernel would be carried over in the recompile...true?

Also, I think I screwed up. Thinking that perhaps the best way to get ppp, sound, printer and swap working was to reinstall linux as an upgrade, this is what I did. However, I figured that, since I was doing an install, I should follow Aaron Cline's "Unofficial Asus A7v and Linux ATA 100 Quasi-Mini-Howto". Section 2b advises that at the boot prompt, you type: boot: text ide2=ox9400, etc.
I did this, and the install went swimmingly, until I chose to add a bunch of packages. This exceeded the amount of memory that was available, and I got a bunch of "bad boy" messages and a hang. After that, I no longer have been able to boot to a GUI in either my old linux with HD's on the IDE channel or my new linux with HD's on the ATA channel. As far as I can get is a textual logon message which doesn't hang around long enough for me to log on, but ends up as a hang.

I tried to use System Commander to shift space from my W98 to my Linux partition, but SC is vomiting all over the place because of what lilo does to the mbr.

So, for this evening, my task, should I choose to accept it, is to unravel this mess and then get back to the ATA bash.
 
Old 09-08-2001, 10:08 PM   #29
Lazlo
Member
 
Registered: Jul 2001
Location: New Mexico
Distribution: Red Hat 7.1
Posts: 33

Rep: Reputation: 15
rdaves,

Hmmmm.....well, what do you have on your computer that you woul'd like to keep? I ask because we can go to routes:

1) Reinstall the system
thiis entails:
a) moving your drives back to the ATA100 ports.
b) booting the RH 7.1 CDROM
c) at the install's boot: prompt , just press enter (without the ide info). The setup program should detect your ATA100 drives automatically and set your system up to use them

2) Retracing your steps to figure out what causing the hang. We could maybe start a new thread for this and see if others have had this problem.

Or, do you have any other ideas? Hopefully we can get it all resolved.

To answer your first question: I believe the kernel source ( /usr/src/linux-2.4) you installed comes unconfigured - just as if you had downloaded the source from kernel.org) You have to completely configure the kernel options you want for your system. That is, just for the first time.. Anytime you run make [x,menu] config on the same source tree (/usr/src/linux-2.4) in the future, the options from the initial config are still set.

Lazlo
 
Old 09-09-2001, 12:27 PM   #30
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
Lazlo

Okay. I think I will try to reinstall with my HD's on the ATA channel. Seems like every time I have tried to trace a problem, like the hang, I spend a lot of time and end up doing a reinstall anyway. So you think that the ATA 100 connection will be automatically detected? Boy would that be nice. I'll try it and post progress later.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HP Omnibook 6000 Hard drive interface: ATA-100 or ATA-6? shortname Linux - Laptop and Netbook 3 05-11-2005 09:22 PM
ATA 100 or UltraDMA/100...whatever rdaves@earthlink.net Linux - Software 3 09-30-2003 06:49 PM
Ata 100 ??? inv|s|ble Linux - General 26 01-04-2002 03:46 AM
Promise ATA 100 MrTheGeek Linux - Software 0 01-02-2002 04:54 PM
ATA 100 Question syxxpac023 Linux - Software 4 10-04-2001 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration