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

jim jim at well.com
Tue Jan 3 18:39:40 PST 2012


    I'm trying to discover how much of the information 
that the  stat  command returns comes from the inode 
tables and how much, if any, is stored in the directories, 
assuming an ext? type of filesystem. 




On Tue, 2012-01-03 at 14:19 -0800, Rick Moen wrote:
> 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
> $
> 
> _______________________________________________
> sf-lug mailing list
> sf-lug at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/sf-lug
> Information about SF-LUG is at http://www.sf-lug.org/






More information about the sf-lug mailing list