$ stat new File: ‘new’ Size: 928 Blocks: 8 IO Block: 4096 regular file Device: 804h/2052d Inode: 28188755 Links: 1 Access: (0622/-rw--w--w-) Uid: ( 1000/ t) Gid: ( 1000/ t) Access: 2015-12-19 06:33:07.842559147 -0500 Modify: 2013-06-11 12:54:44.944836000 -0400 Change: 2015-03-25 11:15:20.778708140 -0400 Birth: -
the manpage of
Device is the "device number" in hex or decimal format.
A Device id is the combination of major and minor number that identifies that particular block device. In your case, '804' identifies the fourth partition of the first SCSI-like drive located according to the BIOS. In traditional terms, this would be /dev/sda4.
It seems that
Device is indeed the combination of major and minor numbers of the partition where the file
new is in:
$ ls -l /dev/sda4 brw-rw---- 1 root disk 8, 4 Oct 12 15:44 /dev/sda4
If I am correct, the major number
8 identifies the driver of the partition, and the minor number
4 identifies the device which is the partition.
But how can I know
Device: 804h identifies the fourth partition of the first scsi-like drive?