Menu

need help asap how to save an image in batch?

Help
kevin hall
2009-05-01
2013-04-05
  • kevin hall

    kevin hall - 2009-05-01

    My goal is to save an image of hda using dd. Since its qnx filesystem I have no other option. I want to automate this. my output from the manual steps

    I have tried using a custom  ocs. My script is as follows

    From here, you can write your own scripts.

    # 1. Configure network
    #dhclient

    # 2. Mount the clonezilla image home
    prep-ocsroot -t skip

      /opt/drbl/sbin/ocs-sr -l en -q -c -j2 -z1 -i 2000 -p reboot saveparts backup "hda"

    I am using the command to make the zip
    ocs-live-dev -g en_US-UTF-8 -k NONE -s -c -m ./custom-ocs-1

    once i load the zip onto the usb and make it bootable and try and boot the server to copy hda to the usb (sda1) it fails and says make sure home partimag is a directory. 

    When I run the process manually it says to use this command later use
    osc-sr -q -c -j2 -z1 -i 2000 -p reboot savedisk "backup" "hda"

    I would love to find out how to boot from the usb drive and save the image to the same drive I'm booting from. This does work if you do the steps manually so I must be missing something.
    Any thoughts would be much appreciated. 

     
    • Steven Shiau

      Steven Shiau - 2009-05-02

      I guess you are using stable Clonezilla live (1.2.1-53)
      In this step:
      # 2. Mount the clonezilla image home
      prep-ocsroot -t skip 

      You should not use "-t skip", if you want to skip it or something else, just remove this whole command.
      In your case, you can replace it by:
      mkdir -p /home/partimag/
      and
      mount /dev/sda2 /home/partimag/ (if you want put the image in different partition, you have to mount. This step you have to decide where you want to save)

      In the testing Clonezilla live (1.2.2-9), /home/partimag/ will automatically created when Clonezilla live boots, so the command "mkdir -p /home/partimag/" in not required.

      Steven.

       
      • kevin hall

        kevin hall - 2009-05-02

        That did not do the trick. When I use
        mkdir /home/partimag
        mount -t vfat /dev/sda1 /home/partimag

        when clonezilla boots it fails to mount
        saying according to mtab /dev/sda1 is mounted on /live/image unable to find /home/partimag program terminating.

        How do I tell my script to use /live/image/home/partimag as its mount point to save my image?

        Thanks,
        Kevin

         
        • Steven Shiau

          Steven Shiau - 2009-05-04

          Since it's the same partition, you do not have to mount, instead of
          mkdir /home/partimag
          mount -t vfat /dev/sda1 /home/partimag

          you can:
          (cd /home; ln -fs /live/image/home/partimag partimag)

          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.