Howto move a 13GB filesystem on80GB into a 20GB

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri May 12 18:46:16 UTC 2006


On Fri, May 12, 2006 at 12:54:11PM -0400, lfeder wrote:
> I have a RHEL4 server that takes up 13GB diskspace of a 80GB drive.
> 
> It was 73GB, I deleted 60GB of data, so now it uses only 13GB of diskspace
> 
> I used to use Ranish Partition Manager on the Ultimate Boot CD to copy the
> disk to disk.
> 
> But now if I do that, it is copying 60GB of empty data.
> 
> .
> 
> I would like to move this RHEL4 into a 20GB drive.
> 
> I though about hooking up the 20GB, formatting it, with a ext3 and swap and
> then cp'ing it all over.
> 
> Or maybe use dump?
> 
> What are the best options?

cp -ax / /newroot

Worked many times for me before.

Or maybe parted will resize the current drive down to 20GB so you can
copy it (cp -ax is faster and safer I think).

Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list