Windows will randomly rewrite the MBR
Force the cloned disk image onto a smaller disk
I have an image captured using Clonezilla as a SAVEDISK on a 160GB hard drive.
A newer version of the PC with a 120 GB hard drive is now available. The used storage space is only 20 GB
Is there some way to force Clonezilla (or some other program) to change the original size of the pictures to 120GB or less so that Clonezilla can write them to the new PC?
Clonezilla relies on Partclone to save and restore file systems. While it is useful, even using the option, that alone is not enough. When restoring the original file system on the smaller hard drive, Partclone encounters a search error that tries to write beyond the hard drive's limit. So this is a limitation not only of Clonezilla but also of the underlying tools that it uses.
However, you can temporarily restore the image to a 160 GB hard drive and use a file system resizing tool such as a. B. (for NTFS) or (for ext3 / 4) to reduce the file system, for example to 25 GB. There is no need to resize the partition table like GParted does. Use Clonezilla again to create a new image using the savedisk option.
When restoring the image to the smaller hard drive, use the option to skip clonezilla and verify that the hard drive is the same as or larger than the original hard drive. Since you have shrunk the file system, Partclone will not encounter a search error and your data will be restored to your smaller hard drive.
If you used the proportional recovery of the partition table option (), Clonezilla creates an appropriate partition table and changes the size (extension) of the original file system so that all of the free space becomes available on the new hard drive.
The bug has been fixed.
Restore the image to a hard drive of 160GB or more ... could be virtual.
Start this computer with PartedMagic Live CD.
Resize the partition with parted.
In Windows or Linux, insert the drive as a secondary drive
and resize using parted, gparted, or Windows Disk Manager.
I solved it with a Windows 10 image as follows
- Temporarily move some files when your source drive is almost full.
- A three-fragmented drive leaves more room to shrink. So defragment by clicking with the right mouse button on the drive -> Tools
- shrink as small as possible through Windows Disk Management
- Launch Clonezilla, Expert, Device-Device, Local, select and finally the option
- Switch off and disconnect the old drive
- Reboot to the new drive and hold down the Shift key while logging into Windows. Select Restart -> Troubleshoot -> Startup Repair
In the past the 4th step failed, but since 2015 Clonezilla supports GPT with the option. I think this is why this is working now:
Clonezilla live 2.4.2-38 ... Proportion GPT partition layout can be created with the option.
The sixth step is necessary because Windows does not recognize the boot drive in the Optimizer (SSD trim) and tries to repair the drive at random, so something is wrong in the table for the boot sector / partition, but the repair through boot is fixed.
EDIT: I uploaded a video of the whole process:
If the storage space is not used, switch to expert mode and activate the image. Then restore it. The partition size check is skipped and restored successfully (only if <120 GB is used).
- Clonezilla image (from Windows 7) based on 128 GB drive (100 MB system partition + 117 GB "C"),
- new 120 GB drive.
The following suggestions (like https://superuser.com/a/592283/229908) didn't solve the problem for me.
What worked for me was:
- Restore the image on a different (larger) drive.
- Defragment this drive (as Clonezilla appears to be restoring the data as it was structured on the original drive, so there may not be enough free space to shrink the partition to the target size).
- Shrink the partition (in my case 117 GB "C") to the size of the target drive / partition (in my case 111 GB) or, more safely, to a smaller size.
- Install Windows 7 on the destination drive (and let it create its system partition using advanced options).
- Use Clonezilla to restore (with command) each partition from the resize drive to the corresponding partition on the destination drive.
The main trick why this worked was to create a partition table (in my case automatically by installing Windows) that corresponds to the target drive, and then only copy (over) content that would not affect the partition configuration. Even if the source partition to be restored was smaller than the destination because the partition table is not affected, the destination partition does not need to be "expanded" after the operation.
In my case alone did not solve the problem. I don't know if the problem is exactly the same as mine. But I left my penny here.
I tried cloning a disc from a 930 GB hard drive (source drive) with a GPT partition table to an 890 GB SSD (destination). Please note that I am a Linux user and I have dual boot with Windows 10. I tried to leave all partitions unchanged and only slightly reduce the size of my data partition.
- Using gparted, I resized the larger data partition to make it a total size that would fit the target SSD, and ended up moving all of the free space
- I used Clonezilla-Live from USB pen, with advanced mode and enabled.
It failed . It looks like Clonezilla cannot clone the partition table to the target disks at startup because it incorrectly uses the sfdisk utility instead of the sgdisk utilities for older partition types. My solution:
- The same as before (overall size must fit)
I manually copied the partition from one drive to another using the Clonezilla shell with this command ( only for GPT partitions! ):
sgdisk / dev / sdSourceDeviceName -R / dev / sdDestinationDeviceName
Performed Clonezilla disc-to-disc clone with the option and option to NOT CREATE a partition table on the target disk selected. (In this case, Clonezilla uses the target partitions as is and resizes partitions when the sizes are smaller for good performance.)
It worked . I got all partitions the same size as the source (yes, I just reduced the larger partition a little). Dual boot with Windows still works fine. greetings
- Who would win Saiki against Koro Sensei?
- Are there helium or lithium fusion bombs
- A religion lacks a deity
- Monterey is part of the Bay Area
- Who is the most overrated star architect
- Participation in Sinhgad Institutes is compulsory
- What is your rating of the Evernote product
- What is your encounter with extraterrestrials
- Is it worth doing online dishes
- Is cat grass safe for cats
- What if Syria invaded Lebanon?
- What qualifications do engineering careers require
- Is learning part of work
- Fasting is good for productivity
- Why do they call cheesecloth cheesecloth
- How can I improve lost motivation
- How is Kalindi College doing
- What is 2 2 2 52
- What is taught at Apple University
- What is your rating of Android applications
- What do you mean by industrial revolution
- What is amplification in sound design
- In which language was the first website created?
- What is money 6