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

Mark K. Kim vox-tech@lists.lugod.org
Tue, 4 Jun 2002 14:03:30 -0700 (PDT)


Your bootloader might be passing "hdf=3Dide-scsi" parameter.  *If* that is
the case, take the following measures:

   - If you are using LILO:

     1. Edit /etc/lilo.conf as root.
        (change the line that says "hdf=3Dide-scsi" to "hdg=3Dide-scsi")

     2. Run `lilo` as root.


   - If you are using Grub:

     1. I don't know -- I don't use Grub :)

You *may* also need to change some settings so your CD programs see the
new device name for your CD drive, but it may or may not be necessary.  It
may also depend from program to program.

-Mark
 Linux: Too many choices... makes it too confusing for the beginner...
 and those helping them out...


On Tue, 4 Jun 2002, Kai Harris wrote:

> I just installed a new 100GB Western Digital HD.  It is recognized in BIO=
S 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 contro=
llers
> or a hard drive:
>
> Kernel command line: BOOT_IMAGE=3Dlinux ro root=3D210a devfs=3Dmount hdf=
=3Dide-scsi
> ide_setup: hdf=3Dide-scsi
>
> Uniform Multi-Platform E-IDE driver Revision: 6.31
> ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=
=3Dxx
> 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=3Dbi
> 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=3D1245/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=F6rg
> 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 hd=
f 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=3D0620 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=3D/dev/scd0,fs=3Diso9660,ro,--,iocharset=3Diso885
> 9-1 0 0
> /mnt/floppy /mnt/floppy supermount
> dev=3D/dev/fd0,fs=3Dvfat,--,iocharset=3Diso8859-1,s
> ync,codepage=3D850 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 w=
as
> slave.  Now, i'm using both.  On the primary controller, my first hard dr=
ive
> is master and the new one is slave.  The cd writer is set to master on th=
e
> 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
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>

--
Mark K. Kim
http://www.cbreak.org/
PGP key available upon request.