My favorite method of copying partitions on systems on Linux is cp -ax
(the -x switch tells cp to stay on the current filesystem)
Eg.,
with / mounted as /, and the new one mounted as /newroot, you can say:
cd /
cp -ax . newroot
Make sure to tell lilo and fstab about the change, of course.
Also, you may want to look into GNU parted:
http://www.gnu.org/software/parted/parted.html
It can resize ext2 partitions, as long as the start of the partition stays
fixed (so in your case, it would work for / , but you would need to
handle /usr another way (if you want to change the size of /usr to fill
what / had before, anyway)
-pete
On Tue, 17 Apr 2001, Phil wrote:
> Hello all,
>
> I originally made my "/" partition too large (only 2% is used) and now I want
> to shrink it because the /usr partition is full. My plan is to save the "/"
> partition, delete the partition and then create a new one. I have already
> saved the /usr directories.
>
> The question is, how do I copy just the contents of the partition without
> copying the entire Linux disk (cp -a would copy the entire disk)?
>
> --
> Regards,
> Phil
> [EMAIL PROTECTED]
>