[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting issues



You wrote:
> 
> A few linux nwebie questions:
> 
> 1. Where do I specify system boot time mounts (i.e. mounts that take
> effeect for all users with no race, sex, complexion, religion or sexual
> preferences discrimination)?

/etc/fstab


> 
> 2. Is there a way to mount 2 partitions under 1 directory? I know there
> is the problem of 'which file goes to which partition' when you read or
> write, but I would also consider any bizarre utility that simulates it
> in a transparent way to the OS as a solution)
Not that I know of.
However, you can write a script that mounts one partition to /some/dir/1 and
the second to /some/dir/2 (or do that via fstab) and then make symlinks from
/some/dir/1/* to /target/joint/dir and then make symlinks from /some/dir/2/*
to /target/joint/dir (and checking that they don't exist first, that is).
Note that this way you can't create new root directories for the partition.


> 3. Is it possible/harmless to mount a directory (like /usr) when it
> already exists and functions? How should I do all sub-dirs correct
> transfer? is there a tool/script for this purpose?
If you have stuff in /usr (nothing mounted there, though) and want to mount
something on /usr it's fine as long as no one's using anything in /usr at
that moment.
If you want to transfer everything from the directory /usr to the new
partition you need to mount the new partition somewhere else first and copy
everything using cp -a. Once you have dont that, you can delete the old
stuff and mount the new partition on /usr.


Regards,
Yannai.

----------------------------------------------------------------------
Yannai A. Gonczarowski        _____..---======~~~~~=======---.._____
 ______________________ __,-='=====____  ================ _____=====`=
(._____________________I__) - _-=_/    `--------=+=-------'
    /      /__...---===='---+---_'                System Administrator
   '------'---.___ -  _ =   _.-'            yannaigo@leyada.jlm.k12.il
                  `--------'         The Hebrew University High School
"Si vis pacem, para bellum"    http://www.leyada.jlm.k12.il/~yannaigo/
----------------------------------------------------------------------