Disk label recovery - request for suggestions.

1999-08-08 Thread Josef Karthauser
A few weeks ago I had a problem with a missing partition table and disklabel. Niall Smart forwarded me a small C program for scanning a drive for superblocks and rewriting a disklabel table. I'd like to do some work on integrating this into FreeBSD because it seems too useful to leave out. At t

Disk label recovery - request for suggestions.

1999-08-08 Thread Josef Karthauser
A few weeks ago I had a problem with a missing partition table and disklabel. Niall Smart forwarded me a small C program for scanning a drive for superblocks and rewriting a disklabel table. I'd like to do some work on integrating this into FreeBSD because it seems too useful to leave out. At th

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Dag-Erling Smorgrav
Josef Karthauser <[EMAIL PROTECTED]> writes: > If so, what extra work is required to make it work with non UFS file > systems - is 'disklabel' used on non UFS fs's? Disklabel doesn't work at the fs level, it works at the slice level - dividing slices into partitions, in which you can create file

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Josef Karthauser
On Wed, Aug 11, 1999 at 03:38:05PM +0200, Dag-Erling Smorgrav wrote: > Josef Karthauser <[EMAIL PROTECTED]> writes: > > If so, what extra work is required to make it work with non UFS file > > systems - is 'disklabel' used on non UFS fs's? > > Disklabel doesn't work at the fs level, it works at t

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Dag-Erling Smorgrav
Josef Karthauser <[EMAIL PROTECTED]> writes: > Ahha - of course. Ok, let me re-phrase the question then. By looking > at the contents of the superblocks on a UFS file system it's possible to > reconstruct a disklabel for a slice. Well, it's possible to reconstruct the label information for *tha

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Josef Karthauser
On Wed, Aug 11, 1999 at 06:23:24PM +0200, Dag-Erling Smorgrav wrote: > Josef Karthauser <[EMAIL PROTECTED]> writes: > > Ahha - of course. Ok, let me re-phrase the question then. By looking > > at the contents of the superblocks on a UFS file system it's possible to > > reconstruct a disklabel fo

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Dag-Erling Smorgrav
Josef Karthauser <[EMAIL PROTECTED]> writes: > On Wed, Aug 11, 1999 at 06:23:24PM +0200, Dag-Erling Smorgrav wrote: > > Josef Karthauser <[EMAIL PROTECTED]> writes: > > > Ahha - of course. Ok, let me re-phrase the question then. By looking > > > at the contents of the superblocks on a UFS file s

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Josef Karthauser
On Wed, Aug 11, 1999 at 06:46:51PM +0200, Dag-Erling Smorgrav wrote: > Josef Karthauser <[EMAIL PROTECTED]> writes: > > On Wed, Aug 11, 1999 at 06:23:24PM +0200, Dag-Erling Smorgrav wrote: > > > Josef Karthauser <[EMAIL PROTECTED]> writes: > > > > Ahha - of course. Ok, let me re-phrase the questi

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Warner Losh
In message <[EMAIL PROTECTED]> Dag-Erling Smorgrav writes: : superblock (or one of its backup copies), you can determine the offset : and size of the FS. It won't tell you anything about *other* : partitions though. It will give a fairly strong hint, however. If you know what is taken up by this

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Dag-Erling Smorgrav
Josef Karthauser writes: > If so, what extra work is required to make it work with non UFS file > systems - is 'disklabel' used on non UFS fs's? Disklabel doesn't work at the fs level, it works at the slice level - dividing slices into partitions, in which you can create file systems. DES -- Da

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Josef Karthauser
On Wed, Aug 11, 1999 at 03:38:05PM +0200, Dag-Erling Smorgrav wrote: > Josef Karthauser writes: > > If so, what extra work is required to make it work with non UFS file > > systems - is 'disklabel' used on non UFS fs's? > > Disklabel doesn't work at the fs level, it works at the slice level - > d

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Dag-Erling Smorgrav
Josef Karthauser writes: > Ahha - of course. Ok, let me re-phrase the question then. By looking > at the contents of the superblocks on a UFS file system it's possible to > reconstruct a disklabel for a slice. Well, it's possible to reconstruct the label information for *that particular UFS fil

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Josef Karthauser
On Wed, Aug 11, 1999 at 06:23:24PM +0200, Dag-Erling Smorgrav wrote: > Josef Karthauser writes: > > Ahha - of course. Ok, let me re-phrase the question then. By looking > > at the contents of the superblocks on a UFS file system it's possible to > > reconstruct a disklabel for a slice. > > Well

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Dag-Erling Smorgrav
Josef Karthauser writes: > On Wed, Aug 11, 1999 at 06:23:24PM +0200, Dag-Erling Smorgrav wrote: > > Josef Karthauser writes: > > > Ahha - of course. Ok, let me re-phrase the question then. By looking > > > at the contents of the superblocks on a UFS file system it's possible to > > > reconstruc

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Josef Karthauser
On Wed, Aug 11, 1999 at 06:46:51PM +0200, Dag-Erling Smorgrav wrote: > Josef Karthauser writes: > > On Wed, Aug 11, 1999 at 06:23:24PM +0200, Dag-Erling Smorgrav wrote: > > > Josef Karthauser writes: > > > > Ahha - of course. Ok, let me re-phrase the question then. By looking > > > > at the con

Re: Disk label recovery - request for suggestions.

1999-08-11 Thread Warner Losh
In message Dag-Erling Smorgrav writes: : superblock (or one of its backup copies), you can determine the offset : and size of the FS. It won't tell you anything about *other* : partitions though. It will give a fairly strong hint, however. If you know what is taken up by this partition, you can