Friday 21 June 2024

Clonezilla installation and cloning of a 30 GB Flash Drive to a 80 GB IDE Hard Disk Drive which is connected externally via a USB 2.0 port with the help of a USB-to-IDE Adapter cable

 

 

ubuntu@ubuntu:~$
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu# apt-get update
Ign:1 cdrom://Ubuntu 24.10 _Oracular Oriole_ - Daily amd64 (20240617) oracular InRelease
Hit:2 cdrom://Ubuntu 24.10 _Oracular Oriole_ - Daily amd64 (20240617) oracular Release
Hit:4 http://security.ubuntu.com/ubuntu oracular-security InRelease      
Get:5 http://archive.ubuntu.com/ubuntu oracular InRelease [110 kB]
Hit:6 http://archive.ubuntu.com/ubuntu oracular-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu oracular-backports InRelease
Get:8 http://archive.ubuntu.com/ubuntu oracular/main amd64 Packages [1,410 kB]
Get:9 http://archive.ubuntu.com/ubuntu oracular/main i386 Packages [1,051 kB]
Get:10 http://archive.ubuntu.com/ubuntu oracular/main Translation-en [513 kB]
Get:11 http://archive.ubuntu.com/ubuntu oracular/universe amd64 Packages [15.7 MB]
Get:12 http://archive.ubuntu.com/ubuntu oracular/universe i386 Packages [8,379 kB]                                     
Get:13 http://archive.ubuntu.com/ubuntu oracular/universe Translation-en [6,081 kB]                                    
Get:14 http://archive.ubuntu.com/ubuntu oracular/multiverse amd64 Packages [270 kB]                                    
Get:15 http://archive.ubuntu.com/ubuntu oracular/multiverse i386 Packages [126 kB]                                     
Fetched 33.6 MB in 14s (2,465 kB/s)                                                                                    
Reading package lists... Done
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu# apt-get install clonezilla
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  dialog drbl ipcalc libdialog15 mtools partclone partimage pigz pixz syslinux syslinux-common wakeonlan
Suggested packages:
  udpcast sshfs floppyd
The following NEW packages will be installed:
  clonezilla dialog drbl ipcalc libdialog15 mtools partclone partimage pigz pixz syslinux syslinux-common wakeonlan
