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 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

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index