Wednesday, December 01, 2021

Re: how to recover a corrupted disk

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/21 13:19, Sandeep Gupta wrote:
> 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 <icepic.dz@gmail.com> wrote:
>> Den ons 1 dec. 2021 kl 11:09 skrev Sandeep Gupta <gupta.sandeep@gmail.com>:
>>> @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 or fsck against the "C" partition.
>>
>>
>> --
>> May the most significant bit of your life be positive.

No comments:

Post a Comment