What is the best way to save my linux (open media vault / debian) install from failing disk?
-
What is the best way to save my linux (open media vault / debian) install from failing disk?
I have tried dd, but it fails with io error midway trough. Also the target disk is like 30gb smaller than source, cuz im a dingus.
Ive tried some custom OMV regen script but my inatall seems to be too cursed.
What tool should i use?
Yes i should have done this when the io issues first popped up. Yes, i should have backups
Boosts welcome
@jonossaseuraava Would definitely second (third, fourth) ddrescue if the target disk wasn't smaller. That would be exactly the use case it's designed for.
Best you can do is probably copy all files to the new disk. Recreate partitions, mount as the same hierarchy under e.g. /mnt, then something like
# rsync -aAHXSv --exclude=/sys --exclude=/proc --exclude=/dev --exclude=/mnt /./ /mnt/./
You will need to reinstall the boot loader on the new disk for bootability.
-
What is the best way to save my linux (open media vault / debian) install from failing disk?
I have tried dd, but it fails with io error midway trough. Also the target disk is like 30gb smaller than source, cuz im a dingus.
Ive tried some custom OMV regen script but my inatall seems to be too cursed.
What tool should i use?
Yes i should have done this when the io issues first popped up. Yes, i should have backups
Boosts welcome
@jonossaseuraava My suggestion is to only copy /home/username anyway. and from there not everything. If you are lucky, the bad sector is somewhere else and you can copy your data without problems.
-
@jonossaseuraava huff... I dont know. When hdd is broken... I think is impossible.
-
@jonossaseuraava you might be able to do something with clonezilla since it should compress on the fly and only use filled space
bonus: does not require booting to a failing OS
@fd93 @jonossaseuraava With advanced mode and the rescue option selected, because otherwise it'll still choke on the I/O errors.
-
@jonossaseuraava My suggestion is to only copy /home/username anyway. and from there not everything. If you are lucky, the bad sector is somewhere else and you can copy your data without problems.
@cybercow
Homes are on separate raid array ans have almost nothing of value on them . luckily. -
undefined oblomov@sociale.network shared this topic