Menu

restore partition deleting clonzilla usb

robina80
2025-05-20
2025-05-28
  • robina80

    robina80 - 2025-05-20

    hi all,

    i saved an image using "savedisk" and the hard drive in the machine was a sdX not a nvme one

    instead of "restoredisk" (which works restoring to nvme targets) i select "restorepartitions" and i get my sdX partitions to select from

    now when i select them all and get to the next stage, instead of restoring the target to the nvme it wants to delete the clonezilla sdX

    is there anyway to restore the parts to the nvme ie the pc

    thanks,
    rob

     
  • robina80

    robina80 - 2025-05-21

    so to convert my image from sda to nvme would this work

    cnvt-ocs-dev -d /path/to/image win11-09052025-img sda nvme

    about the image location as its on a "samba_server" do i have to put the location of the samba_server or /home/partimag

    im going to make a copy of my image before and rename the copy, can i just rename the dir folder of the image or do i need to change any files etc

    thanks,
    rob

     
  • robina80

    robina80 - 2025-05-21

    cant mount the samba share and i need to mount it to run the "cnvt-ocs-dev" command

     
  • robina80

    robina80 - 2025-05-21

    i added my network to /etc/network/interfaces, restarted the networking service but couldnt ping still, il show you what i appended to my interfaces file

    iface eth0 inet static
    address 10.1.1.125
    netmask 255.0.0.0
    gateway 10.1.1.1

    changed the ips to match my network

    service networking restart

    tried to ping my samba_server and i couldnt ping it

    also this vm i have hooked up to the right network where it can see my samba_server

    EDIT - stupid me i forgot to add above the auto so now it works i can ping the samba share

    auto eth0
    iface eth0 inet static
    address 10.1.1.125
    netmask 255.0.0.0
    gateway 10.1.1.1

     

    Last edit: robina80 2025-05-21
  • robina80

    robina80 - 2025-05-21

    ok i done it, i had to mount my samba share to /home/partimg for it to work, also i didnt have to specify the -d i could just run this when i cd'd in the dir

    sudo cnvt-ocs-dev testing-img sda nvme0n1

    but i get these errors but it says it has renamed so im bit confused (i attach pic)

    also looking in the samba share the image folder i see no "sda" i see "nvme0n1"

     

    Last edit: robina80 2025-05-21
  • robina80

    robina80 - 2025-05-22

    ok this is very weird, so when i copy/rename my image

    sudo cp -rfp win11-19052025-img testing-img

    i then access my samba share and open up the testing image and all the files are there that its complaining about but as soon as i run

    sudo cnvt-ocs-dev -d /home/partimag testing-img sda nvme0n1

    it deletes them as when i go back in the testing image folder there gone but its renamed all the sda to nvme0n1

    what is happening please and why is this happening

    thanks,
    rob

     
  • Steven Shiau

    Steven Shiau - 2025-05-23

    "it deletes them as when i go back in the testing image folder there gone but its renamed all the sda to nvme0n1" -> It just renames the files, not deleting them.

     
  • robina80

    robina80 - 2025-05-23

    sorry steven, from what im looking at it does and no idea why... i attach below, ive instaleld ubuntu 24.04 on a vm and installed clonezilla on it via apt-get to do the conversion from sda to nvme and i mounted my samba share to the vm

    ls /home/partimag/testing-img/
    blkdev.list     efi-nvram.dat      Info-lspci.txt         parts                   sda-chs.sf      sda-mbr
    blkid.list      Info-dmi.txt       Info-OS-prober.txt     sda1.vfat-ptcl-img.zst  sda-gpt-1st     sda-pt.parted
    clonezilla-img  Info-img-id.txt    Info-packages.txt      sda2.dd-ptcl-img.zst    sda-gpt-2nd     sda-pt.parted.compact
    dev-fs.list     Info-img-size.txt  Info-saved-by-cmd.txt  sda3.ntfs-ptcl-img.zst  sda-gpt.gdisk   sda-pt.sf
    disk            Info-lshw.txt      Info-smart.txt         sda4.ntfs-ptcl-img.zst  sda-gpt.sgdisk
    root@clonezilla:/mnt/mdt# cnvt-ocs-dev -d /home/partimag testing-img sda nvme0n1
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Setting the TERM as xterm
    Clonezilla image dir: /home/partimag
    WARNING!!! WARNING!!! WARNING!!!
    WARNING! THIS ACTION IS RISKY! THE CONVERTION MAYBE WILL LET CLIENT FAIL TO BOOT!
    NOTE!
    (1) The OS itself from image "testing-img" should support the device driver, such as SCSI or SATA if you convert it to SCSI/SATA.
    (2) If the OS itself from image "testing-img" is GNU/Linux, maybe you have to modify the /etc/fstab inside it. You can do that after cloing it to harddisk, then boot it into single user mode, or use Live CD/DRBL client mode to make it.
    Are you sure you want to continue ? (y/N) y
    Let's do it!
    *****************************************************.
    Change sda to nvme0n1 in /home/partimag/testing-img/parts... Cannot complete in-place edit of /home/partimag/testing-img/parts: failed to rename work file '/home/partimag/testing-img/XX77EON4' to '/home/partimag/testing-img/parts': No such file or directory, <> line 1.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/sda-pt.sf... Cannot complete in-place edit of /home/partimag/testing-img/sda-pt.sf: failed to rename work file '/home/partimag/testing-img/XXHuZlWF' to '/home/partimag/testing-img/sda-pt.sf': No such file or directory, <> line 12.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/dev-fs.list... Cannot complete in-place edit of /home/partimag/testing-img/dev-fs.list: failed to rename work file '/home/partimag/testing-img/XXd4HyjT' to '/home/partimag/testing-img/dev-fs.list': No such file or directory, <> line 6.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/blkdev.list... Cannot complete in-place edit of /home/partimag/testing-img/blkdev.list: failed to rename work file '/home/partimag/testing-img/XXhLyWU1' to '/home/partimag/testing-img/blkdev.list': No such file or directory, <> line 10.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/blkid.list... Cannot complete in-place edit of /home/partimag/testing-img/blkid.list: failed to rename work file '/home/partimag/testing-img/XXh7W8Sh' to '/home/partimag/testing-img/blkid.list': No such file or directory, <> line 7.
    done!
    *****************************************************.
    Change sda to nvme0n1 in /home/partimag/testing-img/disk... Cannot complete in-place edit of /home/partimag/testing-img/disk: failed to rename work file '/home/partimag/testing-img/XXZKyLpB' to '/home/partimag/testing-img/disk': No such file or directory, <> line 1.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/sda-pt.parted... Cannot complete in-place edit of /home/partimag/testing-img/sda-pt.parted: failed to rename work file '/home/partimag/testing-img/XX4qvznT' to '/home/partimag/testing-img/sda-pt.parted': No such file or directory, <> line 12.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/sda-pt.parted.compact... Cannot complete in-place edit of /home/partimag/testing-img/sda-pt.parted.compact: failed to rename work file '/home/partimag/testing-img/XXwLkUzu' to '/home/partimag/testing-img/sda-pt.parted.compact': No such file or directory, <> line 12.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/blkdev.list... Can't open /home/partimag/testing-img/blkdev.list: No such file or directory.
    done!
    Change sda to nvme0n1 in /home/partimag/testing-img/blkid.list... Can't open /home/partimag/testing-img/blkid.list: No such file or directory.
    done!
    *****************************************************.
    *****************************************************.
    renamed '/home/partimag/testing-img/sda-chs.sf' -> '/home/partimag/testing-img/nvme0n1-chs.sf'
    renamed '/home/partimag/testing-img/sda-gpt-1st' -> '/home/partimag/testing-img/nvme0n1-gpt-1st'
    renamed '/home/partimag/testing-img/sda-gpt-2nd' -> '/home/partimag/testing-img/nvme0n1-gpt-2nd'
    renamed '/home/partimag/testing-img/sda-gpt.gdisk' -> '/home/partimag/testing-img/nvme0n1-gpt.gdisk'
    renamed '/home/partimag/testing-img/sda-gpt.sgdisk' -> '/home/partimag/testing-img/nvme0n1-gpt.sgdisk'
    renamed '/home/partimag/testing-img/sda-mbr' -> '/home/partimag/testing-img/nvme0n1-mbr'
    renamed '/home/partimag/testing-img/sda1.vfat-ptcl-img.zst' -> '/home/partimag/testing-img/nvme0n1p1.vfat-ptcl-img.zst'
    renamed '/home/partimag/testing-img/sda2.dd-ptcl-img.zst' -> '/home/partimag/testing-img/nvme0n1p2.dd-ptcl-img.zst'
    renamed '/home/partimag/testing-img/sda3.ntfs-ptcl-img.zst' -> '/home/partimag/testing-img/nvme0n1p3.ntfs-ptcl-img.zst'
    renamed '/home/partimag/testing-img/sda4.ntfs-ptcl-img.zst' -> '/home/partimag/testing-img/nvme0n1p4.ntfs-ptcl-img.zst'
    root@clonezilla:/mnt/mdt# ls /home/partimag/testing-img/
    clonezilla-img              Info-img-size.txt   Info-saved-by-cmd.txt  nvme0n1-gpt.gdisk            nvme0n1p3.ntfs-ptcl-img.zst
    device_name_converted.info  Info-lshw.txt       Info-smart.txt         nvme0n1-gpt.sgdisk           nvme0n1p4.ntfs-ptcl-img.zst
    efi-nvram.dat               Info-lspci.txt      nvme0n1-chs.sf         nvme0n1-mbr
    Info-dmi.txt                Info-OS-prober.txt  nvme0n1-gpt-1st        nvme0n1p1.vfat-ptcl-img.zst
    Info-img-id.txt             Info-packages.txt   nvme0n1-gpt-2nd        nvme0n1p2.dd-ptcl-img.zst
    root@clonezilla:/mnt/mdt#
    
     

    Last edit: robina80 2025-05-23
  • robina80

    robina80 - 2025-05-23

    ok so its a problem with windows samba server as when i copy the image folder locally to the vm it works and it deletes no files... do you think this can be looked into please steven ?

    ls /home/partimag/win11-19052025-img/
    blkdev.list     disk             Info-img-size.txt   Info-packages.txt      sda1.vfat-ptcl-img.zst  sda-chs.sf     sda-gpt.sgdisk         sda-pt.sf
    blkid.list      efi-nvram.dat    Info-lshw.txt       Info-saved-by-cmd.txt  sda2.dd-ptcl-img.zst    sda-gpt-1st    sda-mbr
    clonezilla-img  Info-dmi.txt     Info-lspci.txt      Info-smart.txt         sda3.ntfs-ptcl-img.zst  sda-gpt-2nd    sda-pt.parted
    dev-fs.list     Info-img-id.txt  Info-OS-prober.txt  parts                  sda4.ntfs-ptcl-img.zst  sda-gpt.gdisk  sda-pt.parted.compact
    root@clonezilla:/home/clonezilla# cnvt-ocs-dev -d /home/partimag win11-19052025-img sda nvme0n1
    Setting the TERM as xterm
    Clonezilla image dir: /home/partimag
    WARNING!!! WARNING!!! WARNING!!!
    WARNING! THIS ACTION IS RISKY! THE CONVERTION MAYBE WILL LET CLIENT FAIL TO BOOT!
    NOTE!
    (1) The OS itself from image "win11-19052025-img" should support the device driver, such as SCSI or SATA if you convert it to SCSI/SATA.
    (2) If the OS itself from image "win11-19052025-img" is GNU/Linux, maybe you have to modify the /etc/fstab inside it. You can do that after cloing it to harddisk, then boot it into single user mode, or use Live CD/DRBL client mode to make it.
    Are you sure you want to continue ? (y/N) y
    Let's do it!
    *****************************************************.
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/parts... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/sda-pt.sf... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/dev-fs.list... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/blkdev.list... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/blkid.list... done!
    *****************************************************.
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/disk... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/sda-pt.parted... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/sda-pt.parted.compact... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/blkdev.list... done!
    Change sda to nvme0n1 in /home/partimag/win11-19052025-img/blkid.list... done!
    *****************************************************.
    *****************************************************.
    renamed '/home/partimag/win11-19052025-img/sda-chs.sf' -> '/home/partimag/win11-19052025-img/nvme0n1-chs.sf'
    renamed '/home/partimag/win11-19052025-img/sda-gpt-1st' -> '/home/partimag/win11-19052025-img/nvme0n1-gpt-1st'
    renamed '/home/partimag/win11-19052025-img/sda-gpt-2nd' -> '/home/partimag/win11-19052025-img/nvme0n1-gpt-2nd'
    renamed '/home/partimag/win11-19052025-img/sda-gpt.gdisk' -> '/home/partimag/win11-19052025-img/nvme0n1-gpt.gdisk'
    renamed '/home/partimag/win11-19052025-img/sda-gpt.sgdisk' -> '/home/partimag/win11-19052025-img/nvme0n1-gpt.sgdisk'
    renamed '/home/partimag/win11-19052025-img/sda-mbr' -> '/home/partimag/win11-19052025-img/nvme0n1-mbr'
    renamed '/home/partimag/win11-19052025-img/sda-pt.parted' -> '/home/partimag/win11-19052025-img/nvme0n1-pt.parted'
    renamed '/home/partimag/win11-19052025-img/sda-pt.parted.compact' -> '/home/partimag/win11-19052025-img/nvme0n1-pt.parted.compact'
    renamed '/home/partimag/win11-19052025-img/sda-pt.sf' -> '/home/partimag/win11-19052025-img/nvme0n1-pt.sf'
    renamed '/home/partimag/win11-19052025-img/sda1.vfat-ptcl-img.zst' -> '/home/partimag/win11-19052025-img/nvme0n1p1.vfat-ptcl-img.zst'
    renamed '/home/partimag/win11-19052025-img/sda2.dd-ptcl-img.zst' -> '/home/partimag/win11-19052025-img/nvme0n1p2.dd-ptcl-img.zst'
    renamed '/home/partimag/win11-19052025-img/sda3.ntfs-ptcl-img.zst' -> '/home/partimag/win11-19052025-img/nvme0n1p3.ntfs-ptcl-img.zst'
    renamed '/home/partimag/win11-19052025-img/sda4.ntfs-ptcl-img.zst' -> '/home/partimag/win11-19052025-img/nvme0n1p4.ntfs-ptcl-img.zst'
    root@clonezilla:/home/clonezilla# ls /home/partimag/win11-19052025-img/
    blkdev.list                 disk               Info-lshw.txt          Info-smart.txt     nvme0n1-gpt.sgdisk           nvme0n1p4.ntfs-ptcl-img.zst
    blkid.list                  efi-nvram.dat      Info-lspci.txt         nvme0n1-chs.sf     nvme0n1-mbr                  nvme0n1-pt.parted
    clonezilla-img              Info-dmi.txt       Info-OS-prober.txt     nvme0n1-gpt-1st    nvme0n1p1.vfat-ptcl-img.zst  nvme0n1-pt.parted.compact
    dev-fs.list                 Info-img-id.txt    Info-packages.txt      nvme0n1-gpt-2nd    nvme0n1p2.dd-ptcl-img.zst    nvme0n1-pt.sf
    device_name_converted.info  Info-img-size.txt  Info-saved-by-cmd.txt  nvme0n1-gpt.gdisk  nvme0n1p3.ntfs-ptcl-img.zst  parts
    root@clonezilla:/home/clonezilla#
    
     

    Last edit: robina80 2025-05-23
  • Steven Shiau

    Steven Shiau - 2025-05-25

    No idea actually. If the permission is correct, then it should work like what you had.
    We do not have any issue using cnvt-ocs-dev.

     
  • robina80

    robina80 - 2025-05-25

    tbh steven its fine as ive made a ubuntu server now and ive installed on it samba server and clonezilla so i dont have to copy my image from the samba server (windows) to the clonezilla server so i could do the convertion of the image

    could you please let me know what disks you support with the cnvt-ocs-dev command?

    also when i run the cnvt-ocs-dev command then i have to enter yes to confirm/continue, can i force it to say yes to do this automatically?

     

    Last edit: robina80 2025-05-25
  • robina80

    robina80 - 2025-05-28

    ok done option -b for no user prompts

    cd /home/partimag/
    cnvt-ocs-dev -b win11-20250528-test-img sda nvme0n1
    Setting the TERM as xterm
    Clonezilla image dir: /home/partimag
    *****************************************************.
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/parts... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/sda-pt.sf... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/dev-fs.list... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/blkdev.list... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/blkid.list... done!
    *****************************************************.
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/disk... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/sda-pt.parted... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/sda-pt.parted.compact... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/blkdev.list... done!
    Change sda to nvme0n1 in /home/partimag/win11-20250528-test-img/blkid.list... done!
    *****************************************************.
    *****************************************************.
    renamed '/home/partimag/win11-20250528-test-img/sda-chs.sf' -> '/home/partimag/win11-20250528-test-img/nvme0n1-chs.sf'
    renamed '/home/partimag/win11-20250528-test-img/sda-gpt-1st' -> '/home/partimag/win11-20250528-test-img/nvme0n1-gpt-1st'
    renamed '/home/partimag/win11-20250528-test-img/sda-gpt-2nd' -> '/home/partimag/win11-20250528-test-img/nvme0n1-gpt-2nd'
    renamed '/home/partimag/win11-20250528-test-img/sda-gpt.gdisk' -> '/home/partimag/win11-20250528-test-img/nvme0n1-gpt.gdisk'
    renamed '/home/partimag/win11-20250528-test-img/sda-gpt.sgdisk' -> '/home/partimag/win11-20250528-test-img/nvme0n1-gpt.sgdisk'
    renamed '/home/partimag/win11-20250528-test-img/sda-mbr' -> '/home/partimag/win11-20250528-test-img/nvme0n1-mbr'
    renamed '/home/partimag/win11-20250528-test-img/sda-pt.parted' -> '/home/partimag/win11-20250528-test-img/nvme0n1-pt.parted'
    renamed '/home/partimag/win11-20250528-test-img/sda-pt.parted.compact' -> '/home/partimag/win11-20250528-test-img/nvme0n1-pt.parted.compact'
    renamed '/home/partimag/win11-20250528-test-img/sda-pt.sf' -> '/home/partimag/win11-20250528-test-img/nvme0n1-pt.sf'
    renamed '/home/partimag/win11-20250528-test-img/sda1.vfat-ptcl-img.zst' -> '/home/partimag/win11-20250528-test-img/nvme0n1p1.vfat-ptcl-img.zst'
    renamed '/home/partimag/win11-20250528-test-img/sda2.dd-ptcl-img.zst' -> '/home/partimag/win11-20250528-test-img/nvme0n1p2.dd-ptcl-img.zst'
    renamed '/home/partimag/win11-20250528-test-img/sda3.dd-ptcl-img.zst' -> '/home/partimag/win11-20250528-test-img/nvme0n1p3.dd-ptcl-img.zst'
    renamed '/home/partimag/win11-20250528-test-img/sda4.ntfs-ptcl-img.zst' -> '/home/partimag/win11-20250528-test-img/nvme0n1p4.ntfs-ptcl-img.zst'
    root@clonezilla:/home/partimag#
    
     

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.