LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DD command (https://www.linuxquestions.org/questions/linux-software-2/dd-command-888725/)

jokar.mohsen 06-28-2011 04:48 AM

DD command
 
hello all.
i want clone my linux partition for create a backup.
i want use dd command but i have some question.my linux partition is 30GB and linux only used 10GB of it if i use dd command for create a image i must have 30GB free space?
can i use dd command in X window or i must first exit from linux and use live cd?
in fedora i use dd command for create a backup when linux is running but after restore some command like su not work!!!

i use some tools like partimage for make a backup but it show me an error about block 0!!

Please guide me for make a backup.

Thanks.

fl0 06-28-2011 05:02 AM

Hi,

Quote:

my linux partition is 30GB and linux only used 10GB of it if i use dd command for create a image i must have 30GB free space?
yes, but you can pipe the output of dd to gzip to get an compressed image.(so you should get max 10G)

dd if=/dev/xxx | gzip | of=/image.img.gz

Quote:

can i use dd command in X window or i must first exit from linux and use live cd?
you need to boot from a live cd

rgds flo


All times are GMT -5. The time now is 04:58 AM.