Re: how to recover a corrupted disk

2021-12-03 Thread Sandeep Gupta
much ado for nothing... It seems when I yanked the data cable, it wasn't the disk that got corrupted. It was the UEFI loader on sdcard that had become corrupted. Not sure when that had happened. This issue is documented here (https://github.com/pftf/RPi4/issues/97). I had ended up formatting the d

Re: how to recover a corrupted disk

2021-12-01 Thread Ian Darwin
On Wed, Dec 01, 2021 at 01:39:39PM +0530, Sandeep Gupta wrote: > Hello, > All partitions except for /dev/rsd1c and /dev/rsd1i are clean. > For /dev/rsd1c , I get "BAD SUPER BLOCK: MAGIC NUMBER WRONG". > For /dev/rsd1i, I get "UNEXPECTED INCONSISTENCY". If that's the case, you are probably done

Re: how to recover a corrupted disk

2021-12-01 Thread Peter J. Philipp
Sandeep, go ahead reformat your disk.  Do keep in mind the structure of a BSD disk though a partition - is usually / b partition - is usually swap c partition - is always the entire disk including a, and b, and it goes on.../var, /usr, /usr/local, /home etc etc Best Regards, -peter On 12/1

Re: how to recover a corrupted disk

2021-12-01 Thread Otto Moerbeek
On Wed, Dec 01, 2021 at 05:49:06PM +0530, Sandeep Gupta wrote: > Not sure why not. It seems the rsd1c is where the superblock is. Also Each filesystem has it's own superblock, residing at the start of its partition. c partitions are a way to refer to the whole disk and do not have a filesystems.

Re: how to recover a corrupted disk

2021-12-01 Thread Sandeep Gupta
Not sure why not. It seems the rsd1c is where the superblock is. Also there is no other mechanism to refer to the whole disk. I guess it's time to format the disk. On Wed, Dec 1, 2021 at 4:20 PM Janne Johansson wrote: > > Den ons 1 dec. 2021 kl 11:09 skrev Sandeep Gupta : > > @Peter, @Janne: Than

Re: how to recover a corrupted disk

2021-12-01 Thread Janne Johansson
Den ons 1 dec. 2021 kl 11:09 skrev Sandeep Gupta : > @Peter, @Janne: Thanks for the infos. Newfs seemed promising but it > seems like the disk is beyond repair :(. > I did newfs -N and got quite a few location of superblocks: > Then I tried > fsck_ffs -b #blockid /dev/rsd1c You should *NOT* newfs

Re: how to recover a corrupted disk

2021-12-01 Thread Sandeep Gupta
@Peter, @Janne: Thanks for the infos. Newfs seemed promising but it seems like the disk is beyond repair :(. I did newfs -N and got quite a few location of superblocks: Then I tried fsck_ffs -b #blockid /dev/rsd1c No matter which blockid i tried, it always gave the same BAD SUPER BLOCK: MAGIC NUMB

Re: how to recover a corrupted disk

2021-12-01 Thread Janne Johansson
Den ons 1 dec. 2021 kl 09:12 skrev Sandeep Gupta : > 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 ru

how to recover a corrupted disk

2021-12-01 Thread Sandeep Gupta
Hello, 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 t