Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: BSD disklabel problem ...
Date: Mon, 13 Aug 2001 10:23:53 -0600	[thread overview]
Message-ID: <20010813102353.A6587@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <3B77E606.ADEB859A@astro.univie.ac.at>; from p.mittermayer@astro.univie.ac.at on Mon, Aug 13, 2001 at 04:36:54PM +0200

On Mon, Aug 13, 2001 at 04:36:54PM +0200, Peter Mittermayer wrote:
> 
> Finally  I succeeded in installing the ide disk. I booted redhat and
> started fdisk.

That would be the first time I heard of that fdisk influences if
a disk is accessible or not (I mean not partitions, which cannot
be seen if they do not exist, but a disk as a whole).

> I created a nsd disklabel (partition c only) taalking default values and
> switching type to 8 (ext2).

Why 'c'?   Do you want to imply by that that you put the whole disk
into that partition?

> Then I rebooted. The disk was recognized by
> the kernel and the partition as hda3. I used mke2fs to format the disk
> and (unfortunately) moved data from the old disk to the new one.

Your data still should be there unless you did something truly
destructive.  How about backups?

> After
> the next reboot however the disk was no longer accessible with the
> message 'corrupt partition table'.
> 
> What happened?

Who knows?  Somehow I have an impression that you are telling only a
small part of the story. Did you, by any chance, have done something
like 'swriteboot -f3 ...' without leaving a space for it?

OTOH maybe you simply have a bad disk cable and/or connectors?  That
would be consistent with intermitent failures.  In case you do not know
IDE specs allow for a maximum cable length of 18" (about 45 cm) but I
heard of cases when cables over 14" were too long.  With ATA disks and
80-wire cables this seems to be less popular but lots of older IDE parts
were barely within specs if not below.

> What can I do to repair the partition table?

If you roughly know parameters of your original partition table
then you can rewrite it back to the initial state as many times as
you wish.  This does not affect your data at all and, unless you did
something truly weird, your filesystem metadata as well.  Also
'gpart' utility (http://home.pages.de/~michab/gpart/) knows about
BSD disk label kind of partitioning as well.  Still first make sure
that your hardware actually works.

> How can I
> get my data back??

There are always things like 'mke2fs -S', 'debugfs' and 'dd' when things
are really messed up.  But hard disks do fail from time to time
totally irrespective of OS, kinds of partitioning and so on ...

  Michal




  reply	other threads:[~2001-08-13 16:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-13 14:36 BSD disklabel problem Peter Mittermayer
2001-08-13 16:23 ` Michal Jaegermann [this message]
2001-08-14  6:58   ` Gregor Maier
2001-08-14  8:08     ` Peter Mittermayer
2001-08-14  9:01       ` Gregor Maier
2001-08-14  9:17         ` Peter Mittermayer
2001-08-14  9:35           ` Gregor Maier
2001-08-14 15:49           ` Michal Jaegermann
2001-08-14 15:34     ` Michal Jaegermann
2001-08-13 16:36 ` unsubscribe Ing. Mario Alejandro Juárez Gutiérrez
2001-08-13 17:46 ` BSD disklabel problem Falk Hueffner
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox