Quote:
Originally Posted by bunnsnow
Or you could just enable "-icds" in expert mode and it will get around it.....
|
I tried this with latest stable CZ.
This paragraph will be little bit off-topic (sorry), but contains backround informationm, which may be helpful for others. I had a 200 GB with Win7 in it. Win7 started to reporting that the disk is bad ("HD Tune" app. confirmed that, plus there were bad sectors). So I saved stuff from the disk + uninstalled what I didn't need. Later on I removed hiberfile (I found some windows command line for that, plus disabled the virtual memory). I did defragmenting with MyDefrag, from another computer. I planned to shrink the partition to 50 GB. I wanted to install it on a smaller, but working 120 GB HDD. Then, because of still problem with the unmovable files scattered fragmented accross the partition(MyD tries to help here (
http://www.mydefrag.com/FrequentlyAs...cialFiles.html), but it's too difficult), I used "mini tools partition wizard home edition" to reduce the partition size (based on a comment at
http://askubuntu.com/questions/25221...t-installation). So finally I could shrink the partition and verified that it still boots up.
With CZ I needed to use some rescue option to be able to cope with the bad sectors when saving the disk.
So the disk contained some 100 MB partition (somehow created by Win7) plus the 50 GB system partition. At restoring I had the not so pleasant surprise that CZ refused to restore this 50 GB long stuff to a 120 GB HDD just because it was taken from a 200 GB HDD (how miserable). So *I tried the -icds option* (went up with shift + page up and copied the command advertised by CZ with the mouse, added the -icds and ran it in another terminal (Alt + F2) with sudo). About 1 hour later it spat out some red text ("Failed to restore partition image file ..."), but I didn't hit Enter yet (after that I realized that it started to fix the situation, I expected that it wouldn't, so it was very misleading!
Again, without pressing Enter, I went to another terminal (Alt + F3). In the /var/log/partclone.log file (Partclone 0.2.66) there was not much information (11 lines alltogether), the only the last line having some vague information about the error: "target seek ERROR:Invalid argument".
So I tried jowagner's approach, which I describe now in more detail, maybe it will be helpful. Again, at this point I didn't expect (due to red error message) that -icds could work, that's why I tried jowagner's approach. Also, I set up some flag which resulted the partition to be resized to 30.6 GB. I could have increaded the partition size (mini tool partition wizard), but from MyDefrag's analyze screen I remembered that there were unmovabe files scattered in the partition still (lots of red dots or short lines).
Still in CZ, in another terminal (no need to boot another distro) went to the saved stuff:
cd /home/partimag/2013-<...>
Backup original files (do not skip this step!):
cp -p sda-chs.sf sda-chs.sf.orig
cp -p sda-pt.parted sda-pt.parted.orig
'cat sda-chs.sf' shows (this is about the source disk):
cylinders=24321
heads=255
sectors=63
'sudo fdisk -l /dev/sda' shows
"255 heads, 63 sectors/tracks, 14946 cylinders", so I modified sda-chs.sf accordingly (you can use vi or nano).
Now to sda-pt.parted. To get the disk information from parted in the same format (size in sectors, not in GBs).
sudo parted /dev/sda
Now in (parted) prompt execute the following commands:
unit s
p
q
Select the first 4 lines describing the HDD with your mouse.
For some reason I couldn't paste this information to vi, so I used nano:
nano sda-pt.parted
Delete the first 4 lines and paste (right click) the new information to the beginning of the file. Ctrl + o to write the file. Ctrl + x to exit nano.
Now cd to some other directory (not inside /home/partimag), as CZ will need to unmount that (see below). E.g. 'cd /'. You can also unmount that with 'sudo unmount /home/partimag'.
At this point I realized that the session with the -icds option was not complete (by not being able to unmount the /home/partimag). Also, it resized my partition, which I didn't trust (although Win7 booted up (and did some initial chkdsk on both partition)).
So I booted CZ again and did restore again now with the hacked HDD description text files. This time I unchecked -r ("Try to resize filesystem to fit partition size"), although now with the hacked disk info maybe it wouldn't have caused problems.
This time I got what I really wanted. Win7 booted up fine and didn't do chkdsk at the startup.