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

Re: Partition Resizing/Re-arranging



On  0, Alex Malinovich <demonbane@the-love-shack.net> 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.

Tom
-- 
Tom Cook
Information Technology Services, The University of Adelaide

"Chaos Theory is a new theory invented by scientists panicked by the thought that the public were beginning to understand the old ones."
	- Mike Barfield

Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au

Attachment: pgpchIIZNdbAX.pgp
Description: PGP signature


Reply to: