From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 28F842F1EF for ; Mon, 13 Aug 2001 12:24:04 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f7DGIIk22554 for axp-list@listman.redhat.com; Mon, 13 Aug 2001 12:18:18 -0400 Received: from ellpspace.math.ualberta.ca (IDENT:michal@ellpspace.math.ualberta.ca [129.128.207.67]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f7DGIIg22550 for ; Mon, 13 Aug 2001 12:18:18 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.9.3/8.9.3) id KAA06612 for axp-list@redhat.com; Mon, 13 Aug 2001 10:23:53 -0600 Date: Mon, 13 Aug 2001 10:23:53 -0600 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: BSD disklabel problem ... Message-ID: <20010813102353.A6587@ellpspace.math.ualberta.ca> References: <3B77E606.ADEB859A@astro.univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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