LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   No /dev/hdd file for my dvd writer ? (https://www.linuxquestions.org/questions/linux-hardware-18/no-dev-hdd-file-for-my-dvd-writer-366367/)

slzckboy 09-23-2005 04:17 PM

No /dev/hdd file for my dvd writer ?
 
hello

this is an extract from dmesg.

Code:

hda: ST320011A, ATA DISK drive
hdb: IC35L120AVV207-0, ATA DISK drive
Probing IDE interface ide1...
hdc: TOSHIBA DVD-ROM SD-M1612, ATAPI CD/DVD-ROM drive
hdd: DVDRW IDE 16X, ATAPI CD/DVD-ROM drive

how come i have no /dev/hdd file for the second device on ide1 ?

I have recently gone from 2.4.26 to a 2.6.13.
I understand that with a 2.6x their is no need for hdd=ide_sci so i have removed that from my grub script..
but I have no device file in /dev to create my symlinks against for fstab etc..

any pointers would be great

thnks

rj

rtg 09-23-2005 04:35 PM

You should have /etc/rc.d/rc.udev set +x for the udev program to create the /dev/ directory entries on-the-fly.

slzckboy 09-23-2005 04:55 PM

hi

this is an extract from ls -lh in /etc/rc.d

rwxr-xr-x 1 root root 1.4K 2004-06-14 06:59 rc.udev

rtg 09-24-2005 02:17 AM

OK, then -
  • Your 2.6 kernel must have had CONFIG_HOTPLUG enabled when it was built.
  • Make sure sysfs is mounted. udev will figure out where sysfs is mounted, but the traditional place for it is at /sys. You can mount it by hand by running:
    Code:

    mount -t sysfs none /sys
(from udev's README)
I've got /sys full of device classes :) = block, bus, etc.

slzckboy 09-24-2005 02:49 AM

okeydoke...

cat /etc/fstab

Code:

.....
/dev/hdb1 on / type ext2 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/hdb2 on /mnt/hd2 type ext2 (rw)
/dev/hda1 on /mnt/store type ext2 (rw)
..

this is the config file i copied to /boot when i compiled .
cd /usr/src/linux
cat .config | grep -n CONFIG_HOTPLUG

Code:

31:CONFIG_HOTPLUG=y
235:# CONFIG_HOTPLUG_CPU is not set
245:CONFIG_HOTPLUG_PCI=y
246:# CONFIG_HOTPLUG_PCI_FAKE is not set
247:# CONFIG_HOTPLUG_PCI_COMPAQ is not set
248:# CONFIG_HOTPLUG_PCI_IBM is not set
249:# CONFIG_HOTPLUG_PCI_ACPI is not set
250:# CONFIG_HOTPLUG_PCI_CPCI is not set
251:# CONFIG_HOTPLUG_PCI_SHPC is not set

any thoughts ?
thnks in advance.

rtg 09-24-2005 03:01 AM

By the way, nobody prevents you from creating the node statically by yourself:
Code:

mknod /dev/hdd b 22 64

rtg 09-24-2005 03:04 AM

Please output the ls of your /sys directory and whether /proc/sys/kernel/hotplug exists.

slzckboy 09-24-2005 04:08 AM

sure..

slackboyslim@slackbox:/sys/kernel$ ls
hotplug_seqnum

slzckboy 09-24-2005 02:08 PM

when I enabled dma both of my ide interfaces , udev created my node for me.

problem solved.

rtg 09-24-2005 02:09 PM

OK, going further:
  • Does /etc/udev/udev.conf exist?
  • What is the value of udev_db in this file.
  • Does the udev_db specified exist in the filesystem?
  • Does
    Code:

    grep udev /var/log/mesasges
    show anything?
  • Do you have udevd running?

slzckboy 09-24-2005 02:48 PM

thnks for your help but basically since I managed to get dma enabled it has resolved the problem.

I now have hda hdb hdc and hdd as I should.

thnks for all your help though.


All times are GMT -5. The time now is 05:01 AM.