lkml.org 
[lkml]   [1999]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.2.x corruption solved (Was Re: Statically linked 'tar')
On Tue, Oct 12, 1999 at 03:21:52PM +0200, Andrea Arcangeli wrote:

> After some time the kernel crashed and I destroyed all partitions of my
> hard disk. _all_. Note that the partition table was still fine. Only the
> contents of the partitons (superblocks mainly) was completly screwed up.

Same story in my case.

> So this is a warning for people having partition c stopping before one of
> your partition. fdisk is right about partition c. Trust its end and not
> what fdisk suggests as end of other partitions.
>
> I think the fix is simply a -1 in some line of fdisk... Looks like a
> silly/typo bug. I cc'ed to the author of the bsdlabel in our fdisk. If he
> can't fix that I can do that myself.

Agreed. It's not by far the only bug though. There are at least another two I
recall. First, have you tried editing any disklabels with fdisk? Generally
after deleting say the 'b' and 'e' partitions from a disklabel with 'a' to 'f'
and then trying to add them back in will completely screw fdisks calculations
and it will become impossible to write out a correct disklabel. I had to redo
the disklabel from the beginning a couple of times before I worked this out.

Second, it is a well known problem that either fdisk or the kernel (I think
it's just a missed out call to ioctl() in fdisk) will not re-scan the
disklabel after writing it, thus people have to reboot before it is
recognised.

Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.321 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site