bug-parted
[Top][All Lists]
Advanced

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

Re: Possible to copy and resize at the same time?


From: David Ranch
Subject: Re: Possible to copy and resize at the same time?
Date: Sat, 24 Mar 2001 22:00:50 -0800

Hello Keith,

Wow.. this is NOT conveyed in the docs!  You should
really get that updated.

Anyway, is there a way to do this from a command
line (not interactive)?  What I need to do
is do this command once a night as a offline
backup from a 10GB disks to a 9GB disk.

--David



>This is exactly how it works!
>
>see http://www.gnu.org/software/parted/USER
>
>make new partition (big enough to hold the files on original);
>
>(parted) select DEVICE
>(parted) print
>(parted) mkpart PART-TYPE [FS-TYPE] START END
>
>copy original partition to new partition.
>
>(parted) cp [FROM-DEVICE] FROM-MINOR TO-MINOR
>
>copies and resizes at once.
>
>Keith
.----------------------------------------------------------------------------.
|  David A. Ranch - Linux/Networking/PC hardware         address@hidden  |
!----                                                                    ----!
`----- For more detailed info, see http://www.ecst.csuchico.edu/~dranch -----'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]