Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Missing /dev 's

Missing /dev 's
Thread Tools
IUJHJSDHE
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Reply With Quote
Jun 27, 2002, 08:33 PM
 
Ok I have noticed this for a while now and I am not sure if it's been asked before but...

Why are there so many /dev/ 's missing in Mac OS X.

Like /dev/hd1/
/dev/mem/

There are tons of them missing.

Why is that?
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Jun 27, 2002, 09:11 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by IUJHJSDHE:
<strong>Ok I have noticed this for a while now and I am not sure if it's been asked before but...

Why are there so many /dev/ 's missing in Mac OS X.

Like /dev/hd1/
/dev/mem/

There are tons of them missing.

Why is that?</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">I don't really know what you mean. Yeah, you shouldn't have a /dev/hd*, because drives show up as /dev/disk* in OS X. And I have /dev/mem on my system. I can't imagine why you wouldn't.
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
IUJHJSDHE  (op)
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Reply With Quote
Jun 27, 2002, 09:29 PM
 
oops, yeah we have mem, dident notice.

dident know hd1 was disk on X

But there are still quite a few missing

<small>[ 06-27-2002, 09:31 PM: Message edited by: IUJHJSDHE ]</small>
     
howardm4
Senior User
Join Date: Sep 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jun 27, 2002, 10:34 PM
 
it has what it needs.

what do you think it's missing?
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Jun 28, 2002, 01:13 AM
 
It definatly has what it needs, now that /dev/random is there. Maybe IUJHJSDHE is comparing it to a Linux system, in which case there are very few dev's.

I would say though that the only item that I would really like to see that OS X doesn't have is a /dev/audio. We are half way there, we have the man page for it <img border="0" title="" alt="[Wink]" src="wink.gif" />

Now if we only had the actual driver. Is that so much to ask?
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Jun 28, 2002, 11:36 AM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by IUJHJSDHE:
<strong>Ok I have noticed this for a while now and I am not sure if it's been asked before but...

Why are there so many /dev/ 's missing in Mac OS X.

Like /dev/hd1/
/dev/mem/

There are tons of them missing.

Why is that?</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">First of all, /dev is not set up even remotely like the standard Linux /dev. On Linux, /dev is a physical folder with physical files. This is, of course, unless you went through the trouble of compiling the kernel with devfs support and installed all of the necessary file--all without managing to completely fubar your system. In /dev is a link to absolutely every possible device that someone could possibly install.

Mac OS X uses devfs (i.e. it's not really there on your disk--it's dynamically created by the kernel). OS X is not Linux, so it only has the /dev references it needs (like /dev/null and hard drive references). There are other ways for programmers to access hardware.

and /dev/hd1 is a Linux convention. Run pdisk as root (don't make any changes) and give the command 'L' to see what your drives are really named (and how they are partitioned).

<small>[ 06-28-2002, 11:42 AM: Message edited by: Detrius ]</small>
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:24 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,