what is major and minor?

Answers were Sorted based on User's Feedback



what is major and minor?..

Answer / ajit mohan b

Major number
============
A number indicating which device driver should be used to
access a particular device. All devices controlled by the
same device driver have a common major device number.

Minor number
============
A number serving as a flag to a device driver.The minor
device numbers are used to distinguish between different
devices and their controllers.

Eg:

# ls -l /dev/sda1
brw-rw---- 1 root disk 8, 1 2008-09-04 08:28 /dev/sda1
rigel:~# ls -l /dev/sda2
brw-rw---- 1 root disk 8, 2 2008-09-04 08:28 /dev/sda2

You can see the major and minor device number (8,1) and
(8,2) in the ls listing for /dev/sdax

# ls -l /dev/scd0
brw-rw---- 1 root cdrom 11, 0 2008-09-04 08:28 /dev/scd0

You can see the major and minor device number (11,0)in the
ls listing for /dev/scd0

Is This Answer Correct ?    6 Yes 1 No

what is major and minor?..

Answer / shanmugam

Major - os reference

Minor - Partition Numbers

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

What is build process?

0 Answers  


what is the command to view gateway?

5 Answers  


why context switching time should be minimum? How it depends on hardware support?

0 Answers   Flipkart,


What does umask 022 mean?

0 Answers  


How to shuffle the GRUB booting from one Disk to other?

1 Answers  






I want to kill zombie process, but with using kill 9 i cannot kill that process? can u tell other commands?

3 Answers   CTS,


How do I run bash on windows?

0 Answers  


What is clang tidy?

0 Answers  


List all the files beginning with A

10 Answers  


How do you create a file?

0 Answers  


what is "ls* " is run options are 1) x 2).x 3) hidden 4) no disply tell exact answer.

6 Answers   Google,


What is ls command and what it does?

0 Answers  


Categories