NetBSD-Users archive

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

Re: I have botched my disklabel. Can I recover my data?



On Tue, 15 Mar 2022 at 11:07, J. Hannken-Illjes <hannken%mailbox.org@localhost> wrote:
>
> > On 15. Mar 2022, at 11:25, Ottavio Caruso <ottavio2006-usenet2012%yahoo.com@localhost> wrote:
> >
> > Memo to myself: backup!
> >
> > In a failed attempt at editing the disklabel, I eventually deleted it
> > and obviously I could not boot again. I did not save the disklabel
> > geometry before hand (Yes, I know...), so I booted from the install
> > disk and tried to recreate the information by hand. So I did:
> >
> > # disklabel -i ld0
> >
> > I selected 10GB for the whole disk and 9.5 GB for the NetBSD
> > partition, because I had a 500MB swap partition, saved, crossed
> > fingers, rebooted and:
> >
> > ### START ####
> >
> > Tue Mar 15 10:16:49 GMT 2022
> > Starting root file system check:
> > Can't open /dev/rld0a: Device not configured
> <snip>
>
> Take a look at /sbin/scan_ffs aka. /rescue/scan_ffs.
>
> --
> J. Hannken-Illjes - hannken%mailbox.org@localhost

Thanks, that was useful. And many thanks to Michael van Elst on Libera
#netbsd for the assistance.

-- 
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Home | Main Index | Thread Index | Old Index