Fabien Aurejac Posted 16 hours ago Posted 16 hours ago I fixed in the past some problems with sata drive by setting to "rolling" the sources in armbian-config. A few day ago I wanted to upgrade to trixie (debian 13) sources. I forgot to set up again the armbian-config sources to "stable" and I went in a bad situation with my raid1 : it completely disappeared from /etc/mdadm/mdadm.conf, and was unable to mount. After several struggling with the command line tools, I managed to get it recreated by the following command : mdadm --create --force /dev/md0 \ --level=1 \ --raid-devices=2 \ /dev/sdc1 /dev/sdd1 \ --metadata=1.2 --data-offset=$(( 264192/2 ))K Now it seems to be syncing, but I think the filesystem was damaged... (though I don't now, perhaps all be ok again after sync) Is there a way other than photorec to get my data back ? Thanks a lot. 0 Quote
laibsch Posted 15 hours ago Posted 15 hours ago you just overwrote all your data. sorry for the bad news. 1 Quote
Solution Fabien Aurejac Posted 14 hours ago Author Solution Posted 14 hours ago Hello and thanks for your answer. Seems that no, I'm trying R-studio now and it's finding 7 superblocks, and for now it has found 5000+ files... Will try to get this back after the scanning. 0 Quote
laibsch Posted 14 hours ago Posted 14 hours ago well, I'm certainly happy to hear the good news. consider yourself lucky. creating a raid with mdadm should certainly overwrite all your data. Maybe you got lucky, maybe because you recreated it in the exact same way as before. who knows. what counts is that you did not loose everything after all. because that sucks. 0 Quote
Fabien Aurejac Posted 13 hours ago Author Posted 13 hours ago I had the precise information about data-offset from "--examine" mdadm command, and also I was in raid1, that's far less sensitive to error than raid5 or raid0 for example. I would not have been surprised that the resync, if taken to the end, would have worked... But I will never know. As far as I know, I get the data back and I'm very lucky and happy. Thank you 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.