I need to format a disk before to restore an image.
Inside custom-ocs, is there possible put a command line that format a disk?
If yes, what is the command line?
Thanks!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Because there is a problem when I restore an image in HDD with different partitions, therefore I need to format my HDD before restore an Image.
Please help me.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is no need to reformat a partition, since partclone will overwrite the file system.
If you mean you want to clean all the partition table on the destination disk, yes, you can use some commands before running ocs-sr like:
1. dd if=/dev/zero of=/dev/$DESTINATION_DISK bs=1M count=30
2. sfdisk -R /dev/$DESTINATION_DISK
Replace /dev/$DESTINATION_DISK with your destination disk, e.g. /dev/sdb.
//NOTE// Backup important data before you use Clonezilla. Just in case.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi people,
I need to format a disk before to restore an image.
Inside custom-ocs, is there possible put a command line that format a disk?
If yes, what is the command line?
Thanks!!!
Because there is a problem when I restore an image in HDD with different partitions, therefore I need to format my HDD before restore an Image.
Please help me.
Thanks.
There is no need to reformat a partition, since partclone will overwrite the file system.
If you mean you want to clean all the partition table on the destination disk, yes, you can use some commands before running ocs-sr like:
1. dd if=/dev/zero of=/dev/$DESTINATION_DISK bs=1M count=30
2. sfdisk -R /dev/$DESTINATION_DISK
Replace /dev/$DESTINATION_DISK with your destination disk, e.g. /dev/sdb.
//NOTE// Backup important data before you use Clonezilla. Just in case.
Steven.
Steven,
It's working!
It was what I wanted!!! =)
Thanks!!!
No problem.
Enjoy!
Steven.