Computing.Net > Forums > Solaris > device files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

device files

Reply to Message Icon

Name: sue
Date: January 12, 2003 at 05:42:54 Pacific
OS: Sun Solaris
CPU/Ram: p4/1G
Comment:

What are device files...?? what are they used for??
and what are the differences between the two types CHARRCTER and BLOCK ??

Thank you !!



Sponsored Link
Ads by Google

Response Number 1
Name: jonob
Date: January 14, 2003 at 06:58:00 Pacific
Reply:

In Solaris all devices have 3 names depending on how referenced.
Logical
physical
instance names

Logical are used to refer to devices on the command line
these are kept in /dev directory these are a symbolic link to the physical device name.

examples are /dev/dsk/c0t0d0s1 etc
or /dev/rdsk/c0t0d1s0.

Physical device names identify the physical location of the hardware devices on the system and are maintained in the /devices directory.
example when you do an ls on one of your disks it shows this as a symblic link to
/devices/pci@lf,0/pci@1,1/ide@3/dad0,0:a
This gives some info, that its an ide direct access device (dad)

instance names are abbreviated names assigned by the Kernel.

You can lsit the systems devices by catting /etc/path_to_inst.
As the file says this is a critical file you shouldnt modify it

The difference between block and character is how data is read/written to/from the target device.
The access to a hard disk is in fixed blocks of 512bytes whereas other devices read invidiual characters.
Of cse block devices begin with a b characters a c.

Hope this was useful.


0

Response Number 2
Name: sue
Date: January 14, 2003 at 09:06:41 Pacific
Reply:

Thank you for your time JONOB!!!


0

Response Number 3
Name: jonob
Date: January 15, 2003 at 05:46:40 Pacific
Reply:

Your very welcome!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: device files

can't change vfstab file www.computing.net/answers/solaris/cant-change-vfstab-file/4053.html

Subject: Mounting PCFS File System www.computing.net/answers/solaris/subject-mounting-pcfs-file-system/3677.html

Nfs query www.computing.net/answers/solaris/nfs-query/3534.html