[vox-tech] no dev file for newly installed HD

Kai Harris vox-tech@lists.lugod.org
Tue, 4 Jun 2002 13:25:11 -0700


I just installed a new 100GB Western Digital HD.  It is recognized in BIOS and 
it appears in dmesg.  However, there is no device file in /dev.  My other 
hard drive is /dev/hde which is actually a sym link to 
/dev/ide/host2/bus0/target0/lun0/disc.  I would think that my second hard 
drive (which is on the same ide controller) would be in 
/dev/ide/host2/bus0/target1/lun0.  However, there are no device files in this 
directory either.
here is all the output from dmesg that has anything to do with ide controllers 
or a hard drive:

Kernel command line: BOOT_IMAGE=linux ro root=210a devfs=mount hdf=ide-scsi
ide_setup: hdf=ide-scsi

Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20265: IDE controller on PCI bus 00 dev 70
PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.
    ide0: BM-DMA at 0xd400-0xd407, BIOS settings: hda:pio, hdb:DMA
    ide1: BM-DMA at 0xd408-0xd40f, BIOS settings: hdc:pio, hdd:DMA
VP_IDE: IDE controller on PCI bus 00 dev 89
PCI: No IRQ known for interrupt pin A of device 00:11.1. Please try using 
pci=bi
osirq.
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8233 (rev 00) IDE UDMA100 controller on pci00:11.1
    ide2: BM-DMA at 0xd800-0xd807, BIOS settings: hde:DMA, hdf:DMA
    ide3: BM-DMA at 0xd808-0xd80f, BIOS settings: hdg:DMA, hdh:pio
hde: FUJITSU MPF3102AT, ATA DISK drive
hdf: WDC WD1000BB-00CAA1, ATA DISK drive
hdg: 4X4X32, ATAPI CD/DVD-ROM drive
ide2 at 0x1f0-0x1f7,0x3f6 on irq 14
ide3 at 0x170-0x177,0x376 on irq 15
hde: 20015856 sectors (10248 MB) w/512KiB Cache, CHS=1245/255/63, UDMA(33)
hdg: ATAPI 32X CD-ROM CD-R/RW drive, 1024kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
 /dev/ide/host2/bus0/target0/lun0: p1 < p5 p6 p7 p8 p9 p10 p11 > p2 p4

so it seems weird that the kernel is being passed a command that tells it (I 
think) that hdf should be emulated as a scsi drive.  It seems to me that hdg 
(my cd writer) should be the one with scsi emulation.  Before installing this 
HD, my cd writer worked fine.  however, now it doesn't.

cdrecord -scanbus shows:

Cdrecord 1.11a19 (i586-mandrake-linux-gnu) Copyright (C) 1995-2002 Jörg 
Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI 
driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are 
root.

And just to be complete, this is my fstab file (though I haven't added hdf to 
it because I can't find hdf):

/dev/hde10 / ext3 defaults 1 1
/dev/hde5 /boot ext3 defaults 1 2
/dev/hde6 /boot_backup ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hde11 /home ext3 defaults 1 2
/dev/hde4 /home/share ext3 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount 
dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso885
9-1 0 0
/mnt/floppy /mnt/floppy supermount 
dev=/dev/fd0,fs=vfat,--,iocharset=iso8859-1,s
ync,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hde8 /tmp ext3 defaults 1 2
/dev/hde9 /usr ext3 defaults 1 2
/dev/hde7 /var ext3 defaults 1 2
/dev/hde2 swap swap defaults 0 0

I have two onboard ide controllers.  Before installing this hard drive, i was 
only using one of them.  My first hard drive was master and my cdwriter was 
slave.  Now, i'm using both.  On the primary controller, my first hard drive 
is master and the new one is slave.  The cd writer is set to master on the 
secondary controller.  It seems like somewhere linux still thinks that my 
cdwriter is still slave on the primary driver (thus the ide-scsi kernel 
commands).  How do I go about fixing this?  Ideas?  Suggestions?
Thanks!
Kai Harris