Subject: Re: Whats the Dev name...
To: Chris Wareham <chris.wareham@iosystems.co.uk>
From: Perry E. Metzger <perry@wasabisystems.com>
List: netbsd-help
Date: 05/29/2002 14:37:00
Chris Wareham <chris.wareham@iosystems.co.uk> writes:
> Check the output of dmesg:
> 
>    dmesg | more
> 
> This should include a line about your cdrom and its device
> file.

It won't tell you anything about the device file. It will only say the
device is there.

The first CD is cd0. You'll therefore have a /dev/cd0[ad] and
/dev/rcd0[ad] on most PCs.

ls'ing /dev/ is your best bet on a lot of this, along with section 4
of the man page. dmesg is useful for telling you that a device is present.


> Then you could create a symbolic link to /dev/cdrom
> if you want to:
> 
>    ln -s /dev/cd0a /dev/cdrom

I'd recommend against that, for a variety of reasons including the
fact that you want the raw device sometimes and the block device at
others, and that you probably don't want to encourage a lack of memory
about what the file is actually called.


--
Perry E. Metzger		perry@wasabisystems.com
--
NetBSD: The right OS for your embedded design. http://www.wasabisystems.com/