Re: [expert] Two Directories on Same Partition?
Well, yes and no. There is a 1 : 1 relationship of partitions to mountpoints (directories). So you can do something *like* this, but only by the use of symbolic links. However, as Mr. Shirley already pointed out, you really can't put /etc on a seperate mount point anyway; you need /etc to mount the directories in the first place, so it *must* be on the root (/) partition. /etc is rather small anyway; there's really no reason to move it anyway. But if you wanted to put, say /home and /usr in the same partition, but not the same partition as /, then what you'd do is to put one of them (I'd use /usr!) into the /etc/fstab in the usual way, and then move the /home directory to /usr and symbolically link them: mv /home /usr/home ln -s /usr/home /home Lane Lester wrote: > > If you're an expert you'll probably think this is a newbie question. > . I've looked at a bunch of man pages, howtos, and Web sites without > finding the answer... which may be the answer! > > Can you put two "low-level" directories in the same partition? For > example, can I have / in one partition and both /etc and /usr in one > separate partition? If so, what goes in fstab? > -- > Lane > > Lane Lester / Madison County, Georgia USA > Using Linux to get where I want to go... -- "Brian, the man from babble-on" [EMAIL PROTECTED] Brian T. Schellenberger http://www.babbleon.org Support http://www.eff.org. Support decss defendents. Support http://www.programming-freedom.org. Boycott amazon.com.
Re: [expert] Two Directories on Same Partition?
Lane Lester wrote: > > If you're an expert you'll probably think this is a newbie question. > . I've looked at a bunch of man pages, howtos, and Web sites without > finding the answer... which may be the answer! > > Can you put two "low-level" directories in the same partition? For > example, can I have / in one partition and both /etc and /usr in one > separate partition? If so, what goes in fstab? There is two different aspects to the answer: 1. you _can_ have two "low-level" directories in the same partition, but you'll have to use a link somewhere. Example: say that you want to mount /usr and /home in the same partition, you declare the partition as /usr, and you _don't_ declare /home at all in fstab, instead you set up a link /home -> /usr/home or something like this. (my example might not be very well chosen, eg. you might want to mount /usr read-only, but you can see the method ...) 2. there is AFAIK no way to put /etc in a different partition from / because /etc is needed at once at boot time, before filesystems other than / are mounted. -- Jean-Louis Debert[EMAIL PROTECTED] 74 Annemasse France old Linux fan
RE: [expert] Two Directories on Same Partition?
AFAIK, fstab is in the /etc directory and can't be accessed to find the mount point for /etc . Can you pass the kernel the partition name for /etc at boot time like you can for / ?? If so, then: mkdir /etc/usr ln -s /etc/usr /usr Hope this helps, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lane Lester Sent: Monday, April 24, 2000 8:45 AM To: Experts Subject: [expert] Two Directories on Same Partition? If you're an expert you'll probably think this is a newbie question. . I've looked at a bunch of man pages, howtos, and Web sites without finding the answer... which may be the answer! Can you put two "low-level" directories in the same partition? For example, can I have / in one partition and both /etc and /usr in one separate partition? If so, what goes in fstab? -- Lane Lane Lester / Madison County, Georgia USA Using Linux to get where I want to go...