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 A88FF2F0CD for ; Tue, 14 Aug 2001 02:58:40 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f7E6quF30711 for axp-list@listman.redhat.com; Tue, 14 Aug 2001 02:52:56 -0400 Received: from enterprise2.newlogic.com (enterprise2.newlogic.at [194.208.88.1]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f7E6qtg30707 for ; Tue, 14 Aug 2001 02:52:56 -0400 Received: from enterprise2.newlogic.com (enterprise2 [194.208.88.1]) by enterprise2.newlogic.com (8.9.2/8.9.2) with ESMTP id IAA23369 for ; Tue, 14 Aug 2001 08:58:33 +0200 (MET DST) Received: from ultra5-25.newlogic.at (ultra5-25.newlogic.at [194.208.88.125]) by enterprise2.newlogic.com (8.9.2/8.9.2) with ESMTP id IAA23365 for ; Tue, 14 Aug 2001 08:58:33 +0200 (MET DST) Received: (from gmaier@localhost) by ultra5-25.newlogic.at (8.9.3+Sun/8.9.3) id IAA04711 for axp-list@redhat.com; Tue, 14 Aug 2001 08:58:19 +0200 (MEST) Message-ID: X-Mailer: XFMail 1.4.7p2 on Solaris X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <20010813102353.A6587@ellpspace.math.ualberta.ca> Date: Tue, 14 Aug 2001 08:58:19 +0200 (MEST) From: Gregor Maier To: axp-list@redhat.com Subject: Re: BSD disklabel problem ... 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: I also experienced some problems with bsd disklabels. Every time I used BSD disklabels on the second disk (sdb) it went fine for some time. But after 2 or 3 reboots the partiton table was gone. After restoring the partition table it was the same again. I saw this in several AS200 and AS2000 machines. AFAIK never used the c partition. And I never had any problems with bsd disklabels on the first disk. I also tried to leave about 5 MB free altough I didn't install aboot there (but just to make sure it isn't that problem). Maybe a problem with fdisk? Because I know of the fdisk bug (I think this is corrected now) that shows to much sectors in fdisk while in BSD disklabel mode - so I left the last sector free. Gregor On 13-Aug-2001 Michal Jaegermann wrote: > 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 > > > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list ---------------------------------- E-Mail: Gregor Maier Date: 14-Aug-2001 Time: 08:52:31 ----------------------------------