Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.os.linux.misc > #943
| From | Chris Davies <chris-usenet@roaima.co.uk> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: File real location |
| Date | 2011-04-27 16:31 +0100 |
| Organization | Roaima. Harrogate, North Yorkshire, UK |
| Message-ID | <dgpl88xojo.ln2@news.roaima.co.uk> (permalink) |
| References | <pkaj88-cg8.ln1@myleafnode.oneyv.org> <87pqo9apss.fsf@araminta.anjou.terraraq.org.uk> <ip6vck$hod$2@news.albasani.net> <91og0jFfucU15@mid.individual.net> |
notbob <notbob@notbob.invalid> wrote:
> and st_dev are. If a "filesystem is not mounted", how could there be
> any root (/) dir? If the dir foo has not been mounted how can one put
> a file into a dir that doesn't exist ...in a filesystem that hasn't
> been mounted?
$ df -h /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 464M 180M 261M 41% /
$ echo 'this is on root' > /mnt/foo
$ ls -l /mnt/foo
-rw-r--r-- 1 chris chris 16 Apr 27 16:26 /mnt/foo
$ sudo mount /dev/mapper/vg-mnt /mnt
$ df -h /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-mnt 1008M 34M 924M 4% /mnt
$ ls -l /mnt/foo
ls: cannot access /mnt/foo: No such file or directory
$ echo 'this is on mnt' > /mnt/foo
$ ls -l /mnt/foo
-rw-r--r-- 1 chris chris 15 Apr 27 16:28 /mnt/foo
$ cat /tmp/foo
this is on root
$ sudo umount /mnt
$ ls -l /mnt/foo
-rw-r--r-- 1 chris chris 16 Apr 27 16:26 /mnt/foo
$ cat /tmp/foo
this is on root
Chris
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