As the hard-disk of my PC exhibited its first hard error after months of strange noises I was forced to replace it. This machine dual-boots WinXP (on NTFS) and Debian, Windows' boot manager invokes grub and I absolutely did not want to re-install either Windows or Debian or try to figure how to resurrect a broken WinXP bootmanager.
So I used the the dd-method again:
dd_rescue -b 512k -A /dev/hda /dev/hdc
(I had to use -b 1
for copying the almost broken sectors.)cp -ax
to acually copy the data to the new partitions. (cp is
dog slow for copying directories containing many files, like ~/mail or
~/.ccache. - Two tar instances talking to each other over a pipe would
probably be a lot faster but I cannot remember the 42 options needed to
replicate cp -ax behavior.)
openssl rand -rand /dev/urandom -out /dev/hdc1
somereallybignumber
.
The process would be smoother if I knew of a sane way of copying NTFS (preserving ACLs) and could be bothered to actually remember how I setup grub in the first place. ;-)