Mailing List Archive

Support open source code!


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

tlug: Moving directories to a different disk



Jonathan Byrne writes:
 > If I want to move several directories that are currently immediately below
 > the / directory on the root file system and put them on another disk, what
 > mount point should I give it?
 > 
 > For example, I'd like to put /home and /var on /dev/sbd1. If I
 > just want to move /home, this is easy, since I just need to make a mount
 > point called /home for /dev/sbd1.  But I'm uncertain of how to go about
 > getting /var and /home both over there?  Or is it only possible to have
 > them both on one partition if they are directly under the / directory?

Put the two directories on /dev/sdb1 and than make symbolic links in
your / directory.
E.g:

mount /dev/sdb1 /vol
ln -s /vol/home /home
ln -s /vol/var /var

If you use two partitions on /dev/sdb you have the problem to choose
the size for /home and /var separately and it is tough to change when you 
find out that e.g. /var on /dev/sdb1 needs more space and /home on
/dev/sdb2 has 200MB free. 

I had to do the same thing. I moved my /home and my /usr/local
directories on a differnt partition because they were getting too
large for the boot partition. I all works fine now.

Marcus

----------------------------------------------------------------------------
Dr. Marcus Metzler
Department of Physics    | $B")(B $B#2#7#4!<#8#5#1#0(B
Toho University          | $B@example.com)A%66;T;0;3#2!<#2!<#1(B
Miyama 2-2-1, Funabashi, | $BElK.Bg3X(B  $BM}3XIt(B  $BJ*M}(B
Chiba 274-8510           | 
Japan			 |
e-mail : mocm@example.com
----------------------------------------------------------------------------
--------------------------------------------------------------
Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
featuring Linux on multiple platforms:
i386, Sparc, PA-Risc, Amiga, SGI, Alpha, PalmPilot, ...
Next Nomikai: September, 19:30 Tengu TokyoEkiMae 03-3275-3691
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links