Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.os.linux.misc > #930
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!news-xfer.nntp.sonic.net!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail |
|---|---|
| Date | Tue, 26 Apr 2011 14:43:34 -0400 |
| From | JimR <NotReallyMyEmail@example.net> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110407 Mandriva/3.1.9-0.2mdv2010.2 (2010.2) Lightning/1.0b2 Thunderbird/3.1.9 |
| MIME-Version | 1.0 |
| Newsgroups | comp.os.linux.misc |
| Subject | Re: File real location |
| References | <pkaj88-cg8.ln1@myleafnode.oneyv.org> <87pqo9apss.fsf@araminta.anjou.terraraq.org.uk> |
| In-Reply-To | <87pqo9apss.fsf@araminta.anjou.terraraq.org.uk> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Message-ID | <mbgj88-84f.ln1@myleafnode.oneyv.org> (permalink) |
| Lines | 60 |
| Organization | Unlimited download news at news.astraweb.com |
| NNTP-Posting-Host | 0ed5e7a1.news.astraweb.com |
| X-Trace | DXC=;Rd?YZcI;H0B;RYi]PcMG9L?0kYOcDh@:gP=YS3P0dA6DY[`59GIX>:8WZUc:ZBMX?RJXO^\?_5X9MF09R:[SMK11>hXVYi1J0:U6^DRb;TR80 |
| Xref | x330-a1.tempe.blueboxinc.net comp.os.linux.misc:930 |
Show key headers only | View raw
On 04/26/2011 01:24 PM, Richard Kettlewell wrote:
{snip}
> stat() it and look at st_dev.
>
OK, did stat with and without -f. Got the results below. The device ID
is different in each case. How do I relate that number back to the
filesystem?
Thanks,
JimR
on mounted fs
stat /mnt/backups/me
File: `/mnt/backups/me'
Size: 0 Blocks: 0 IO Block: 4096 regular
empty file
Device: 806h/2054d Inode: 18 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2011-04-26 14:29:12.105661329 -0400
Modify: 2011-04-26 14:29:12.105661329 -0400
Change: 2011-04-26 14:29:12.105661329 -0400
===
on unmounted fs
stat /mnt/backups/me
File: `/mnt/backups/me'
Size: 0 Blocks: 0 IO Block: 4096 regular
empty file
Device: 808h/2056d Inode: 132711 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2011-04-26 14:27:06.083765346 -0400
Modify: 2011-04-26 14:27:06.083765346 -0400
Change: 2011-04-26 14:27:06.083765346 -0400
===
stat -f
on mounted
stat -f /mnt/backups/me
File: "/mnt/backups/me"
ID: a9599914aa7bb43c Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 36910968 Free: 24913212 Available: 23038230
Inodes: Total: 9379840 Free: 9379599
===
on umounted
stat -f /mnt/backups/me
File: "/mnt/backups/me"
ID: f2e3d0e7c6681d85 Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 4921158 Free: 3560882 Available: 3310898
Inodes: Total: 1250928 Free: 1073436
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
File real location JimR <NotReallyMyEmail@example.net> - 2011-04-26 13:06 -0400
Re: File real location Richard Kettlewell <rjk@greenend.org.uk> - 2011-04-26 18:24 +0100
Re: File real location The Natural Philosopher <tnp@invalid.invalid> - 2011-04-26 18:28 +0100
Re: File real location notbob <notbob@notbob.invalid> - 2011-04-26 18:08 +0000
Re: File real location Richard Kettlewell <rjk@greenend.org.uk> - 2011-04-26 19:14 +0100
Re: File real location Tim Watts <tw@dionic.net> - 2011-04-26 19:25 +0100
Re: File real location unruh <unruh@wormhole.physics.ubc.ca> - 2011-04-26 18:43 +0000
Re: File real location Chris Davies <chris-usenet@roaima.co.uk> - 2011-04-27 16:31 +0100
Re: File real location Tim Watts <tw@dionic.net> - 2011-04-26 19:08 +0100
Re: File real location JimR <NotReallyMyEmail@example.net> - 2011-04-26 14:43 -0400
Re: File real location Richard Kettlewell <rjk@greenend.org.uk> - 2011-04-26 20:28 +0100
Re: File real location JimR <NotReallyMyEmail@example.net> - 2011-04-26 17:00 -0400
Re: File real location The Natural Philosopher <tnp@invalid.invalid> - 2011-04-26 18:27 +0100
Re: File real location "Chris F.A. Johnson" <cfajohnson@gmail.com> - 2011-04-26 13:44 -0400
Re: File real location unruh <unruh@wormhole.physics.ubc.ca> - 2011-04-26 17:52 +0000
csiph-web