0 upgraded, 13 newly installed, 0 to remove and 63 not upgraded.
Need to get 4,966 kB of archives.
After this operation, 17.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu oracular/universe amd64 pigz amd64 2.8-1 [65.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu oracular/universe amd64 libdialog15 amd64 1.3-20240307-2 [106 kB]
Get:3 http://archive.ubuntu.com/ubuntu oracular/universe amd64 dialog amd64 1.3-20240307-2 [77.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu oracular/universe amd64 ipcalc all 0.51-1 [24.5 kB]
Get:5 http://archive.ubuntu.com/ubuntu oracular/main amd64 mtools amd64 4.0.43-1build1 [197 kB]
Get:6 http://archive.ubuntu.com/ubuntu oracular/universe amd64 partimage amd64 0.6.9-11build2 [207 kB]                 
Get:7 http://archive.ubuntu.com/ubuntu oracular/universe amd64 pixz amd64 1.0.7-3 [21.8 kB]                            
Get:8 http://archive.ubuntu.com/ubuntu oracular/universe amd64 syslinux amd64 3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3 [157 kB]
Get:9 http://archive.ubuntu.com/ubuntu oracular/main amd64 syslinux-common all 3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3 [1,261 kB]
Get:10 http://archive.ubuntu.com/ubuntu oracular/main amd64 wakeonlan all 0.41-12.1 [9,292 B]                          
Get:11 http://archive.ubuntu.com/ubuntu oracular/universe amd64 drbl all 5.3.1-1 [1,356 kB]                            
Get:12 http://archive.ubuntu.com/ubuntu oracular/universe amd64 clonezilla all 5.6.9-1 [876 kB]                        
Get:13 http://archive.ubuntu.com/ubuntu oracular/universe amd64 partclone amd64 0.3.27+repack-2build2 [608 kB]         
Fetched 4,966 kB in 11s (467 kB/s)                                                                                     
Selecting previously unselected package pigz.
(Reading database ... 211505 files and directories currently installed.)
Preparing to unpack .../00-pigz_2.8-1_amd64.deb ...
Unpacking pigz (2.8-1) ...
Selecting previously unselected package libdialog15:amd64.
Preparing to unpack .../01-libdialog15_1.3-20240307-2_amd64.deb ...
Unpacking libdialog15:amd64 (1.3-20240307-2) ...
Selecting previously unselected package dialog.
Preparing to unpack .../02-dialog_1.3-20240307-2_amd64.deb ...
Unpacking dialog (1.3-20240307-2) ...
Selecting previously unselected package ipcalc.
Preparing to unpack .../03-ipcalc_0.51-1_all.deb ...
Unpacking ipcalc (0.51-1) ...
Selecting previously unselected package mtools.
Preparing to unpack .../04-mtools_4.0.43-1build1_amd64.deb ...
Unpacking mtools (4.0.43-1build1) ...
Selecting previously unselected package partimage.
Preparing to unpack .../05-partimage_0.6.9-11build2_amd64.deb ...
Unpacking partimage (0.6.9-11build2) ...
Selecting previously unselected package pixz.
Preparing to unpack .../06-pixz_1.0.7-3_amd64.deb ...
Unpacking pixz (1.0.7-3) ...
Selecting previously unselected package syslinux.
Preparing to unpack .../07-syslinux_3%3a6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3_amd64.deb ...
Unpacking syslinux (3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3) ...
Selecting previously unselected package syslinux-common.
Preparing to unpack .../08-syslinux-common_3%3a6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3_all.deb ...
Unpacking syslinux-common (3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3) ...
Selecting previously unselected package wakeonlan.
Preparing to unpack .../09-wakeonlan_0.41-12.1_all.deb ...
Unpacking wakeonlan (0.41-12.1) ...
Selecting previously unselected package drbl.
Preparing to unpack .../10-drbl_5.3.1-1_all.deb ...
Unpacking drbl (5.3.1-1) ...
Selecting previously unselected package clonezilla.
Preparing to unpack .../11-clonezilla_5.6.9-1_all.deb ...
Unpacking clonezilla (5.6.9-1) ...
Selecting previously unselected package partclone.
Preparing to unpack .../12-partclone_0.3.27+repack-2build2_amd64.deb ...
Unpacking partclone (0.3.27+repack-2build2) ...
Setting up mtools (4.0.43-1build1) ...
Setting up wakeonlan (0.41-12.1) ...
Setting up syslinux-common (3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3) ...
NCHC Free Software Labs, Taiwan



NCHC Free Software Labs, Taiwan




NCHC Free Software Labs, Taiwan







                       ┌─────────────────────┤ Mode: disk_to_local_disk ├──────────────────────┐
                       │ The action to perform when everything is finished:                    │
                       │                                                                       │
                       │  -p choose    Choose reboot/shutdown/etc when everything is finished  │
                       │  -p true      Enter command line prompt                               │
                       │  -p reboot    Reboot                                                  │
                       │  -p poweroff  Shutdown                                                │
                       │                                                                       │
                       │                                                                       │
                       │                  <Ok>                      <Cancel>                   │
                       │                                                                       │
                       └───────────────────────────────────────────────────────────────────────┘
                                                                                                 







PS. Next time you can run this command directly:
/usr/sbin/ocs-onthefly -g auto -e1 auto -e2 -r -j2 -sfsck -k0 -p choose  -f sde -d sdd
This command is also saved as this file name for later use if necessary: /tmp/ocs-onthefly-2024-06-22-03-17
*****************************************************.
Press "Enter" to continue...
*****************************************************.
opt_for_ocs_sr_restore_this_run: -g auto -e1 auto -e2 -r -j2 -sfsck -k0
///WARNING/// filesystem.squashfs not found! No idea where is LIVE MEDIA!!! Assume this is running in DRBL client.
*****************************************************.
*****************************************************.
Searching for data partition(s)...
Finding all disks and partitions..
Excluding busy partition................
Excluding linux raid member partition.......
Unmounted partitions (including extended or swap): sdd1 sdd2 sdd5 sdd6
Collecting info..... done!
Getting /dev/sdd1 info...
Getting /dev/sdd6 info...
WARNING!!! WARNING!!! WARNING!!!
WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: sdd
*****************************************************.
Machine:
sdd (80.0GB_0JB-00JJC0__pci-0000_00_1d_0-usb-0_1_2_1_0-scsi-0_0_0_0_WD-WCAM9V893810)
sdd1 (36G_ext4(In_0JB-00JJC0_)_pci-0000_00_1d_0-usb-0_1_2_1_0-scsi-0_0_0_0_WD-WCAM9V893810)
sdd6 (34.5G_ext4(In_0JB-00JJC0_)_pci-0000_00_1d_0-usb-0_1_2_1_0-scsi-0_0_0_0_WD-WCAM9V893810)
*****************************************************.
Are you sure you want to continue? (y/n) y
OK, let's do it!!
*****************************************************.
Let me ask you again.
WARNING!!! WARNING!!! WARNING!!!
WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: sdd
*****************************************************.
Machine:
sdd (80.0GB_0JB-00JJC0__pci-0000_00_1d_0-usb-0_1_2_1_0-scsi-0_0_0_0_WD-WCAM9V893810)
sdd1 (36G_ext4(In_0JB-00JJC0_)_pci-0000_00_1d_0-usb-0_1_2_1_0-scsi-0_0_0_0_WD-WCAM9V893810)
sdd6 (34.5G_ext4(In_0JB-00JJC0_)_pci-0000_00_1d_0-usb-0_1_2_1_0-scsi-0_0_0_0_WD-WCAM9V893810)
*****************************************************.
Are you sure you want to continue? (y/n) y
OK, let's do it!!
Saving the source device as a pseudo image. Running:
LC_ALL=C ocs-sr --ocsroot /tmp/ocs_onthefly_src.yp0eir -luks no -sfsck -sfs -nogui -q2 --batch -j2 -scs -senc -p true  savedisk d2d-pseudo sde
Setting the TERM as linux
Starting /usr/sbin/ocs-sr at 2024-06-22 03:18:58 UTC...
Start preparing device name cache files in /tmp/ocs-cache//...
Finding all disk(s)...
Finding all partition(s)...
Generating dev filesystem/size/type info cache files...
*****************************************************.
Clonezilla image dir: /tmp/ocs_onthefly_src.yp0eir
*****************************************************.
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
The image name is: d2d-pseudo
Selected device [sde] found!
The selected devices: sde
*****************************************************.
Activating the partition info in /proc... done!
Selected device [sde] found!
The selected devices: sde
Searching for data/swap/extended partition(s)...
Finding all disks and partitions..
Excluding busy partition................
Excluding linux raid member partition.....
Unmounted partitions (including extended or swap): sde1 sde2
Collecting info... done!
The data partition to be saved: sde1 sde2
Activating the partition info in /proc... done!
Selected device [sde1] found!
Selected device [sde2] found!
The selected devices: sde1 sde2
Getting /dev/sde1 info...
Getting /dev/sde2 info...
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
*****************************************************.
*****************************************************.
*****************************************************.
*****************************************************.
*****************************************************.
Saving block devices info in /tmp/ocs_onthefly_src.yp0eir/d2d-pseudo/blkdev.list...
Saving block devices attributes in /tmp/ocs_onthefly_src.yp0eir/d2d-pseudo/blkid.list...
Checking the integrity of partition table in the disk /dev/sde...
Reading the partition table for /dev/sde...RETVAL=0
*****************************************************.
Saving the primary GPT of sde as /tmp/ocs_onthefly_src.yp0eir/d2d-pseudo/sde-gpt-1st by dd...
34+0 records in
34+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.00013161 s, 132 MB/s
*****************************************************.
Saving the secondary GPT of sde as /tmp/ocs_onthefly_src.yp0eir/d2d-pseudo/sde-gpt-2nd by dd...
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.0105918 s, 1.5 MB/s
*****************************************************.
Saving the GPT of sde as /tmp/ocs_onthefly_src.yp0eir/d2d-pseudo/sde-gpt.gdisk by gdisk...
The operation has completed successfully.
*****************************************************.
done!
Saving the MBR data for sde...
1+0 records in
1+0 records out
512 bytes copied, 0.00115693 s, 443 kB/s
End of saveparts job for image /tmp/ocs_onthefly_src.yp0eir/d2d-pseudo.
*****************************************************.
*****************************************************.
This image was saved successfully: d2d-pseudo
End of savedisk job for image d2d-pseudo.
Saving hardware info by lshw...
Saving DMI info...          
Saving PCI info...
Saving OS info from the device...
Saving package info...
Saving image size info...
*****************************************************
*****************************************************
Checking if udevd rules have to be restored...
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
Generating a tag file for this image...
The mounted bitlocker device was not found. Skip unmounting it.
Now syncing - flush filesystem buffers...

Ending /usr/sbin/ocs-sr at 2024-06-22 03:23:11 UTC...
*****************************************************.
*****************************************************.
Cloning the source device to /dev/sdd. Running:
LC_ALL=C ocs-sr --ocsroot /tmp/ocs_onthefly_src.yp0eir -l en_US.UTF-8 --batch -j2 -scr -p true -g auto -e1 auto -e2 -r -j2 -sfsck -k0 ld2d_restoredisk d2d-pseudo sdd
Setting the TERM as linux
Starting /usr/sbin/ocs-sr at 2024-06-22 03:23:11 UTC...
Start preparing device name cache files in /tmp/ocs-cache//...
The file /proc/partitions remains the same. Skip generating disk(s) list file.
The file /proc/partitions remains the same. Skip generating partitions(s) list file.
Both /proc/partitions and blkid output do not change. Skip generating file system cache file related to the dev(s).
*****************************************************.
Clonezilla image dir: /tmp/ocs_onthefly_src.yp0eir
*****************************************************.
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Target disk sdd does not exist in the image saved from disk(s) "sde".
Creating a tmp Clonezilla image "d2d-pseudo-tmp-cnvted" based on the image "d2d-pseudo" so that we can restore the image d2d-pseudo (was saved from sde) to sdd...
///NOTE/// If the restored OS is GNU/Linux, you might have to modify /etc/fstab and grub config file in the restored GNU/Linux to affect these changes so that it can boot successfully!
Running: create-ocs-tmp-img -or /tmp/ocs_onthefly_src.yp0eir  d2d-pseudo d2d-pseudo-tmp-cnvted sde sdd
Creating a temporary image based on image d2d-pseudo...
/tmp/ocs_onthefly_src.yp0eir/d2d-pseudo/sde1* was not found! Skip this!
/tmp/ocs_onthefly_src.yp0eir/d2d-pseudo/sde2* was not found! Skip this!
Setting the TERM as linux
Clonezilla image dir: /tmp
*****************************************************.
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/parts... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/sde-pt.sf... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/dev-fs.list... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/blkdev.list... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/blkid.list... done!
*****************************************************.
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/disk... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/sde-pt.parted... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/sde-pt.parted.compact... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/blkdev.list... done!
Change sde to sdd in /tmp/d2d-pseudo-tmp-cnvted/blkid.list... done!
*****************************************************.
*****************************************************.
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-chs.sf' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-chs.sf'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-gpt-1st' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-gpt-1st'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-gpt-2nd' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-gpt-2nd'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-gpt.gdisk' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-gpt.gdisk'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-gpt.sgdisk' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-gpt.sgdisk'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-mbr' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-mbr'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-pt.parted' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-pt.parted'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-pt.parted.compact' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-pt.parted.compact'
renamed '/tmp/d2d-pseudo-tmp-cnvted/sde-pt.sf' -> '/tmp/d2d-pseudo-tmp-cnvted/sdd-pt.sf'
The created image is "/tmp/d2d-pseudo-tmp-cnvted".
Activating the partition info in /proc... done!
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
swapoff: /dev/sdd5: swapoff failed: Invalid argument
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Creating partition in /dev/sdd...
Finding all disks and partitions..
Excluding busy partition................
Excluding linux raid member partition.......
Unmounted partitions (including extended or swap): sdd1 sdd2 sdd5 sdd6
Collecting info..... done!
Clean filesystem header in device /dev/sdd1...
/dev/sdd1: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
Clean filesystem header in device /dev/sdd6...
/dev/sdd6: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
Clean filesystem header in device /dev/sdd5...
/dev/sdd5: 10 bytes were erased at offset 0x00000ff6 (swap): 53 57 41 50 53 50 41 43 45 32
Clean filesystem header in device /dev/sdd2...
/dev/sdd2: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
Cleaning RAID metadata in device /dev/sdd...
Running: dmraid -r -E /dev/sdd
no raid disks and with names: "/dev/sdd"
Running: dd if=/dev/zero of=/dev/sdd bs=512 seek=156300464 count=1024
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0.141387 s, 3.7 MB/s
Clean filesystem header in device /dev/sdd...
/dev/sdd: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
Trying to clean the MBR and GPT partition table on the destination disk first: /dev/sdd
Informing the OS of partition table changes... done!
*****************************************************.
Running: dd if=/dev/zero of=/dev/sdd bs=512 count=1
1+0 records in
1+0 records out
512 bytes copied, 0.000948201 s, 540 kB/s
*****************************************************.
Error: /dev/sdd: unrecognised disk label
Running: LC_ALL=C grep -Ev '^last-lba:' /tmp/d2d-pseudo-tmp-cnvted/sdd-pt.sf | sfdisk --wipe always --force /dev/sdd 2>&1
Checking that no-one is using this disk right now ... OK

Disk /dev/sdd: 74.53 GiB, 80026361856 bytes, 156301488 sectors
Disk model: 0JB-00JJC0      
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new GPT disklabel (GUID: 6299F2FE-F4C0-4A6F-A76B-D90CB619CB03).
/dev/sdd1: Created a new partition 1 of type 'EFI System' and of size 1 GiB.
/dev/sdd2: Created a new partition 2 of type 'Linux filesystem' and of size 27.6 GiB.
/dev/sdd3: Done.

New situation:
Disklabel type: gpt
Disk identifier: 6299F2FE-F4C0-4A6F-A76B-D90CB619CB03

Device       Start      End  Sectors  Size Type
/dev/sdd1     2048  2203647  2201600    1G EFI System
/dev/sdd2  2203648 60059647 57856000 27.6G Linux filesystem

The partition table has been altered.



                             ┌───────────────────────── Partclone ────────────────────────┐
                             │Starting to back up device (/dev/sde1) to device (/dev/sdd1)│
                             │                                                            │
                             │Calculating bitmap... Please wait... done!                  │
                             │File system:  FAT32                                         │
                             │Device size:    1.1 GB = 2201600 Blocks                     │
                             │Space in use:   8.7 MB = 16904 Blocks                       │
                             │Free Space:     1.1 GB = 2184696 Blocks                     │
                             │Block size:   512 Byte                                      │
                             │Syncing... OK!                                              │



                             ┌───────────────────────── Partclone ────────────────────────┐
                             │Starting to back up device (/dev/sde2) to device (/dev/sdd2)│
                             │                                                            │
                             │Calculating bitmap... Please wait... done!                  │
                             │File system:  EXTFS                                         │
                             │Device size:   29.6 GB = 7232000 Blocks                     │
                             │Space in use:  13.3 GB = 3250650 Blocks                     │
                             │Free Space:    16.3 GB = 3981350 Blocks                     │
                             │Block size:   4096 Byte                                     │
                             │Syncing... OK!                                              │
                             │Partclone successfully cloned the device (/dev/sde2) to the │
                             │device (/dev/sdd2)                                          │
                             │                                                            │
                             │Total Time: 00:04:40 Remaining: 00:00:00                    │
                             │Ave. Rate:   2.85GB/min                                     │
                             │                                                            │
                             │Data Block Process:                                         │
                             │                                                    100.00% │
                             │                                                            │
                             │Total Block Process:                                        │
                             │                                                    100.00% │
                             └────────────────────────────────────────────────────────────┘



Cloned successfully.
*****************************************************.
Informing the OS of partition table changes.... done!
*****************************************************.
Finding swap partition(s) in GPT table /tmp/d2d-pseudo-tmp-cnvted/sdd-pt.parted...
*****************************************************.
*****************************************************.
Running: ocs-restore-mbr --ocsroot /tmp  d2d-pseudo-tmp-cnvted sdd
Setting the TERM as linux
Restoring the first 446 bytes of MBR data (executable code area) for sdd by:
dd if=/tmp/d2d-pseudo-tmp-cnvted/sdd-mbr of=/dev/sdd bs=446 count=1
1+0 records in
1+0 records out
446 bytes copied, 0.000439715 s, 1.0 MB/s
done.
*****************************************************.
*****************************************************.
Now tuning the file system size on partition /dev/sdd1 to fit the partition size...
Running: ocs-resize-part  --batch /dev/sdd1
Program fatresize not found! Skip this partition /dev/sdd1
*****************************************************.
Now tuning the file system size on partition /dev/sdd2 to fit the partition size...
Running: ocs-resize-part  --batch /dev/sdd2
e2fsck -f -y /dev/sdd2; resize2fs -p -f /dev/sdd2
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdd2: 174241/1810432 files (0.3% non-contiguous), 3250650/7232000 blocks
resize2fs 1.47.0 (5-Feb-2023)
The filesystem is already 7232000 (4k) blocks long.  Nothing to do!

*****************************************************.
Processing the PV/LV if necessary...
Running: ocs-expand-lvm -b /dev/sdd1
Found the disk(s) and partition(s) list for input device /dev/sdd1:  /dev/sdd1
*****************************************************.
No any VG on  /dev/sdd1 was found.
Skip processing  /dev/sdd1.
*****************************************************.
Running: ocs-expand-lvm -b /dev/sdd2
Found the disk(s) and partition(s) list for input device /dev/sdd2:  /dev/sdd2
*****************************************************.
No any VG on  /dev/sdd2 was found.
Skip processing  /dev/sdd2.
*****************************************************.
*****************************************************.
Running: ocs-tux-postprocess sdd1 sdd2
Trying to remove udev hardware record in the restored OS...
The specified destination device: sdd1 sdd2
Trying to remove udev persistent files. The devices to be searched: sdd1 sdd2...
Skip /dev/sdd1 (vfat).
Now searching possible device /dev/sdd2...
removed '/tmp/hd_img.LaVVTL/var/lib/dbus/machine-id'
removed '/tmp/hd_img.LaVVTL/etc/machine-id'
Found the file system and mount point to re-generate machine id: /dev/sdd2, /tmp/hd_img.LaVVTL
Initializing machine ID from random generator.
chcon: failed to get security context of '/tmp/hd_img.LaVVTL/etc/issue': No data available
chcon: can't apply partial context to unlabeled file '/tmp/hd_img.LaVVTL/etc/machine-id'
done!
*****************************************************.
Running: ocs-update-syslinux -b sdd1 sdd2
Device /dev/sdd2 is not a FAT partition.
Skip updating syslinux on that.
*****************************************************.
Running: ocs-install-grub -p "sdd1 sdd2 " auto
Found grub partition: /dev/sdd2
Found grub partition "/dev/sdd2", which is on the restored partitions list (sdd1 sdd2). Will run grub-install later.
Disk /dev/sdd is not MBR format or GPT disk with a special 'bios_boot' partition. Skip the reinstallation of grub-pc (MBR) program.
*****************************************************.
Running: ocs-update-initrd -p "sdd1 sdd2 " auto
Found boot and grub partition: /dev/sdd2
Found grub partition "/dev/sdd2", which is on the restored partitions list (sdd1 sdd2).
Re-creating initrd on boot dir in partition /dev/sdd2 and root partition /dev/sdd2...
Test if we can chroot the restored OS partition /dev/sdd2...
Yes, we are able to chroot the restored OS partition /dev/sdd2.
Running the command in the restored GNU/Linux chroot env:
update-initramfs -u -k all
This might take a few minutes...
update-initramfs: Generating /boot/initrd.img-6.8.0-31-generic
done!
*****************************************************.
Running: run_ntfsreloc_part -p "sdd1 sdd2" auto
The NTFS boot partition was not found or not among the restored partition(s). Skip running partclone.ntfsfixboot.
*****************************************************.
Running: update-efi-nvram-boot-entry -r /tmp/d2d-pseudo-tmp-cnvted/efi-nvram.dat -f /tmp/efi_info.uTBzkv /dev/sdd
Updating boot entry of EFI NVRAM...
EFI system partition: /dev/sdd1
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
Trying to clean unused uEFI boot entry if it exists...
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
Boot file /EFI/Microsoft/Boot/bootmgfw.efi listed in NVRAM, but there is no any partition with PARTUUID "f2b6af3c-3e49-423e-acdb-24b712c1167c" contains it.
Clean the boot entry 0000 by:
Running: efibootmgr -b 0000 -B
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning.
BootCurrent: 0066
Timeout: 1 seconds
BootOrder: 0002,0001,0005,0051,0059,005F,0066
Boot0001* Ubuntu    HD(1,GPT,f9566a45-f734-4225-918b-2a1bca3640f5,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* ubuntu    HD(2,MBR,0xee54ee54,0x3d090000,0x219800)/File(\EFI\ubuntu\shimx64.efi)
Boot0005* Network Card    BBS(Network,,0x0)49424120474520536c6f74203030433820763133363500
Boot0051* Hard Drive    BBS(HD,,0x0)53616e4469736b00
Boot0059* UEFI: TOSHIBA MQ01ABD100    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,65535,0)/HD(2,MBR,0xee54ee54,0x3d090000,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot005f* UEFI: KINGSTON SH103S3120G    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,65535,0)/HD(1,GPT,77c62f6a-c498-4229-b198-2f789aa5bc65,0x800,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0066* UEFI: SanDisk    PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,GPT,cc660fe9-3d0d-4fef-9f20-8d0a3bcdf9f3,0x800,0x3947300)/File(\EFI\BOOT\BOOTX64.EFI)
*****************************************************.
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
Boot file /EFI/ubuntu/shimx64.efi listed in NVRAM, but there is no any partition with PARTUUID "f9566a45-f734-4225-918b-2a1bca3640f5" contains it.
Clean the boot entry 0001 by:
Running: efibootmgr -b 0001 -B
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning.
BootCurrent: 0066
Timeout: 1 seconds
BootOrder: 0002,0005,0051,0059,005F,0066
Boot0002* ubuntu    HD(2,MBR,0xee54ee54,0x3d090000,0x219800)/File(\EFI\ubuntu\shimx64.efi)
Boot0005* Network Card    BBS(Network,,0x0)49424120474520536c6f74203030433820763133363500
Boot0051* Hard Drive    BBS(HD,,0x0)53616e4469736b00
Boot0059* UEFI: TOSHIBA MQ01ABD100    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,65535,0)/HD(2,MBR,0xee54ee54,0x3d090000,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot005f* UEFI: KINGSTON SH103S3120G    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,65535,0)/HD(1,GPT,77c62f6a-c498-4229-b198-2f789aa5bc65,0x800,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0066* UEFI: SanDisk    PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,GPT,cc660fe9-3d0d-4fef-9f20-8d0a3bcdf9f3,0x800,0x3947300)/File(\EFI\BOOT\BOOTX64.EFI)
*****************************************************.
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
Boot file /EFI/ubuntu/shimx64.efi listed in NVRAM, but there is no any partition with PARTUUID "0xee54ee54" contains it.
Clean the boot entry 0002 by:
Running: efibootmgr -b 0002 -B
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning.
BootCurrent: 0066
Timeout: 1 seconds
BootOrder: 0005,0051,0059,005F,0066
Boot0005* Network Card    BBS(Network,,0x0)49424120474520536c6f74203030433820763133363500
Boot0051* Hard Drive    BBS(HD,,0x0)53616e4469736b00
Boot0059* UEFI: TOSHIBA MQ01ABD100    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,65535,0)/HD(2,MBR,0xee54ee54,0x3d090000,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot005f* UEFI: KINGSTON SH103S3120G    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,65535,0)/HD(1,GPT,77c62f6a-c498-4229-b198-2f789aa5bc65,0x800,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0066* UEFI: SanDisk    PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,GPT,cc660fe9-3d0d-4fef-9f20-8d0a3bcdf9f3,0x800,0x3947300)/File(\EFI\BOOT\BOOTX64.EFI)
*****************************************************.
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
Boot file /EFI/BOOT/BOOTX64.EFI listed in NVRAM, but there is no any partition with PARTUUID "0xee54ee54" contains it.
Clean the boot entry 0059 by:
Running: efibootmgr -b 0059 -B
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning.
BootCurrent: 0066
Timeout: 1 seconds
BootOrder: 0005,0051,005F,0066
Boot0005* Network Card    BBS(Network,,0x0)49424120474520536c6f74203030433820763133363500
Boot0051* Hard Drive    BBS(HD,,0x0)53616e4469736b00
Boot005f* UEFI: KINGSTON SH103S3120G    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,65535,0)/HD(1,GPT,77c62f6a-c498-4229-b198-2f789aa5bc65,0x800,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0066* UEFI: SanDisk    PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,GPT,cc660fe9-3d0d-4fef-9f20-8d0a3bcdf9f3,0x800,0x3947300)/File(\EFI\BOOT\BOOTX64.EFI)
*****************************************************.
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
Found Boot file /EFI/BOOT/BOOTX64.EFI in partition /dev/sdb1.
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
Found Boot file /EFI/BOOT/BOOTX64.EFI in partition /dev/sdc1.
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
error trace:
No partition boot entry from hard drive exists in EFI NVRAM.
EFI boot entries on this system:
*****************************************************.
** Warning ** : Boot005f is not UEFI Spec compliant (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning.
error trace:
BootCurrent: 0066
Timeout: 1 seconds
BootOrder: 0005,0051,005F,0066
Boot0005* Network Card    BBS(Network,,0x0)49424120474520536c6f74203030433820763133363500
      dp: 05 01 09 00 06 00 00 00 00 / 7f ff 04 00
    data: 49 42 41 20 47 45 20 53 6c 6f 74 20 30 30 43 38 20 76 31 33 36 35 00
Boot0051* Hard Drive    BBS(HD,,0x0)53616e4469736b00
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 53 61 6e 44 69 73 6b 00
Boot005f* UEFI: KINGSTON SH103S3120G    PciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,65535,0)/HD(1,GPT,77c62f6a-c498-4229-b198-2f789aa5bc65,0x800,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 02 1f / 03 12 0a 00 02 00 ff ff 00 00 / 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 98 21 00 00 00 00 00 6a 2f c6 77 98 c4 29 42 b1 98 2f 78 9a a5 bc 65 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
Boot0066* UEFI: SanDisk    PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,GPT,cc660fe9-3d0d-4fef-9f20-8d0a3bcdf9f3,0x800,0x3947300)/File(\EFI\BOOT\BOOTX64.EFI)
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 00 1a / 03 05 06 00 01 00 / 03 05 06 00 01 00 / 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 73 94 03 00 00 00 00 e9 0f 66 cc 0d 3d ef 4f 9f 20 8d 0a 3b cd f9 f3 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
*****************************************************.
umount: /cdrom: target is busy.
Failed to umount /dev/sdc1.
Program terminated!!
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
End of restoreparts job for image d2d-pseudo-tmp-cnvted.
End of restoredisk job for image d2d-pseudo-tmp-cnvted.
*****************************************************
*****************************************************
Checking if udevd rules have to be restored...
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
The mounted bitlocker device was not found. Skip unmounting it.
Now syncing - flush filesystem buffers...

Ending /usr/sbin/ocs-sr at 2024-06-22 03:36:25 UTC...
Checking if udevd rules have to be restored...
Now syncing - flush filesystem buffers...
Ending /usr/sbin/ocs-onthefly at 2024-06-22 03:36:25 UTC...
Press "Enter" to continue......
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu#

 

No comments:

Post a Comment