Menu

Cloning disk to disk aborts

2024-08-01
2 days ago
  • Malina, Alfred

    Malina, Alfred - 2024-08-01

    Hello
    - I am trying to clone my Ubuntu drive for backup reasons
    Clonezilla (versions 3.1.3.16-amd64 and 20240630-nobel-amd64) abort with the following information
    " the hidden space between MBR and 1st partition is -1 sectors
    which is smaller than the hidden data size 2047 sectors
    unable to find target partition sdc1"
    sdc is my original hard disk
    - i tried to copy sector by sector - by activating q1 option only - but this also failed with above failure
    - GParted does not show any failure on this hdd - I was not trying to move/resize anything as its my original hdd

    Can you help ?

     
  • Steven Shiau

    Steven Shiau - 2024-08-06

    Please boot Clonezilla live 3.1.3-16-amd64, and enter command line prompt, then run:
    1. sudo -i
    2. parted -s /dev/sdx unit s print
    (Replace sdx with your source disk)

    Please post the results of (2). Thanks.

    Steven

     
  • Malina, Alfred

    Malina, Alfred - 2024-08-06

    Hello Steven
    Many Thanks for your response
    Here is the result of the command as you asked for
    Model ATA ST2000LM015-2E81 (scsi)
    Disk /dev/sda: 3907029168s
    Sector size (logical/physical) : 512B/4096B
    Partition Table: msdos
    Disk Flags:

    Number Start End Size Type Filesystem Flags
    1 2048s 1050623s 1048576s primary fat32 boot, esp
    2 1052670s 3907028991s 3905976322s extended
    6 1052672s 3898879999s 3897827328s logical ext4
    5 3898880000s 3907028991s 8148992s logical linux-swap(v1) swap

     
  • Malina, Alfred

    Malina, Alfred - 2024-08-06

    Many thanks for your help
    Regards Alfred

     
  • Malina, Alfred

    Malina, Alfred - 2024-08-12

    Hello Steven - many thanks for your hint - and sorry that the "formating" of the table was gone after I pressed the send button.
    I already tried expert mode - with only q1 option selected. but the check was done anyway (kind of strange when sector copy was selectet) and the program aborted as described

     
  • Malina, Alfred

    Malina, Alfred - 2024-08-12

    Here is a foto of the error message

     
  • Steven Shiau

    Steven Shiau - 2024-08-31

    Please give testing Clonezilla live >= 3.1.3-22 a try. This issue should have been fixed.
    Enter expert mode, and deselect "-j2" option.

    Steven

     
  • Malina, Alfred

    Malina, Alfred - 2024-09-01

    Hello Steven
    I tried Clonezilla live >= 3.1.3-22 moments ago
    first I just deselected -j2 Option
    so it starts with -g auto -e2 -r -sfsck -k0 -p poweroff -f sda -d sdb
    !!!!!! Failure is the same

    next I tried with only option q1 selected and all others deselected
    so its - -q1 -sfsck -k -p choose -f sda -d sdb
    !!!!!! Failure is the same

    so the version is not a solution for my problem
    Can I provide any more information to solve the problem?

    Again many thanks for your continued support
    Kind regards
    Alfred

     
  • Steven Shiau

    Steven Shiau - 2024-09-01

    Mm... very strange. If "-j2" is not selected, the action to restore date between MBR and 1st partition should be skipped. In that case, is your /tmp/d2d-pseudo-tmp-cnvted still kept? If so, could you please share that?
    Thanks.

    Steven

     
  • Malina, Alfred

    Malina, Alfred - 2024-09-02

    Hello Steven
    Here is the content of the directory you asked for and the options used (I added the rescue option)
    Regards Alfred

     
  • Steven Shiau

    Steven Shiau - 2024-09-04

    OK, got it.
    Could you please create a tarball of the /tmp/d2d-* and email me at steven@stevenshiau.org?

    Steven

     
  • Malina, Alfred

    Malina, Alfred - 2024-09-07

    Hello Steven - the e-mails to you with the clonzilla.tar file are blocked as its content is viewed as security risk. Any idea how I can share the file with you?
    Regards Alfred

     
  • Steven Shiau

    Steven Shiau - 4 days ago

    I have sent permission request to access that file the other days, and I am still waiting for you to approve that.
    Just sent another request a few minutes ago.

    Steven

     
  • Steven Shiau

    Steven Shiau - 2 days ago

    The issue you have is the source disk has some strange partitions layout:
    label: dos
    label-id: 0x938dce16
    device: /dev/sda
    unit: sectors
    sector-size: 512

    /dev/sda1 : start= 2048, size= 1048576, type=ef, bootable
    /dev/sda2 : start= 1052670, size= 3905976322, type=5
    /dev/sda5 : start= 3898880000, size= 8148992, type=82
    /dev/sda6 : start= 1052672, size= 3897827328, type=83

    As you can see, sda6 starts at 1052672 with size 3897827328, so it ends at 3898880000, i.e.,
    1052672+3897827328=3898880000
    Then your sda5 should starts at >= 3898880000, say 3898880001.
    I suggest maybe you can try to use GParted (https://gpated.org) to tune the partitions layout of your source disk so that Clonezilla (actually sfdisk) can clone the partition table for you.
    Otherwise sfdisk does not accept the partitions layout and Clonezilla has no way to create the partition table in the destination disk.

    Steven

     
    • Malina, Alfred

      Malina, Alfred - 2 days ago

      Many thanks for your continued support Steven
      I hesitate very much to mess around with partition tables on my only
      working copy of my system

      My idea was to clone the disk - sector by sector - don't mess with
      partition tables - just clone a drive regardless of any partitions

      If that succeeds - and having a working clone - only than I would try to
      tune the partitions on one drive

      If this is finally working I would clone the drive with good partitions
      again and the "normal" way with clonezilla to finally get 2 working
      drives with clean partitions.

      So you tell me that the option "sector by sector" cloning does not work
      with bad partition tables?
      thats too bad

      Regards Alfred

      Am 15.09.2024 um 06:10 schrieb Steven Shiau:

      The issue you have is the source disk has some strange partitions layout:
      label: dos
      label-id: 0x938dce16
      device: /dev/sda
      unit: sectors
      sector-size: 512

      /dev/sda1 : start= 2048, size= 1048576, type=ef, bootable
      /dev/sda2 : start= 1052670, size= 3905976322, type=5
      /dev/sda5 : start= 3898880000, size= 8148992, type=82
      /dev/sda6 : start= 1052672, size= 3897827328, type=83

      As you can see, sda6 starts at 1052672 with size 3897827328, so it
      ends at 3898880000, i.e.,
      1052672+3897827328=3898880000
      Then your sda5 should starts at >= 3898880000, say 3898880001.
      I suggest maybe you can try to use GParted (https://gpated.org) to
      tune the partitions layout of your source disk so that Clonezilla
      (actually sfdisk) can clone the partition table for you.
      Otherwise sfdisk does not accept the partitions layout and Clonezilla
      has no way to create the partition table in the destination disk.

      Steven


      Cloning disk to disk aborts
      https://sourceforge.net/p/clonezilla/discussion/Clonezilla_live/thread/b3ce8cfeb0/?limit=25#5420


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/clonezilla/discussion/Clonezilla_live/

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

       
  • Steven Shiau

    Steven Shiau - 2 days ago

    Sure, in that case you can use dd command, like
    dd if=/dev/YOUR_SRC_DISK of=/dev/YOUR_DEST_DISK

    It's recommended after cloning, you use GParted to tune the cloned one disk. Otherwise the issue remains in the future.

    Steven

     

Log in to post a comment.