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

Re: Help move /usr to another partition



> From cs.huji.ac.il!owner-linux-il Thu Jun 27 19:11:08 1996
> Date: Thu, 27 Jun 1996 19:01:18 +0300 (IDT)
> From: Meir Litmanovich <mlitmano@macs.biu.ac.il>
> Subject: Re: Help move /usr to another partition
> To: Arnold Marcus <arnold@netvision.net.il>
> Cc: linux-il@cs.huji.ac.il
> Mime-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Sender: owner-linux-il@cs.huji.ac.il
> Reply-To: Meir Litmanovich <mlitmano@macs.biu.ac.il>
>
>
>
> On Wed, 26 Jun 1996, Arnold Marcus wrote:
>
> > 
> > 
> > I originally installed all of the system on one partitition :-(
> > 
> > I freed a partition and would like to have /usr on this partitition.
> > If it wasn't a system directory I would mount the new partition (eg: /new)
> > as a filesystem, move all files to /new/usr, delete the original and create a
> > symbolic link to the new filesystem eg: ln -s /new/usr /usr.
> > This won't work ??, because in the stage between deleting and creating a link
> > I have no /usr, and this it seems will break the system.
> > 
> > This is probably a trivial question but I have read all the relevant docs
> > I could find and still don't know how to do it.
>
> The simplest way ;Boot from 2 dikettes (i.e slakware boot and root)
> or anything else .Mount your root partition at /mnt or any place you 
> want and do all you wish .
>
>                                    Meir .
>
>
>

No! Boot as usual; copy /usr to the new partition; mv /usr /usr-old;
ln -s /new/usr /usr; run the system for a while; when satisfied all
is ok then \rm -rf /usr-old;

One word of warning: don't try to put /etc/passwd, /etc/rc.d or other
critical files on a non-boot partition or you'll really be in trouble
and you will be reduced to booting from 2 diskettes as the previous
writer (Meir) states.

 - yba

     TclTek Ltd.     "Don't laugh, we're serious!"        ~. .~
 =}----------------------------------------------------ooO--U--Ooo------{=
 - benavrhm@tcltek.co.il - tel: +972.52.670.353, http://www.tcltek.co.il -