Post by AdrianoPost by JDIn effetti l'ho già fatto, ma si presenta il problema b > a
strano... mi sarei aspettato che con a > b, b acquisisse le dimensioni
di a.
Post by JDForse sbaglio qualcosa nel restore?
nel restore usa la modalita' "esperto" e metti quel flag per ignorare il
controllo delle dimensioni
Sì grazie, ha funzionato:
- ho ridimensionato le partizioni del disco fisso nel PC che è 4 settori
più grande di quello di backup USB
- ho fatto un backup "device to device"
- ho fatto un restore "device to device" usando il flag che citavi.
Di seguito il log.... Certo non si può dire che clonezilla sia uno
strumento user-friendly ;-)
Clonezilla mode is device-device
Setting the TERM as xterm
Starting /usr/sbin/ocs-onthefly at 2016-07-18 16:08:30 UTC...
Shutting down the Logical Volume Manager
No volume groups found
Finished Shutting down the Logical Volume Manager
Excluding busy partition or disk...
Excluding busy partition or disk...
PS. Next time you can run this command directly:
/usr/sbin/ocs-onthefly -g auto -e1 auto -e2 -j2 -r -icds -f sdb -t sda
This command is also saved as this file name for later use if necessary:
/tmp/ocs-onthefly-2016-07-18-16-10
*****************************************************.
Press "Enter" to continue...
*****************************************************.
*****************************************************.
setterm: terminal xterm does not support --blank
*****************************************************.
Saving the GPT of /dev/sdb as
/tmp/ocs_onthefly_local.TU750k/src-gpt.gdisk by sgdisk...
The operation has completed successfully.
Saving the primary GPT of /dev/sdb as
/tmp/ocs_onthefly_local.TU750k/src-gpt-1st.img by dd...
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.00245886 s, 7.1 MB/s
Saving the secondary GPT of /dev/sdb as
/tmp/ocs_onthefly_local.TU750k/src-gpt-2nd.img by dd...
32+0 records in
32+0 records out
16384 bytes (16 kB) copied, 0.000109796 s, 149 MB/s
*****************************************************.
Collecting partition /dev/sdb1 info...
Collecting partition /dev/sdb2 info...
Collecting partition /dev/sdb3 info...
Outputing swap UUID/LABEL of sdb3...
Saving swap /dev/sdb3 info in
/tmp/ocs_onthefly_local.TU750k/swappt-sda3.info...
*****************************************************.
Non-grub boot loader found on /tmp/ocs_onthefly_local.TU750k/sda-mbr...
The CHS value of hard drive from EDD will be used for sfdisk.
Kernel EDD (sysfs interface to BIOS EDD (Enhanced Disk Device)
information) not supported!
You can try to enable it if it's builtin by putting edd=on as boot
parameter.
No CHS value was found from EDD info for disk /dev/sda.
Searching for data partition(s)...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sda1 sda2 sda3
Collecting info.... done!
Getting /dev/sda1 info...
Getting /dev/sda2 info...
WARNING!!! WARNING!!! WARNING!!!
WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE
OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: sda
*****************************************************.
Machine: X550LD
sda (1000GB_ST1000LM024_HN-M_ST1000LM024_HN-M101MBB_S32XJ9DF321284)
sda1
(512M_vfat_NO_NAME(In_ST1000LM024_HN-M)_ST1000LM024_HN-M101MBB_S32XJ9DF321284)
sda2
(923.1G_ext4(In_ST1000LM024_HN-M)_ST1000LM024_HN-M101MBB_S32XJ9DF321284)
*****************************************************.
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: sda
Are you sure you want to continue? (y/n) y
OK, let's do it!!
*****************************************************.
Will create the partition on the target machine...
Shutting down the Logical Volume Manager
No volume groups found
Finished Shutting down the Logical Volume Manager
Trying to clean the MBR and GPT partition table on the destination disk
first: /dev/sda
Informing the OS of partition table changes...... done!
Error: /dev/sda: unrecognised disk label
Running: sgdisk -l /tmp/ocs_onthefly_local.TU750k/tgt-gpt.gdisk /dev/sda
Creating new GPT entries.
Warning! Current disk size doesn't match that of the backup!
Adjusting sizes to match, but subsequent problems are possible!
The operation has completed successfully.
Informing the OS of partition table changes..... done!
The disk and partitions in this system now:
*****************************************************.
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32
2 538MB 992GB 991GB ext4
3 992GB 1000GB 8470MB linux-swap(v1)
*****************************************************.
done!
*****************************************************.
*****************************************************.
Searching for data partition(s) in source disk: sdb ...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sdb1 sdb2 sdb3
Collecting info.... done!
*****************************************************.
Source partition file system is vfat...
Cloning the /dev/sdb1 to /dev/sda1...
Clean filesystem header in device /dev/sda1...
*****************************************************.
Using partclone to clone...
Run partclone: partclone.vfat -z 10485760 -N -L /var/log/partclone.log
-b -s /dev/sdb1 -O /dev/sda1
Cloned successfully.
*****************************************************.
Source partition file system is ext4...
Cloning the /dev/sdb2 to /dev/sda2...
Clean filesystem header in device /dev/sda2...
*****************************************************.
Using partclone to clone...
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log
-b -s /dev/sdb2 -O /dev/sda2
Cloned successfully.
*****************************************************.
*****************************************************.
Searching for data partition(s) in target disk for post process: sda...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sda1 sda2 sda3
Collecting info.... done!
*****************************************************.
Now tuning the file system size on partition /dev/sda1 to fit the
partition size...
Running: parted -s /dev/sda resize 1 1049kB 538MB
Error: The resize command has been removed in parted 3.0
*****************************************************.
Now tuning the file system size on partition /dev/sda2 to fit the
partition size...
e2fsck -f -y /dev/sda2; resize2fs -p -f /dev/sda2
e2fsck 1.42.13 (17-May-2015)
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/sda2: 457474/60616080 files (0.6% non-contiguous),
115641492/241991168 blocks
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 241991168 (4k) blocks long. Nothing to do!
*****************************************************.
Creating the swap partition if exists...
Found the swap partition /dev/sda3, create it by:
mkswap -U 907e11d9-b401-493e-ae82-cfad57a7d191 /dev/sda3
mkswap: /dev/sda3: warning: wiping old swap signature.
Setting up swapspace version 1, size = 7.9 GiB (8470392832 bytes)
no label, UUID=907e11d9-b401-493e-ae82-cfad57a7d191
*****************************************************.
Trying to remove udev hardware record in the restored OS...
The specified destination device: sda1 sda2
Trying to remove udev persistent files. The devices to be searched: sda1
sda2...
Skip /dev/sda1 (vfat).
Now searching possible device /dev/sda2...
done!
*****************************************************.
Device /dev/sda2 is not a FAT partition.
Skip updating syslinux on that.
*****************************************************.
Run grub install on disk sda...
Found grub partition: /dev/sda2
Disk /dev/sda is not MBR format. Skip the reinstallation of grub-pc
(MBR) program.
*****************************************************.
Try to run partclone.ntfsfixboot for NTFS boot partition if it exists.
Scanning partition(s): sda1 sda2...
The NTFS boot partition was not found or not among the restored
partition(s). Skip running partclone.ntfsfixboot.
*****************************************************.
Checking if udevd rules have to be restored...
Now syncing - flush filesystem buffers...
Ending /usr/sbin/ocs-onthefly at 2016-07-18 17:52:52 UTC...
Press "Enter" to continue......