Wednesday, December 01, 2021

Re: how to recover a corrupted disk

Den ons 1 dec. 2021 kl 09:12 skrev Sandeep Gupta <gupta.sandeep@gmail.com>:
> I am running OpenBSD 7.0 on RPi4. I accidentally removed the usb
> cable connecting the sata ssd to the RPi4.
> Well OpenBSD froze and upon reboot I got the very comforting
> Synchronous Exception message.
> Thankfully, I have another RPi4 running OpenBSD. I can mount the
> corrupted disk ( did the necessary backups). I did fsck on all the
> partitions.
> All partitions except for /dev/rsd1c and /dev/rsd1i are clean.
> For /dev/rsd1c , I get "BAD SUPER BLOCK: MAGIC NUMBER WRONG".

The "c" partition is not meant to hold filesystems, it is the device
used to talk to "the whole disk" for fdisk and such tools.

> For /dev/rsd1i, I get "UNEXPECTED INCONSISTENCY".

If you had any non-bsd filesystems (like a small MSDOS/FAT partition
for booting/firmware/arm blob stuff), it will end up as sdXi (and
j,k,l, and so on if you have more than one foreign fs), so if that is
the case, then it is not unexpected to see FFS' fsck have issues with
FAT filesystems.

--
May the most significant bit of your life be positive.

No comments:

Post a Comment