What is the best way to save my linux (open media vault / debian) install from failing disk?
-
@phnt
Too bad the target disk is smaller.@jonossaseuraava Then you would have to make the partition smaller prior to the backup with something like gparted, but that is risky on failing disks and might involve reading and writing large amounts of data to the disk.
Do you have some intermediary disk where you could do this after making a backup first and restoring it to the intermediary before going on the target? -
@jonossaseuraava Then you would have to make the partition smaller prior to the backup with something like gparted, but that is risky on failing disks and might involve reading and writing large amounts of data to the disk.
Do you have some intermediary disk where you could do this after making a backup first and restoring it to the intermediary before going on the target?@jonossaseuraava
>Do you have some intermediary disk where you could do this after making a backup first and restoring it to the intermediary before going on the target?
You could technically do this in a VM since VM disks are usually only as big as the data used itself, but that is getting into voodoo territory. -
@jonossaseuraava @yonle set up etckeeper with automatic push on your next install (won't rescue these configs but you'll sleep better)
-
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 if dd doesnt work, the hdd is broken. Which filesystem is on the broken disk? btrfs? ext4?
-
@jonossaseuraava if dd doesnt work, the hdd is broken. Which filesystem is on the broken disk? btrfs? ext4?
-
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