One of the HDs in our Linux Mint computer has been behaving strangely (see at the end of the post, but it's not relevant) so we have decided to replace it. I would appreciate some advice on how to do it. The disk (1TB) has two partitions, a small one for /var and another one for /home that takes up most of the disk (both are ext4, only the second one had errors). We have another disk with /boot, /, and swap that would stay in place.
So the question is: what steps are needed to replace the disk with another one (possible larger), with minimal software reinstall/configuration? Starting with the backups... does it suffice to log into Mint and copy from there, or is it advisable to do it from GParted Live, for example? I guess that most software files and config is in the partitions we are leaving in place, so we don't have to worry about that, but if you think this may be an issue please comment on it... some of the software was a pain to install (not just getting things from repos) and we strongly want to avoid repeating that.
The strange behaviour of the disk (maybe not so strange after all) comes down, in the end, to using several times the following command from a GParted Live USB:
e2fsck -f -c -c -k -C 0 /dev/sdb5
and finding more badblock errors each time; the last one we got 244/0/0 and several files with multiply-claimed blocks, that gave further reading errors when answered "yes" to the question of cloning the blocks. Maybe the HD can still be usable, but we'd rather not risk losing data.
Thanks a lot
cat
give problems with those files that contain bad blocks that I couldn't fix? – David Sevilla Apr 24 '17 at 14:03