[sf-lug] filesystem for a 3TB external USB drive

Rick Moen rick at linuxmafia.com
Tue Jan 3 14:19:03 PST 2012


Quoting jim (jim at systemateka.com):

> what is a filesystem? 

/usr/bin/stat is your friend.

$ stat /dev/sda1
  File: `/dev/sda1'
  Size: 0               Blocks: 0          IO Block: 4096   block
special file
Device: 5h/5d   Inode: 2284        Links: 1     Device type: 8,1
Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (    6/    disk)
Access: 2011-07-05 16:46:41.397462801 -0700
Modify: 2011-07-05 16:45:56.741463552 -0700
Change: 2011-07-05 16:45:56.741463552 -0700
$


In case you want to ask 'What is a file?', same answer applies.


$ stat /tmp/benefits.pdf 
  File: `/tmp/benefits.pdf'
  Size: 224921          Blocks: 442        IO Block: 1024   regular file
Device: 807h/2055d      Inode: 163526      Links: 1
Access: (0600/-rw-------)  Uid: ( 1000/    rick)   Gid: ( 1000/    rick)
Access: 2011-12-19 19:23:54.000000000 -0800
Modify: 2011-12-19 19:23:34.000000000 -0800
Change: 2011-12-19 19:23:34.000000000 -0800
$ 


$ stat /dev/urandom 
  File: `/dev/urandom'
  Size: 0               Blocks: 0          IO Block: 4096   character special file
Device: 5h/5d   Inode: 550         Links: 1     Device type: 1,9
Access: (0666/crw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-07-05 16:45:01.134433136 -0700
Modify: 2011-07-05 16:45:01.134433136 -0700
Change: 2011-07-05 16:45:50.785465747 -0700
$




More information about the sf-lug mailing list