Created
April 9, 2019 16:22
-
-
Save RyanTG/56990b98edecb0daa3f0a556f7d439cf to your computer and use it in GitHub Desktop.
clonezilla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do you want to clone the boot loader (executable code area, the first 446 bytes) to: sdc ? | |
[Y/n] | |
The first partition of disk /dev/sda starts at 2048. | |
Saving the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by: | |
dd if=/dev/sda of=/tmp/ocs_onthefly_local.0NPhFl/src-hidden-data.img skip=1 bs=512 count=2047 | |
2047+0 records in | |
2047+0 records out | |
1048064 bytes (1.0 MB, 1.0 MiB) copied, 0.143125 s, 7.3 MB/s | |
*****************************************************. | |
Collecting partition /dev/sda1 info... | |
Collecting partition /dev/sda2 info... | |
Collecting partition /dev/sda3 info... | |
Collecting partition /dev/sda4 info... | |
Outputing swap UUID/LABEL of sda3... | |
Saving swap /dev/sda3 info in /tmp/ocs_onthefly_local.0NPhFl/swappt-sdc3.info... | |
*****************************************************. | |
*****************************************************. | |
Searching for data partition(s) in source disk: sda ... | |
Excluding busy partition or disk... | |
Unmounted partitions (including extended or swap): sda1 sda2 sda3 sda4 | |
Collecting info..... done! | |
*****************************************************. | |
Running file system check and repair for /dev/sda1... | |
Running: fsck -f /dev/sda1 | |
fsck from util-linux 2.33.1 | |
e2fsck 1.44.6 (5-Mar-2019) | |
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/sda1: 442911/3203072 files (0.4% non-contiguous), 6001953/12800000 blocks | |
Running file system check and repair for /dev/sda2... | |
Running: fsck -f /dev/sda2 | |
fsck from util-linux 2.33.1 | |
e2fsck 1.44.6 (5-Mar-2019) | |
Pass 1: Checking inodes, blocks, and sizes | |
Inode 7738183 extent tree (at level 1) could be narrower. Optimize<y>? yes | |
Pass 1E: Optimizing extent trees | |
Pass 2: Checking directory structure | |
Pass 3: Checking directory connectivity | |
Pass 4: Checking reference counts | |
Pass 5: Checking group summary information | |
/dev/sda2: ***** FILE SYSTEM WAS MODIFIED ***** | |
/dev/sda2: 1075014/26525696 files (0.3% non-contiguous), 46925533/106092544 blocks | |
Running file system check and repair for /dev/sda4... | |
Running: fsck -f /dev/sda4 | |
fsck from util-linux 2.33.1 | |
e2fsck 1.44.6 (5-Mar-2019) | |
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/sda4: 374/32768 files (1.3% non-contiguous), 29825/131072 blocks | |
*****************************************************. | |
Will create the partition on the target machine... | |
/usr/share/drbl/sbin/ocs-functions: line 2794: service: command not found | |
Shutting down the Logical Volume Manager | |
Finished Shutting down the Logical Volume Manager | |
Trying to clean the MBR and GPT partition table on the destination disk first: /dev/sdc | |
Informing the OS of partition table changes... done! | |
Creating MBR type's partition table... | |
No partition table exists in target disk /dev/sdc, try to initialize one so that we can get the disk size by parted... Running: parted -s /dev/sdc mklabel msdos | |
done! | |
sfdisk --force /dev/sdc < /tmp/ocs_onthefly_local.0NPhFl/tgt-pt.sf | |
Partition #1 contains a ext4 signature.Checking that no-one is using this disk right now ... OK | |
Disk /dev/sdc: 465.8 GiB, 500107862016 bytes, 976773168 sectors | |
Disk model: | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 4096 bytes | |
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes | |
Disklabel type: dos | |
Disk identifier: 0xf0ecb17d | |
Old situation: | |
>>> Script header accepted. | |
>>> Script header accepted. | |
>>> Script header accepted. | |
>>> Script header accepted. | |
>>> Created a new DOS disklabel with disk identifier 0x62c50f1e. | |
/dev/sdc1: Created a new partition 1 of type 'Linux' and of size 48.8 GiB. | |
Partition #4 contains a ext4 signature. | |
/dev/sdc2: Created a new partition 2 of type 'Linux' and of size 404.7 GiB. | |
/dev/sdc3: Created a new partition 3 of type 'Linux swap / Solaris' and of size 11.7 GiB. | |
/dev/sdc4: Created a new partition 4 of type 'EFI (FAT-12/16/32)' and of size 512 MiB. | |
All partitions used. | |
New situation: | |
Disklabel type: dos | |
Disk identifier: 0x62c50f1e | |
Device Boot Start End Sectors Size Id Type | |
/dev/sdc1 1050624 103450623 102400000 48.8G 83 Linux | |
/dev/sdc2 103450624 952190975 848740352 404.7G 83 Linux | |
/dev/sdc3 952190976 976768064 24577089 11.7G 82 Linux swap / Solaris | |
/dev/sdc4 * 2048 1050623 1048576 512M ef EFI (FAT-12/16/32) | |
Partition table entries are not in disk order. | |
The partition table has been altered. | |
Calling ioctl() to re-read partition table. | |
Syncing disks. | |
This was done by "sfdisk --force /dev/sdc < /tmp/ocs_onthefly_local.0NPhFl/tgt-pt.sf" | |
Informing the OS of partition table changes.... done! | |
Checking the integrity of partition table in the disk /dev/sdc... | |
done! | |
*****************************************************. | |
The first partition of disk /dev/sdc starts at 2048. | |
Restoring the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by: | |
dd if=/tmp/ocs_onthefly_local.0NPhFl/tgt-hidden-data.img of=/dev/sdc seek=1 bs=512 count=2047 | |
2047+0 records in | |
2047+0 records out | |
1048064 bytes (1.0 MB, 1.0 MiB) copied, 0.0529168 s, 19.8 MB/s | |
*****************************************************. | |
*****************************************************. | |
Cloning the boot loader (executable code area) from "sda" to "sdc"... | |
/usr/bin/ocs-onthefly: line 473: [: : integer expression expected | |
*****************************************************. | |
*****************************************************. | |
Searching for data partition(s) in source disk: sda ... | |
Excluding busy partition or disk... | |
Unmounted partitions (including extended or swap): sda1 sda2 sda3 sda4 | |
Collecting info..... done! | |
*****************************************************. | |
Source partition file system is ext4... | |
Cloning the /dev/sda1 to /dev/sdc1... | |
Clean filesystem header in device /dev/sdc1... | |
/dev/sdc1: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef | |
*****************************************************. | |
Using partclone to clone... | |
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -b -s /dev/sda1 -O /dev/sdc1 | |
Cloned successfully. | |
*****************************************************. | |
Source partition file system is ext4... | |
Cloning the /dev/sda2 to /dev/sdc2... | |
Clean filesystem header in device /dev/sdc2... | |
*****************************************************. | |
Using partclone to clone... | |
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -b -s /dev/sda2 -O /dev/sdc2 | |
Cloned successfully. | |
*****************************************************. | |
Source partition file system is ext4... | |
Cloning the /dev/sda4 to /dev/sdc4... | |
Clean filesystem header in device /dev/sdc4... | |
/dev/sdc4: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef | |
*****************************************************. | |
Using partclone to clone... | |
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -b -s /dev/sda4 -O /dev/sdc4 | |
Cloned successfully. | |
*****************************************************. | |
*****************************************************. | |
Searching for data partition(s) in target disk for post process: sdc... | |
Excluding busy partition or disk... | |
Unmounted partitions (including extended or swap): sdc1 sdc2 sdc3 sdc4 | |
Collecting info..... done! | |
*****************************************************. | |
Creating the swap partition if exists... | |
Found the swap partition /dev/sdc3, create it by: | |
mkswap -U 93fe6c4f-c0a0-4b9f-b963-fcadbbbd88ef /dev/sdc3 | |
Setting up swapspace version 1, size = 11.7 GiB (12583464960 bytes) | |
no label, UUID=93fe6c4f-c0a0-4b9f-b963-fcadbbbd88ef | |
*****************************************************. | |
Trying to remove udev hardware record in the restored OS... | |
The specified destination device: sdc1 sdc2 sdc3 sdc4 | |
Trying to remove udev persistent files. The devices to be searched: sdc1 sdc2 sdc3 sdc4... | |
Now searching possible device /dev/sdc1... | |
removed '/tmp/hd_img.M9s9wS/var/lib/dbus/machine-id' | |
Now searching possible device /dev/sdc2... | |
Skip /dev/sdc3 (swap). | |
Now searching possible device /dev/sdc4... | |
done! | |
*****************************************************. | |
Device /dev/sdc1 is not a FAT partition. | |
Skip updating syslinux on that. | |
Device /dev/sdc2 is not a FAT partition. | |
Skip updating syslinux on that. | |
Device /dev/sdc3 is not a FAT partition. | |
Skip updating syslinux on that. | |
Device /dev/sdc4 is not a FAT partition. | |
Skip updating syslinux on that. | |
*****************************************************. | |
Running: ocs-install-grub -s sdc auto | |
Found grub partition: /dev/sdc4 | |
Found boot loader grub in the MBR of disk /dev/sdc. | |
There is a separate boot partition in target device. Trying to mount root partition for grub-install to work with that... | |
/dev/sda1 is mounted as root partition for grub-install... | |
Found grub 2 installed in the restored OS. | |
Test if we can chroot the restored OS partition /dev/sda1... | |
Yes, we are able to chroot the restored OS partition /dev/sda1. | |
Trying to use the grub2 in the restored OS... | |
Running: run_grub2_from_restored_os "/dev/sdc4" "/dev/sda1" "/dev/sdc" | |
Re-installing grub2 on disk/partition /dev/sdc with grub2 dir in partition /dev/sdc4 and root partition /dev/sda1... | |
The options for grub2-install in the chroot: --force --recheck --no-floppy /dev/sdc | |
No grub2 program (e.g. update-grub2 or grub2-install) is found in the restored OS! | |
Skipping grub2 reinstallation! | |
Unable to use the grub 2 in the restored OS, trying another method... | |
/dev/sda1 is mounted as root partition for grub-install... | |
Trying to use the grub2 from the running OS... | |
Checking grub-install version... | |
Running: grub-install --force --recheck --root-directory=/tmp/hd_img.KbYwpJ /dev/sdc | |
Installing for i386-pc platform. | |
Installation finished. No error reported. | |
done! | |
*****************************************************. | |
Try to run partclone.ntfsfixboot for NTFS boot partition if it exists. Scanning partition(s): sdc1 sdc2 sdc3 sdc4... | |
The NTFS boot partition was not found or not among the restored partition(s). Skip running partclone.ntfsfixboot. | |
*****************************************************. | |
/usr/bin/ocs-onthefly: line 2545: /var/lib/clonezilla/ocs-vars: No such file or directory | |
/usr/bin/ocs-onthefly: line 2546: /var/lib/clonezilla/ocs-vars: No such file or directory | |
/usr/bin/ocs-onthefly: line 2547: /var/lib/clonezilla/ocs-vars: No such file or directory | |
Checking if udevd rules have to be restored... | |
Now syncing - flush filesystem buffers... | |
Ending /usr/bin/ocs-onthefly at 2019-04-09 07:25:24 UTC... | |
Press "Enter" to continue...... | |
[manjaro@manjaro ~]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment