Re: Upgrading bootblocks
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
Re: Upgrading bootblocks
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
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 definately be on ad1s1 as there are some non-bsd partitions on ad1 Petr Gergo Szakal wrote 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 this helpful? http://www.dragonflybsd.org/cgi-bin/cvsweb.cgi/~checkout~/src/nrelease/root/README
Re: UFS disklabel recovery/restore?
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 earlier is its successor, scan_ufs (in NetBSD). That's probably what should get imported, at least out into pkgsrc so that more systems can use it. --- Dmitri Nikulin Centre for Synchrotron Science Monash University Victoria 3800, Australia
Re: UFS disklabel recovery/restore?
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?
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?
: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 Matthew Dillon <[EMAIL PROTECTED]>
Re: Upgrading bootblocks
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 this helpful? http://www.dragonflybsd.org/cgi-bin/cvsweb.cgi/~checkout~/src/nrelease/root/README -- Gergo Szakal <[EMAIL PROTECTED]> University Of Szeged, HU Faculty Of General Medicine /* Please do not CC me with replies, thank you. */
Re: UFS disklabel recovery/restore?
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 with DragonFly too. That was a long time ago so you may as well do a checkout from the netbsd-4 branch now. Maybe this could be trivially ported to DragonFly, or pulled out into pkgsrc for other platforms to use. --- Dmitri Nikulin Centre for Synchrotron Science Monash University Victoria 3800, Australia