NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: restore super block? recover missing data?



On Sun, 20 Mar 2022, Michael van Elst wrote:

> reed%reedmedia.net@localhost ("Jeremy C. Reed") writes:
> 
> >FFSv2 sb at 2176 size 623508480, last mounted on 
> >FFSv2 sb at 2240 size 623508480, last mounted on /
> 
> 
> One more thing. Since the first superblock is found, it might be
> still ok and you only need to recover the disklabel (and handle the
> bad blocks that started everything).

Thank you so much (and other email too).

I did a grep -a over my filesystem for a few entries I would see in my 
disklabel. It found source code, docs, examples. But after several hours 
it found four identical copies of my disklabel (from /var/backups). I 
used "disklabel -R sd4 J.disklabel-NEW" and was able to mount my 
partitions. Doing a find over them caused both of the mount points to 
fail. (I didn't handle the bad blocks.) I rebooted, replugged in the 
disk caddy, and re-mounted and was able to copy over my missing files.

(Note to self: 1) make sure my backups are complete for what I need; 2) 
don't ignore disk errors; 3) monitor disk for SMART and disk errors.)


Home | Main Index | Thread Index | Old Index