Menu

Formating disk before restore

Help
Roludao
2011-01-03
2013-04-05
  • Roludao

    Roludao - 2011-01-03

    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!!!

     
  • Roludao

    Roludao - 2011-01-04

    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.

     
  • Steven Shiau

    Steven Shiau - 2011-01-05

    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.

     
  • Roludao

    Roludao - 2011-01-10

    Steven,

    It's working!
    It was what I wanted!!! =)

    Thanks!!!

     
  • Steven Shiau

    Steven Shiau - 2011-01-12

    No problem.
    Enjoy!

    Steven.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.