what is major and minor?
Answers were Sorted based on User's Feedback
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 |
Answer / shanmugam
Major - os reference
Minor - Partition Numbers
| Is This Answer Correct ? | 1 Yes | 0 No |
How do you read ext2/3 file system in windows?
Is llvm a compiler?
You have a computer with 80 GB hard disk and Ubuntu 8.04 is installed on entire hard disk. Now you have to create a seprate partition for Windows OS and Install Win Xp as Dual boot. write down the steps involed along with the commands.
8 Answers Bhel, Indian Navy, Tata Steel Limited,
What is the role of case sensitivity in affecting the way commands are used?
When is it better to use the more command rather than cat command?
What is the export command used for?
How do I check memory usage on linux?
What is the pwd command?
How do you check which file consuming more space in linux?
What the command used for search file or files for specific text?
What is grep command?
Which command is used to compare the files?