mount --bind question.
From: Andy Baxter (news2_at_earthsong.null.free-online.co.uk)
Date: 09/29/03
- Next message: Jim Richardson: "Re: Recent linux experience - mini review"
- Previous message: Alan Connor: "Re: Recent linux experience - mini review"
- Next in thread: Alan Connor: "Re: mount --bind question."
- Reply: Alan Connor: "Re: mount --bind question."
- Reply: Floyd Davidson: "Re: mount --bind question."
- Reply: Toby A Inkster: "Re: mount --bind question."
- Reply: Ritesh Kumar: "Re: mount --bind question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Sep 2003 05:43:23 +0100
Is there any advantage in using mount --bind to mount a subdirectory of a
mounted volume somewhere else in the filesystem, rather than simply using a
symlink?
The situation in question is I'm trying to split my filesystem between two
hard disk partitions; one which contains everything which would be
automatically reinstalled if I had to install from scratch, and another
which contains all the data I've either created or downloaded.
So far I have a partition which mounts as /mnt/dat which has the home
directories, /var (because mysql puts data there, apt caches downloaded
.debs there, and apache is configured to use /var/www in debian, though I
guess I could change these), and /usr/local. At the moment, these are put
back into the right place in the filesystem through symlinks in the root
directory tree, but I'm wondering if it would be better to use mount
--bind?
A problem with this seems to be that there isn't an option I can put in
fstab to do this, so I'd have to write a custom init script to do it.
andy.
-- remove ' n - u - l - l ' to email me. Please don't send me html mail or un-notified attachments. These will be automatically filed under 'probable spam' unless I'm expecting an email which hasn't come. If you do need to send an attachment or html mail, put [attachment] or [html] in the subject line. Thanks, andy.
- Next message: Jim Richardson: "Re: Recent linux experience - mini review"
- Previous message: Alan Connor: "Re: Recent linux experience - mini review"
- Next in thread: Alan Connor: "Re: mount --bind question."
- Reply: Alan Connor: "Re: mount --bind question."
- Reply: Floyd Davidson: "Re: mount --bind question."
- Reply: Toby A Inkster: "Re: mount --bind question."
- Reply: Ritesh Kumar: "Re: mount --bind question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|