Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2002 14:24:24 +0200
From:      "Marco Berizzi" <pupilla@hotmail.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   block device vs char device
Message-ID:  <LAW2-F11TbdkSmLAztx0001bd8c@hotmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm new to FreeBSD. I have had a little experience
with Slackware Linux.

I have a couple of questions.

This is the output (partial) from ls -l /dev of my
FreeBSD 4.6 i386 box.

...
crw-r-----  2 root  operator   13, 0x00020002 Jul 23 14:49 da0s1
crw-r-----  2 root  operator   13, 0x00020000 Jul 23 14:49 da0s1a
crw-r-----  2 root  operator   13, 0x00020001 Jul 23 14:49 da0s1b
crw-r-----  2 root  operator   13, 0x00020002 Jul 23 14:49 da0s1c
crw-r-----  2 root  operator   13, 0x00020003 Jul 23 14:49 da0s1d
crw-r-----  2 root  operator   13, 0x00020004 Jul 23 14:49 da0s1e
crw-r-----  2 root  operator   13, 0x00020005 Jul 23 14:49 da0s1f
crw-r-----  2 root  operator   13, 0x00020006 Jul 23 14:49 da0s1g
crw-r-----  2 root  operator   13, 0x00020007 Jul 23 14:49 da0s1h
crw-r-----  2 root  operator   13, 0x00030002 Jul 23 14:49 da0s2
crw-r-----  2 root  operator   13, 0x00040002 Jul 23 14:49 da0s3
crw-r-----  2 root  operator   13, 0x00050002 Jul 23 14:49 da0s4
crw-r-----  2 root  operator   13, 0x0001000a Jul 23 14:49 da1
...

Why /dev/MAKEDEV create these nodes as char device? Should't
these device be created as block device (disk & cdrom)?

Other question. Which the difference between /dev/cd0a &
/dev/cd0c?

...
crw-r-----  2 root  operator   15,   0 Jul 23 14:50 cd0a
crw-r-----  2 root  operator   15,   2 Jul 23 14:50 cd0c
crw-r-----  2 root  operator   15,   8 Jul 23 14:50 cd1a
crw-r-----  2 root  operator   15,  10 Jul 23 14:50 cd1c
...

Last: majors are listed in /usr/src/sys/conf/majors
and minors?

TIA





_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LAW2-F11TbdkSmLAztx0001bd8c>