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

Re: What is the correct method to change mount point?



On Mon, Apr 19, 2004 at 05:47:27AM +0100, users@linuxforums.org wrote:
> Current setup:
> 
> swap    hda1
> /home  hda2
> /          hda3
> (based on this layout, /usr/local and /var should be on hda3?)
> 
> I'll be installing another HDD (partitioned into hdb1 and hdb2). How
> should I go about changing the mount point for /var and /usr/local
> from hda3 to hdb1 and hdb2 respectively?
> 
> Future setup:
> 
> swap        hda1
> /home      hda2
> /              hda3
> 
> /var          hdb1
> /usr/local  hdb2
> 
> Thanks !
> ----
Hi,
1) install new drives
2) boot KNOPPIX with 'knoppix s'
3) partition new disk (cfdisk) 
4) create file systems on new disk (mkfs.ext2,etc)
3) create temporary mount point:/mnt/root,/mnt/var.new,etc.
4) cp -auv from /mnt/root/var to /mnt/var.new (may need to repeat),etc 
5) on /mnt/root edit /mnt/root/etc/fstab add line for /var,etc
6) mv /mnt/root/var to /mnt/root/var.old ,etc.
7) create /mnt/root/var, /mnt/root/usr/,/mnt/root/usr/local...
8) reboot, should work ok.
9) if ok, then you can delete var.old,etc.
THIS IS UNTESTED.
but should be a basic outline.
YMMV,
-Kev



Attachment: signature.asc
Description: Digital signature


Reply to: