LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Logical device names and instant names (http://www.linuxquestions.org/questions/linux-general-1/logical-device-names-and-instant-names-260839/)

Gins 11-30-2004 04:39 AM

Character special device files and block special device files
 
I tried the following commads and it didn't work.

ls /dev/dsk

ls /dev/rdsk

Why is that?


It is my understanding that dsk stands for character special device files and rdsk stands for block special device files.

How do I find those files in my Mandrake Linux 10.0 version?

Gins 11-30-2004 04:46 AM

Logical device names and instant names
 
The following command should show the logical device names. It didn't work on my Mandrake Linux 10.0

ls /dev/dsk/cotodoso

--------------------------------------------------------------------------


The following command should give me the instant names. Those names are related to hardware. However, it didn't work.

ls more /etc/path_to_inst

jschiwal 11-30-2004 06:22 AM

I'm not sure what you are trying to do. You can use the command 'mount' to get a list of the mounted devices and the mount points.
Or you could type 'cat /etc/mtab' to show the same thing.

Another way is 'cat /proc/mounts' which is where the mount command gets its information.
The /etc/fstab file is where the system gets the information on what devices should be mounted
when you boot up the computer.

gunter 11-30-2004 10:10 AM

I'm not sure what your goal is, but you are obviously misinformed. All device files appear under /dev. Some are block, some are character... Try ls -l /dev Typically, the hard drive is hda or hdb, the floppy is fd0, cdrom hdc, hdd printer lp0, etc. The full document that describes each device comes with the linux kernel documentation.

Gins 11-30-2004 10:54 AM

gunter

I looked at a computer which has the Solaris operating system. The above mentioned command works fine in Solaris. So my friend who works with Solaris told me it would be possible to find them in Linux environnent too.

He said in Linux these things rests in a specific folder. In Solaris you find them in a folder called device folder. It has even the 'dev' folder too.

My Mandrake doesn't have a folder called 'device folder'. I have the 'dev' folder, however.

How do you find those block special device files and character special files in Linux?

Gins 11-30-2004 10:58 AM

ls more /etc/path_to_inst
The above command gives you some valuble information about hardware in Solaris. It tells you the instant names related to hardware.

How do you find the above in Linux? I have Mandrake LInux 10.0.


I looked at a computer which has the Solaris operating system. The above mentioned command works fine in Solaris. So my friend who works with Solaris told me it would be possible to find them in Linux environnent too.

XavierP 11-30-2004 12:50 PM

Gins - your 2 identical threads have been merged.

Gins 11-30-2004 03:35 PM

gunter

I wrote the command you mentioned. What are the block files and what are the character files? I copied some of the oupupt for your information.

I guess c stands for character files.

What are the block files? What are the instant files?
--------------------------------------------------------------------
[heden@h27n2fls301o1037 heden]$ ls -l /dev | more
total 0



lr-xr-xr-x 1 root root 12 Nov 30 16:28 agpgart -> misc/agpgart
lr-xr-xr-x 1 root root 13 Nov 30 17:28 apm_bios -> misc/apm_bios
lr-xr-xr-x 1 root root 11 Nov 30 16:29 audio -> sound/audio
lr-xr-xr-x 1 root root 13 Nov 30 16:29 cdrom -> cdroms/cdrom0
lr-xr-xr-x 1 root root 13 Nov 30 16:29 cdrom0 -> cdroms/cdrom0
lr-xr-xr-x 1 root root 13 Nov 30 16:29 cdrom1 -> cdroms/cdrom1
drwxr-xr-x 1 root root 0 Jan 1 1970 cdroms/
crw------- 1 nissanka root 5, 1 Nov 30 16:29 console
lr-xr-xr-x 1 root root 15 Nov 30 19:46 dac960_gam -> misc/dac960_gam
drwxr-xr-x 1 root root 0 Jan 1 1970 discs/
lr-xr-xr-x 1 root root 12 Nov 30 16:29 dmmidi -> sound/dmmidi
lr-xr-xr-x 1 root root 9 Nov 30 16:29 dsp -> sound/dsp
drwxr-xr-x 1 root root 0 Jan 1 1970 fb/
lr-xr-xr-x 1 root root 4 Nov 30 17:28 fb0 -> fb/0
lr-xr-xr-x 1 root root 13 Nov 30 17:28 fd -> /proc/self/fd/
lr-xr-xr-x 1 root root 8 Nov 30 16:29 fd0 -> floppy/0
lr-xr-xr-x 1 root root 13 Nov 30 16:29 fd0u1040 -> floppy/0u1040
lr-xr-xr-x 1 root root 13 Nov 30 16:29 fd0u1120 -> floppy/0u1120


lr-xr-xr-x 1 root root 4 Nov 30 17:28 ram4 -> rd/4
lr-xr-xr-x 1 root root 4 Nov 30 17:28 ram5 -> rd/5
lr-xr-xr-x 1 root root 4 Nov 30 17:28 ram6 -> rd/6
lr-xr-xr-x 1 root root 4 Nov 30 17:28 ram7 -> rd/7
lr-xr-xr-x 1 root root 4 Nov 30 17:28 ram8 -> rd/8
lr-xr-xr-x 1 root root 4 Nov 30 17:28 ram9 -> rd/9
crw-r--r-- 1 root root 1, 8 Jan 1 1970 random
drwxr-xr-x 1 root root 0 Jan 1 1970 rd/
brwx------ 1 root root 3, 9 Nov 30 17:28 root
lr-xr-xr-x 1 root root 4 Nov 30 17:28 root.old -> rd/0
lr-xr-xr-x 1 root root 8 Nov 30 17:28 rtc -> misc/rtc
drwxr-xr-x 1 root root 0 Jan 1 1970 scsi/
lr-xr-xr-x 1 root root 15 Nov 30 16:29 sequencer -> sound/sequencer
lr-xr-xr-x 1 root root 16 Nov 30 16:29 sequencer2 -> sound/sequencer2
drwxr-xr-x 1 root root 0 Jan 1 1970 shm/
drwxr-xr-x 1 root root 0 Jan 1 1970 snd/
drwxr-xr-x 1 root root 0 Jan 1 1970 sound/
lr-xr-xr-x 1 root root 4 Nov 30 17:28 stderr -> fd/2
lr-xr-xr-x 1 root root 4 Nov 30 17:28 stdin -> fd/0
lr-xr-xr-x 1 root root 4 Nov 30 17:28 stdout -> fd/1|
drwxr-xr-x 1 root root 0 Jan 1 1970 tts/
crw-rw-rw- 1 root root 5, 0 Jan 1 1970 tty
lr-xr-xr-x 1 root root 4 Nov 30 17:28 tty0 -> vc/0
lr-xr-xr-x 1 root root 4 Nov 30 17:28 tty1 -> vc/1
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty10 -> vc/10
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty11 -> vc/11
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty12 -> vc/12
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty13 -> vc/13
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty14 -> vc/14
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty15 -> vc/15
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty16 -> vc/16
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty17 -> vc/17
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty18 -> vc/18
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty19 -> vc/19
lr-xr-xr-x 1 root root 4 Nov 30 17:28 tty2 -> vc/2
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty20 -> vc/20
lr-xr-xr-x 1 root root 5 Nov 30 17:28 tty21 -> vc/21
lr-xr-xr-x 1 root root 5 Nov 30 17:28

jschiwal 11-30-2004 09:17 PM

A block device is a random access device such as a hard drive. If you follow the link to were your hard disk drivers are located and 'ls -l' you can see a description of these files.

I have never heard of instant files. You seem to be taking general instructions, such as cd install-directory, literally.

If you want to learn about Linux, I would recommend forgetting about solaris and reading documentation found with your system, or going to the www.tldp.org web site. There are many howto's and books available.


All times are GMT -5. The time now is 06:42 PM.