bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lost partition and segfaulted with parted...


From: Pigeon
Subject: Lost partition and segfaulted with parted...
Date: Fri, 30 Aug 2002 22:30:15 +1000
User-agent: Mutt/1.3.28i

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.

At the end, I was albe to get it segfault too. (I can still reproduce
the segfault now with the same way, but anyway)

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...

Thanks.


What I've done with parted:


(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      19092.907  19579.218  logical   linux-swap
8      19579.250  39079.995  logical   ext3
(parted) rm 7
Error: Error informing the kernel about modifications to partition
/dev/hda7 -
Device or resource busy.  This means Linux won't know about any changes
you made
to /dev/hda7 until you reboot - so you shouldn't mount it or use it in
any way
before rebooting.
Ignore/Cancel? c
Error: Error adding partition 7: Device or resource busy
(parted) rm 7
(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
(parted) quit

--------------------

Then I run parted again:

Using /dev/hda
Information: The operating system thinks the geometry on /dev/hda is
4982/255/63.  Therefore, cylinder 1024 ends at 8032.499M.
(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
(parted) rescue 19579.250 39079.995
Information: A hfs logical partition was found at 19583.404Mb ->
39073.810Mb.
Do you want to add it to the partition table?
Yes/No/Cancel? y
Error: Error informing the kernel about modifications to partition
/dev/hda7 -
Device or resource busy.  This means Linux won't know about any changes
you made
to /dev/hda7 until you reboot - so you shouldn't mount it or use it in
any way
before rebooting.
Ignore/Cancel? Ignore
(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.810  logical   hfs
(parted) rm 7
(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
Error: Error informing the kernel about modifications to partition
/dev/hda7 -
Device or resource busy.  This means Linux won't know about any changes
you made
to /dev/hda7 until you reboot - so you shouldn't mount it or use it in
any way
before rebooting.
Ignore/Cancel? Ignore
(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








reply via email to

[Prev in Thread] Current Thread [Next in Thread]