On Ubuntu 14.04, I am checking the filesystem for my home based on a file
new in it:
$ stat -f new File: "new" ID: 38d4cd29e44142c6 Namelen: 255 Type: ext2/ext3 Block size: 4096 Fundamental block size: 4096 Blocks: Total: 144152970 Free: 79424314 Available: 72095994 Inodes: Total: 36626432 Free: 35430143
I am also checking it by another way:
$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sdb3 during installation UUID=8620616e-3745-420e-9082-c6f9df5b0f15 / ext4 errors=remount-ro 0 1 # /home was on /dev/sdb4 during installation UUID=bcd7575f-97d7-47f8-951a-83675195061c /home ext4 defaults 0 2 # swap was on /dev/sdb2 during installation UUID=aba3f8f2-9a25-4ef3-96ba-c12b40622eca none swap sw 0 0
Added: another way:
$ 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: -
IDmean in the out put of
stat -f? Is it the filesystem ID of the filesystem in my home partition?
What does it depend on? Not on the mount point?
- What does the first column in
/etc/fstab? is it the filesystem ID of each filesystem?
What are the differences between the two kinds of ID given by the two ways?
stat -fshow the file system type is
ext2/ext3while my home filesystem type is ext4?
Added: what does
Devicemean in the output of
-f? Is it an id of something?