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 can you copy lines into the buffer in command mode?
In my linux machine, i lost /etc/passwd file and /etc/shadow file, then how can i recover it?
how can i give acl permission in numerical mode on linux
How will you suspend a running process and put it in the background?
In Linux how you set time a limit on quota?
How do I check terminal history?
when i create SAMBA server it is ok but while i try for access from windows pc he ask me only first time smb password then i close samba login next time he can`t ask for passwd why.?
How much ram do I have linux?
Explain grep command.
What are grep commands?
What is trusted/untrusted operating system?
What is netstat command in linux?