Menu

#184 auto restore partition

open
nobody
None
5
2025-05-25
2025-04-25
Citytech
No

Hi,
I have OS on a physical drive. I already backup and restore. it works . I would like to restore just only one partition which is sda3. here is my script
1) mount /dev/sdb2 /home/partimag" ocs_live_run="ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff restoreparts test sda3 and another script..which one is correct

2) mount /dev/sdb2 /home/partimag" ocs_live_run="ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff -f restoreparts sda3 test sda3
Thanks

Related

Support Requests: #184

Discussion

  • Steven Shiau

    Steven Shiau - 2025-04-26

    Normally it should be:
    ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff restoreparts test sda3
    If your image name is "test', and the destination partition you want to restore is sda3.
    I would suggest you follow the TUI to select the appropriate requirements, then it will give you a green command which you can use in your script.

    Steven

     
    • Citytech

      Citytech - 2025-04-26
      
      

      Thanks for help

      On Apr 26, 2025 at 5:46 PM, <steven shiau="" (mailto:steven_shiau@users.sourceforge.net)=""> wrote:</steven>

      Normally it should be:
      ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff restoreparts test sda3
      If your image name is "test', and the destination partition you want to restore is sda3.
      I would suggest you follow the TUI to select the appropriate requirements, then it will give you a green command which you can use in your script.

      Steven

      [support-requests:#184] (https://sourceforge.net/p/clonezilla/support-requests/184/) auto restore partition

      Status: open
      Group: clonezilla live stable
      Created: Fri Apr 25, 2025 11:52 AM UTC by Citytech
      Last Updated: Fri Apr 25, 2025 11:52 AM UTC
      Owner: nobody

      Hi,
      I have OS on a physical drive. I already backup and restore. it works . I would like to restore just only one partition which is sda3. here is my script
      1) mount /dev/sdb2 /home/partimag" ocs_live_run="ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff restoreparts test sda3 and another script..which one is correct

      2) mount /dev/sdb2 /home/partimag" ocs_live_run="ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff -f restoreparts sda3 test sda3
      Thanks

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/clonezilla/support-requests/184/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #184

    • Citytech

      Citytech - 2025-04-26

      Steven,
      If I don’t want to split the image I put -i 0 or without it ?
      Thanks

       

      Last edit: Steven Shiau 2025-04-27
  • Steven Shiau

    Steven Shiau - 2025-04-27

    By default it won't split the image. Hence you can do that without "-i 0". Of course, doing that still works.

    Steven

     
  • Citytech

    Citytech - 2025-05-25

    Thanks for your explain

     

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.