Menu

Restore partition on different slot

Help
Daniele
2008-12-11
2013-04-05
  • Daniele

    Daniele - 2008-12-11

    Hi everyone, I'm having a problem while restoring a partition from my old disc to the new one:

    My old disk had 2 partitions, the new one has three.

    I'm trying to restore old disk's sda2 (60GB) to new disk's sda3 (80GB) but before starting the process I get an error and I can't procede.

    The error reads that the image file has an error but I'm fairly sure it's not the case since I tried recreating the image 3 time and I always get that error.

    Is there a problem restorn a sda2 to a sda3? Is there a workaround?

    Thak you.

    Daniele

     
    • Steven Shiau

      Steven Shiau - 2008-12-13

      You have to manually modify the image.
      1. cp -a source-image target-image
      2. cd target-image
      3. rename sda2* as sda3*
      4. edit the contents of parts file if "sda2" is not shown on that. The target-image dir should be ready.
      5. When restoring, choose restoreparts, make sure you use "-k" option, i.e. "Do NOT create partition table in in target disk".

      I guess that's all.
      ///NOTE/// Backup important data on your target disk, just in case.

       

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.