On Thu, 2002-10-24 at 04:17, Tom Cook wrote: > On 0, Alex Malinovich <[EMAIL PROTECTED]> wrote: > [snip] > > > could I move the /usr/local to /usr -- mv /usr/local /usr/ > > > and as for var, can I do the same thing. > > > > Yup. > > I dunno, something there just doesn't smell quite right. I'd do > something like this: > > $ umount /usr/local > $ mkdir /mnt/temp > $ mount -t ext2 /dev/hda? /mnt/temp # /dev/hda? is whatever partition /usr/local is >on > $ cp -rp /mnt/temp/* /usr/local > $ umount /mnt/temp > $ rmdir /mnt/temp > > Trying to copy the contents of a partition to mount point of that > partition seems fraught with possibilities for disaster, to me. Do > something similar for /var, then you can delete those partitions and > restructure them as you wish.
Good point. I didn't really think before I blurted out "Yup." :) The quick-n-dirty way that I'd do it is: mkdir /usr/templocal cp -rp /usr/local /usr/templocal umount /usr/local rmdir /usr/local mv /usr/templocal /usr/local Ok, so it's not really that much quicker. 5 steps vs 6. :) -Alex
signature.asc
Description: This is a digitally signed message part