Re: UFS disklabel recovery/restore?

2007-02-06 Thread Dmitri Nikulin
On 2/6/07, Petr Janda <[EMAIL PROTECTED]> wrote: Is there a program out there that can restore a disklabel by guessing the offset/size of each partition? Petr http://mail-index.netbsd.org/tech-userlevel/2005/07/29/.html Pretty much exactly what you ask for. Don't see why it shouldn't work

Re: Upgrading bootblocks

2007-02-06 Thread Gergo Szakal
On Tue, 06 Feb 2007 14:21:02 +1100 Petr Janda <[EMAIL PROTECTED]> wrote: > Im trying to edit a disklabel of an old DF instalation, but I get an error: > > disklabel: Will not overwrite old bootblocks w/ label, install new boot > blocks first! > > How do I install new boot blocks? > > Petr Is

Re: UFS disklabel recovery/restore?

2007-02-06 Thread Matthew Dillon
:Is there a program out there that can restore a disklabel by guessing :the offset/size of each partition? : :Petr I'm not sure, but it ought to be fairly easy to write one to search for the UFS superblock magic number. -Matt

Re: UFS disklabel recovery/restore?

2007-02-06 Thread Stefan Krüger
Petr Janda wrote: Is there a program out there that can restore a disklabel by guessing the offset/size of each partition? Petr you might want to take a look at openbsd's scan_ffs(8)

Re: UFS disklabel recovery/restore?

2007-02-06 Thread Petr Janda
Yeah, i found that program yesterday. and it found all my long gone partitions which i kept around. Any chance this extremely useful program gets imported into contrib? I'd be great to have it around all the time. Petr

Re: UFS disklabel recovery/restore?

2007-02-06 Thread Dmitri Nikulin
On 2/7/07, Petr Janda <[EMAIL PROTECTED]> wrote: Yeah, i found that program yesterday. and it found all my long gone partitions which i kept around. Any chance this extremely useful program gets imported into contrib? I'd be great to have it around all the time. The one I suggested 16 hours ear

Re: Upgrading bootblocks

2007-02-06 Thread Petr Janda
Ive followed that and done boot0cfg -B ad1s1 and even boot0cfg -B ad1 but i still get: disklabel: Warning, old bootblocks detected, install new bootblocks & reinstall the disklabel when i do disklabel /dev/ad1s1 but I dont get the error when I do disklabel /dev/ad1 disklabel should definat

Re: Upgrading bootblocks

2007-02-06 Thread walt
Petr Janda wrote: > disklabel: Warning, old bootblocks detected, install new bootblocks & > reinstall the disklabel > > when i do disklabel /dev/ad1s1 Does 'disklabel -r' change anything?

Re: Upgrading bootblocks

2007-02-06 Thread Petr Janda
walt wrote: Petr Janda wrote: disklabel: Warning, old bootblocks detected, install new bootblocks & reinstall the disklabel when i do disklabel /dev/ad1s1 Does 'disklabel -r' change anything? No, still same. Petr