[ previous ] [ next ] [ threads ]
 From:  "Paul Evans" <paul underscore andrew underscore evans at hotmail dot com>
 To:  "Jim Gifford" <jim at giffords dot net>, <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Re: [m0n0wall] Problem installing on WRAP
 Date:  Mon, 23 Feb 2004 16:29:44 -0000
Thanks Jim

When I do ls -l /dev/hdc0 is comes up:

    -rw-r--r--    1 root     root    5242880 Feb 23 15:37 /dev/hdc0

So it looks like you're correct in that it's creating a file. All the other
hdc* come up:

   brw-rw----     1   root     disk   22, 0, Feb 13 11:14 /dev/hdc

The strange thing is I've looked through /var/log/messages and it tells me:

   kernel: hdc: LEXAR ATA FLASH, CFA DISK drive

I've no idea whether the CD-IDE adapter is on the primary or secondary bus -
I've just plugged it into a spare IDE port which is daisychained to the cd

Doing a hdparm -i /dev/hdc    says no such device or address

Same but for hdc0 says:    HDIO_GET_IDENTITY failed: Inappropriate ioctl for

Many thanks for all of your help.


> /dev/hdc0 isn't a normal device name for a hard disk block device under
> linux.  Most likely, you're creating a normal file /dev/hdc0 that
> contains the contents.  What does 'ls -l /dev/hdc0' show?
> The error message about no such device means there is no hardware behind
> the driver for hdc (ie, nothing at secondary bus, master position).
> Is your CF-IDE adapter on the primary or secondary bus, master or slave?
> The first thing you have to do is make sure the CF card is being seen by
> your linux machine before you can write to it.
> Try using hdparm -i on the devices /dev/hda, /dev/hdb, /dev/hdc, and
> /dev/hdd and look for the drive information that matches your CF.  Then
> use that device name for your dd command.  You can also do
> 'dmesg | grep hd' and look for your CF media in that output.  If you
> don't find it this way, it isn't being recognized.
> You won't need to blank the media, as dd does a direct write to the
> media.
> hope this helps,
> jim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch