Menu

How do I change image from sdb to sda?

Wei Wang
2020-10-21
2020-11-05
  • Wei Wang

    Wei Wang - 2020-10-21

    Is there a file on the image folder that I can change to change the disk to sda? A USB I'm using is detected as a hard drive by the OS and always mounts itself first and would be assigned as sda, changing the local disk to sdb.

    The problem is when I'm saving the image, it would be saved as sdb. But when restoring with drbl, because the image is saved for sdb, it wouldn't work through LAN boot as the computers only have 1 disk, which is sda.

     
  • Wei Wang

    Wei Wang - 2020-10-23

    Thanks for the url, but I can't seem to enter the command on DRBL live boot.

    My understanding was that I should be using DRBL live boot's terminal to enter the command, but any drbl commands I entered gives me a command not found error. Am I suppose to use something else to run the command?

     
  • chuck

    chuck - 2020-10-23

    Hi Wei

    Boot your PC with the latest Clonezilla Live USB drive and then select the Enter Shell (command line prompt). You can then type the following commands to change the device name in a saved image:

    user@groovy:~$
    user@groovy:~$ sudo -i
    user@groovy:~# cnvt-ocs-dev

     
  • Wei Wang

    Wei Wang - 2020-10-23

    I managed to get the commands to execute but it doesn't appear to work for me as I'm trying to convert sdb(Disk 2) to sda(Disk 1), not sda to another device name.

    Note: I'm converting from sda to sdb in this case as I deleted all the old images with sdb(Disk 2). But it should still be the same as I'm only trying to convert it to a different disk.

    I ran the command cnvt-ocs-dev -d /home/partimag/"CloneZilla Images"/ LaptopImg sda sdb but it results with the error: /home/partimag/"CloneZilla Images"/LaptopImg/sda* NOT found!

    This is the file structure in the folder:

     
  • Steven Shiau

    Steven Shiau - 2020-11-01

    It's a bug. The command cnvt-ocs-dev fails to deal with the dir name with a white space.
    As a workround, you can rename "CloneZilla Images" as "CloneZilla_Images" then do it again.

    Steven

     

    Last edit: Steven Shiau 2020-11-01
  • Steven Shiau

    Steven Shiau - 2020-11-01

    Please give the latest testing Clonezilla live 2.7.0-9 or 20201029-groovy a try:
    https://clonezilla.org/downloads.php
    This issue should have been fixed.

    Steven

     
  • Wei Wang

    Wei Wang - 2020-11-04

    Thanks for all the information Steven, I ended up just reimaging all of the computers with a different USB instead as I couldn't get it to work through the command line. I haven't tested the latest Clonezilla live so I'm not sure if it resolved the space issue.

     
  • Steven Shiau

    Steven Shiau - 2020-11-05

    No problem. Thanks for your feedback and at least you found another solution to make it.

    Steven

     

Log in to post a comment.

MongoDB Logo MongoDB