[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lost partition and segfaulted with parted...
From: |
Andrew Clausen |
Subject: |
Re: Lost partition and segfaulted with parted... |
Date: |
Sat, 31 Aug 2002 12:01:53 +1000 |
User-agent: |
Mutt/1.4i |
On Fri, Aug 30, 2002 at 10:30:15PM +1000, Pigeon wrote:
> Hi.
>
> parted 1.6.3 on kernel 2.4.19
>
> I was about to do some resizing/reorganizing of a hdd with parted.
>
> Basically I've got weird results, and
> lost a partition. I tried to rescue it, but it detected a hfs, instead
> of ext3.
Ah, I see where you got confused. You thought because you pressed
cancel, you were cancelling the deletion, but you were actually
cancelling the process of informing the kernel about changes.
When you retried, you deleted another partition.
This is all very unfortunate, but I can't think of a way to improve
the user interface to fix this problem.
Perhaps the partition table should be displayed after each command?
Or perhaps each time the table is modified? I guess that doesn't fit
with the unix tradition, but perhaps that's less important. Comments?
> At the end, I was albe to get it segfault too. (I can still reproduce
> the segfault now with the same way, but anyway)
Ouch!
> I guess the most important thing is to rescue that lost partition.
> Directions will be appreciated, as I'm not familiar with various fs
> tools like debugfs, etc...
Right, it should be easy to recover :)
This is the partition, right?
> 8 19579.250 39079.995 logical ext3
> (parted) rescue
> Start? 19579
> End? 39079
> Information: A hfs logical partition was found at 19583.404Mb ->
> 39073.312Mb.
> Do you want to add it to the partition table?
> Yes/No/Cancel? Yes
Wrong answer. Delete this partition, and say "No" next time.
You want something that matches what you wrote above.
> (parted) print
> Disk geometry for /dev/hda: 0.000-39083.625 megabytes
> Disk label type: msdos
> Minor Start End Type Filesystem Flags
> 1 0.031 15.688 primary ext3 boot
> 2 15.688 39079.995 extended
> 5 15.719 9554.282 logical ext3
> 6 9554.313 19092.875 logical ext3
> 7 19583.404 39073.312 logical hfs
> (parted) check 7
> No Implementation: Support for opening hfs file systems is not
> implemented yet.
> (parted) mkpart logical ext3 19579.250 39079.995
> Warning: You requested to create a partition at 19579.250-39079.995Mb.
> The
> closest Parted can manage is 19571.405-19579.218Mb.
> OK/Cancel? Cancel
> Segmentation fault
Obviously, this was never going to work... it overlaps!
But, it shouldn't seg-fault. I found/fixed that bug now. Thanks :)
Thanks,
Andrew