How to identify major and minor device number?
Now, if you want to know the major and minor number of these devices,
cd to /dev directory and do ls -l as shown below, which will show both major and minor number
$ cd /dev
$ ls -l sd*
brw-rw---- 1 root disk 8, 0 Feb 8 2008 sda
brw-rw---- 1 root disk 8, 1 Feb 8 2008 sda1
[Note: Major for /dev/sda1 is 8 and minor is 1]
$ ls -l san*
brw------- 1 root root 110, 0 Feb 8 sandevice
brw------- 1 root root 110, 1 Feb 8 sandevice1
[Note: Major for /dev/sandevice1 is 110 and minor is 1]
Also you can check major and minor number through
$ cat /proc/partitions
O/P :-
major minor #blocks name
8 0 204800 sda
8 1 204800 sda1
Now, if you want to know the major and minor number of these devices,
cd to /dev directory and do ls -l as shown below, which will show both major and minor number
$ cd /dev
$ ls -l sd*
brw-rw---- 1 root disk 8, 0 Feb 8 2008 sda
brw-rw---- 1 root disk 8, 1 Feb 8 2008 sda1
[Note: Major for /dev/sda1 is 8 and minor is 1]
$ ls -l san*
brw------- 1 root root 110, 0 Feb 8 sandevice
brw------- 1 root root 110, 1 Feb 8 sandevice1
[Note: Major for /dev/sandevice1 is 110 and minor is 1]
Also you can check major and minor number through
$ cat /proc/partitions
O/P :-
major minor #blocks name
8 0 204800 sda
8 1 204800 sda1