* Emergency: Is there a way to fix a partition table
@ 2004-09-27 5:35 Dark Shadow
2004-09-27 6:56 ` Sonny Rao
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Dark Shadow @ 2004-09-27 5:35 UTC (permalink / raw)
To: reiserfs-list
I don't have a backup of the partition table and was wondering if
there was a way to auto scan and have it come up with one. It had 2
partitions both reiserfs v3 and fully functioning Linux installs
I have made a dd image of the entire drive to work with
This is very important that I get it fixed since even though I have a
day old backup I got a couple files I really don't want to lose (9gb
of tv capturecard captures)and I need the system fully functioning in
a day
current output of table from fdisk
Command (m for help): p
Disk /dev/hda: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 ? 21975 164058 1074152739 0 Empty
Partition 1 does not end on cylinder boundary.
/dev/hda2 ? 168574 9274 943175203 be Solaris boot
Partition 2 does not end on cylinder boundary.
/dev/hda3 ? 201952 44474 956950144 0 Empty
Partition 3 does not end on cylinder boundary.
/dev/hda4 ? 1 1 0 4f QNX4.x 3rd part
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emergency: Is there a way to fix a partition table
2004-09-27 5:35 Emergency: Is there a way to fix a partition table Dark Shadow
@ 2004-09-27 6:56 ` Sonny Rao
2004-09-28 6:28 ` Dark Shadow
2004-09-27 17:11 ` Chris Mason
2004-09-28 21:22 ` Mark Knudson
2 siblings, 1 reply; 6+ messages in thread
From: Sonny Rao @ 2004-09-27 6:56 UTC (permalink / raw)
To: Dark Shadow; +Cc: reiserfs-list
On Mon, Sep 27, 2004 at 01:35:55AM -0400, Dark Shadow wrote:
> I don't have a backup of the partition table and was wondering if
> there was a way to auto scan and have it come up with one. It had 2
> partitions both reiserfs v3 and fully functioning Linux installs
>
> I have made a dd image of the entire drive to work with
>
> This is very important that I get it fixed since even though I have a
> day old backup I got a couple files I really don't want to lose (9gb
> of tv capturecard captures)and I need the system fully functioning in
> a day
>
http://packages.debian.org/unstable/admin/gpart
This program has worked for me in the past.
--
Sonny Rao
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emergency: Is there a way to fix a partition table
2004-09-27 5:35 Emergency: Is there a way to fix a partition table Dark Shadow
2004-09-27 6:56 ` Sonny Rao
@ 2004-09-27 17:11 ` Chris Mason
2004-09-28 21:22 ` Mark Knudson
2 siblings, 0 replies; 6+ messages in thread
From: Chris Mason @ 2004-09-27 17:11 UTC (permalink / raw)
To: Dark Shadow; +Cc: reiserfs-list
On Mon, 2004-09-27 at 01:35 -0400, Dark Shadow wrote:
> I don't have a backup of the partition table and was wondering if
> there was a way to auto scan and have it come up with one. It had 2
> partitions both reiserfs v3 and fully functioning Linux installs
>
> I have made a dd image of the entire drive to work with
>
> This is very important that I get it fixed since even though I have a
> day old backup I got a couple files I really don't want to lose (9gb
> of tv capturecard captures)and I need the system fully functioning in
> a day
Have you rebooted the system since you lost/overwrote the tables? A
common cause of this problem is to zero out the partition table by
accident. If you don't reboot, they are still in kernel ram and can be
retrieved.
-chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emergency: Is there a way to fix a partition table
2004-09-27 6:56 ` Sonny Rao
@ 2004-09-28 6:28 ` Dark Shadow
2004-09-28 18:39 ` Sonny Rao
0 siblings, 1 reply; 6+ messages in thread
From: Dark Shadow @ 2004-09-28 6:28 UTC (permalink / raw)
To: Sonny Rao, Dark Shadow, reiserfs-list
On Mon, 27 Sep 2004 02:56:08 -0400, Sonny Rao <sonny@burdell.org> wrote:
> On Mon, Sep 27, 2004 at 01:35:55AM -0400, Dark Shadow wrote:
> > I don't have a backup of the partition table and was wondering if
> > there was a way to auto scan and have it come up with one. It had 2
> > partitions both reiserfs v3 and fully functioning Linux installs
> >
> > I have made a dd image of the entire drive to work with
> >
> > This is very important that I get it fixed since even though I have a
> > day old backup I got a couple files I really don't want to lose (9gb
> > of tv capturecard captures)and I need the system fully functioning in
> > a day
> >
>
> http://packages.debian.org/unstable/admin/gpart
>
> This program has worked for me in the past.
>
> --
> Sonny Rao
>
Well using gpart to scan comes up with it guess as all unused
I tried having it scan the backup that lilo makes but it was a really
old version as in the file was dated 2002-04-18 which since I started
setting up that lfs install 2002-04-17 would of been created on first
install of lilo and has not been updated over time
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emergency: Is there a way to fix a partition table
2004-09-28 6:28 ` Dark Shadow
@ 2004-09-28 18:39 ` Sonny Rao
0 siblings, 0 replies; 6+ messages in thread
From: Sonny Rao @ 2004-09-28 18:39 UTC (permalink / raw)
To: Dark Shadow; +Cc: reiserfs-list
On Tue, Sep 28, 2004 at 12:28:52AM -0600, Dark Shadow wrote:
> On Mon, 27 Sep 2004 02:56:08 -0400, Sonny Rao <sonny@burdell.org> wrote:
> > On Mon, Sep 27, 2004 at 01:35:55AM -0400, Dark Shadow wrote:
> > > I don't have a backup of the partition table and was wondering if
> > > there was a way to auto scan and have it come up with one. It had 2
> > > partitions both reiserfs v3 and fully functioning Linux installs
> > >
> > > I have made a dd image of the entire drive to work with
> > >
> > > This is very important that I get it fixed since even though I have a
> > > day old backup I got a couple files I really don't want to lose (9gb
> > > of tv capturecard captures)and I need the system fully functioning in
> > > a day
> > >
> >
> > http://packages.debian.org/unstable/admin/gpart
> >
> > This program has worked for me in the past.
> >
> > --
> > Sonny Rao
> >
>
> Well using gpart to scan comes up with it guess as all unused
> I tried having it scan the backup that lilo makes but it was a really
> old version as in the file was dated 2002-04-18 which since I started
> setting up that lfs install 2002-04-17 would of been created on first
> install of lilo and has not been updated over time
That's interesting, it seemed to work almost too well for me last time
I tried it, in that it found other filesystems (i.e. in a file,
loopback, vmware, etc) that weren't occuping a "real" dos partition.
So, that seems to indicate gpart doesn't know the proper signature for
your filesystems.
Another, rather brute force attempt would be to guess the sizes and
just try to mount up the filesystems read-only. Basically, if you get
the start point of the partition right, it should mount up at least.
Then you can go back and find the end :)
Sonny
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emergency: Is there a way to fix a partition table
2004-09-27 5:35 Emergency: Is there a way to fix a partition table Dark Shadow
2004-09-27 6:56 ` Sonny Rao
2004-09-27 17:11 ` Chris Mason
@ 2004-09-28 21:22 ` Mark Knudson
2 siblings, 0 replies; 6+ messages in thread
From: Mark Knudson @ 2004-09-28 21:22 UTC (permalink / raw)
To: reiserfs-list
Dark Shadow wrote:
> I don't have a backup of the partition table and was wondering if
> there was a way to auto scan and have it come up with one. It had 2
> partitions both reiserfs v3 and fully functioning Linux installs
>
> I have made a dd image of the entire drive to work with
>
> This is very important that I get it fixed since even though I have a
> day old backup I got a couple files I really don't want to lose (9gb
> of tv capturecard captures)and I need the system fully functioning in
> a day
>
>
> current output of table from fdisk
>
> Command (m for help): p
>
> Disk /dev/hda: 40.0 GB, 40020664320 bytes
> 240 heads, 63 sectors/track, 5169 cylinders
> Units = cylinders of 15120 * 512 = 7741440 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 ? 21975 164058 1074152739 0 Empty
> Partition 1 does not end on cylinder boundary.
> /dev/hda2 ? 168574 9274 943175203 be Solaris boot
> Partition 2 does not end on cylinder boundary.
> /dev/hda3 ? 201952 44474 956950144 0 Empty
> Partition 3 does not end on cylinder boundary.
> /dev/hda4 ? 1 1 0 4f QNX4.x 3rd part
> Partition 4 does not end on cylinder boundary.
>
> Partition table entries are not in disk order
>
About a year ago I trashed my partition table.
I used a program called testdisk that searched the disk and
reconstructed a new one for me. Check out the following link.
http://www.cgsecurity.org/index.html?testdisk.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-09-28 21:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-27 5:35 Emergency: Is there a way to fix a partition table Dark Shadow
2004-09-27 6:56 ` Sonny Rao
2004-09-28 6:28 ` Dark Shadow
2004-09-28 18:39 ` Sonny Rao
2004-09-27 17:11 ` Chris Mason
2004-09-28 21:22 ` Mark Knudson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.