1823249 Members
3159 Online
109648 Solutions
New Discussion юеВ

Linux hda Driver

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Linux hda Driver

Hi all,
This is kind of a continuation from the previos post of 'ramdisk'. I loaded ram support into the kernel, added vfat. Now I am experiencing a problem with m cdrom dvd-rw. When I run dmesg I see:

hda: driver not present

how do I check to see the status of the hda driver. And if its not there, how do I resolve this.

10x
RPM
UNIX IS GOOD
7 REPLIES 7
Kjetil Jensen
Advisor

Re: Linux hda Driver

Sounds like something that have happened to me on RedHat. If you were running vanilla kernel (that is you never compiled your own), running make xconfig (or anything equivalent) is not producing the same kernel as you were running.
Let me clear this up a bit (for my own sake), if you compile a new kernel without changing anything, you will not get the same kernel as the one delivered with the installation (or erratas).
If you want to just change some settings in a "vanilla" kernel, you should first copy the file /boot/config-`uname -r` to /usr/src/linux-2.4/.config and then run config to change whatever parameters you want.
Btw. In some distros (eg. RHAS/RHES) the config files are located under /usr/src/linux-2.4/configs

Regards
Kjetil
Huc_1
Honored Contributor

Re: Linux hda Driver

Sorry to ask more then I answer, but need more info here you see all your disk ? but not your cdrom dvd-rw ?
Are your other disk's' ide ?, because hda is the first ide disk ! usualy "make that often" the cd would be "hdc" .

I am guessing your disk are scsi and your cd-rom dvd-rw is a scsi?

can you use your cd dvd at all ?

show here/attach the usefull part of #/var/log/messages
#dmesg
#lsmod
#df
#cat /etc/fstab

J-P Who is willing to help
Smile I will feel the difference
Nobody's Hero
Valued Contributor

Re: Linux hda Driver

I have 2 scsi disk drives. Yes I see them just fine.

I am using an ide-dvd-rw.

Here are the files.
[root@pompano etc]# more fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/app /app ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/u01 /u01 ext3 defaults 1 2
/dev/sdb1 /u02 xfs defaults 1 2
/dev/sda3 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Attached scsi tape st0 at scsi1, channel 0, id 2, lun 0
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0
sym53c896-0-<0,*>: FAST-40 SCSI 40.0 MB/s (25.0 ns, offset 31)
SCSI device sda: 35566480 512-byte hdwr sectors (18210 MB)
Partition check:
sda: sda1 sda2 sda3
sym53c896-0-<1,*>: FAST-40 SCSI 40.0 MB/s (25.0 ns, offset 31)
SCSI device sdb: 17773524 512-byte hdwr sectors (9100 MB)
sdb: sdb1 sdb2
es1371: version v0.30 time 15:29:51 Oct 1 2003
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ds: no socket drivers loaded!
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 136k freed
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,1), internal journal
Adding Swap: 871416k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,18), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sd(8,17)
Ending clean XFS mount for filesystem: sd(8,17)
[root@pompano etc]# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 9527936 8287552 756392 92% /
/dev/sda2 7117848 606620 6149656 9% /app
none 127736 0 127736 0% /dev/shm
/dev/sdb2 4031680 32828 3794052 1% /u01
/dev/sdb1 4780016 344 4779672 1% /u02
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


ls mod did not return any data. Running RH9 on an intel E800
UNIX IS GOOD
Huc_1
Honored Contributor
Solution

Re: Linux hda Driver

lsmod
not returning anything ?
do you have
loadable modules support to yes in your kernel config file ?

CONFIG_MODULES=Y

if not you need this to have loadable modules in your new kernel and after compilation of kernel you need to do
make modules : make modules install

Have a look at the http://www.redhat.com/docs/manuals/linux/RHL-7-Manual/ref-guide/s1-sysadmin-build-kernel.html

and tell us what you find in your config if you have config_modules=Y

J-P
Smile I will feel the difference
Huc_1
Honored Contributor

Re: Linux hda Driver

If you need have a look at this link it is quite short and I always use it to be sure I dont forget a step in the process.

http://www.linuxheadquarters.com/howto/tuning/kernelcompilation.shtml

also nice as general source of howto/docs
http://www.linuxheadquarters.com/

well I find it usefull, so hopefully others will to.

J-P
Smile I will feel the difference
Huc_1
Honored Contributor

Re: Linux hda Driver

Just a last thing when you have kernel with modules and you can use modules tools like (lsmod, modprobe,etc..)
then
to use your ide cd/dvd you need to use ide_scsi kernel module this in turn emulates
a scsi host adapter.
To check on your scsi as root do

#cdrecord -scandisk
this will display your scsi disk/lun setup
if you cd/dvd does not appear here

do
#lsmod
you should see something like
ide-scsi 11984 0

if not you can alway load this module
#moprobe ide-scsi
#lsmod
you should now see your "ide-scsi cd/dvd"
#cdrecord -scandisk
display a new entry for "ide-scsi dev/lun"

To write this setup as permanent

for lilo (adapt to your dev/kernel name/version)

append="hdc=ide-scsi"

for grub
kernel /vmlinuz-X.X.X.X ro root=/dev/sda1 hdc=ide-scsi

don't forget write the lilo or grub to boot disk for next boot
Hope I have not forgotten anything.
Tell us how you are progressing.

J-P




Smile I will feel the difference
Kjetil Jensen
Advisor

Re: Linux hda Driver

In addition to CONFIG_MODULES=Y you would need to set :

CONFIG_IDE=y
CONFIG_IDE_KNOWS=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDECD=m (I suggest module)
CONFIG_BLK_DEV_IDESCSI=m (to be able to write)

Kjetil