* reading disklabeled disk on non-alpha machine?
@ 1999-05-10 5:21 allen
1999-05-12 2:05 ` Richard Henderson
0 siblings, 1 reply; 6+ messages in thread
From: allen @ 1999-05-10 5:21 UTC (permalink / raw)
To: axp-list
Normal disclaimer: I searched the archive as much as I could, and didn't
find anything applicable. Sorry if I missed anything.
So my Alphastation 200 that I'd been running as a web/email server for the
last year and a half or so had its power supply die on me. And to make a
long story short, I'm currently trying to access the data that (I hope) is
still on the disk that I was running there.
The problem is that my home Linux box, which is on an x86 system, can't seem
to read the disklabel on that drive that I pulled from the Alpha. I was
booting the Alphastation using the SRM console, so I had used the 'minlabel'
program to partition (or label, I suppose) the disk. Making sure that UFS
and BSD disklabel support was in my kernel didn't help; the best response that
I got was getting a corrupted partition table error when I had the SMD
disklabel option set.
My bit of research that I've done between then and sending this message has
turned up some referencs to the disklabel in question being a BSD disklabel
(which, since my x86 couldn't read the disk, would make me think that the
power supply took my disk out with it when it died), and some other
mentions of the OSF/DecUNIX disklabel being a related but different animal
(which might mean that my disk is still ok).
So the question is: has anyone ever accessed an Alpha Linux disklabeled
disk under an x86 system? If so, how? Should it have worked just with
support for BSD disklabels, or is there something else that I have to do?
Any help would be greatly appreciated.
-allen petersen
allen@suberic.net (currently existing as a VIF...)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: reading disklabeled disk on non-alpha machine?
1999-05-10 5:21 reading disklabeled disk on non-alpha machine? allen
@ 1999-05-12 2:05 ` Richard Henderson
1999-05-12 4:02 ` allen
0 siblings, 1 reply; 6+ messages in thread
From: Richard Henderson @ 1999-05-12 2:05 UTC (permalink / raw)
To: axp-list
On Mon, May 10, 1999 at 01:21:16AM -0400, allen@suberic.net wrote:
> So the question is: has anyone ever accessed an Alpha Linux disklabeled
> disk under an x86 system? If so, how? Should it have worked just with
> support for BSD disklabels, or is there something else that I have to do?
You forgot enable bsd disklabel support in your x86 kernel config.
r~
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: reading disklabeled disk on non-alpha machine?
1999-05-12 2:05 ` Richard Henderson
@ 1999-05-12 4:02 ` allen
1999-05-12 10:03 ` Quant-X Alpha Linux Support
0 siblings, 1 reply; 6+ messages in thread
From: allen @ 1999-05-12 4:02 UTC (permalink / raw)
To: axp-list
>
> On Mon, May 10, 1999 at 01:21:16AM -0400, allen@suberic.net wrote:
> > So the question is: has anyone ever accessed an Alpha Linux disklabeled
> > disk under an x86 system? If so, how? Should it have worked just with
> > support for BSD disklabels, or is there something else that I have to do?
>
> You forgot enable bsd disklabel support in your x86 kernel config.
>
I did have
CONFIG_BSD_DISKLABEL=y
set in my .config file when I compiled my kernel, so disklabel support _should_
be in there. Of course, I don't know of any way of testing that without
actually disklabeling another disk...
An interesting follow up: while fdisk followed by 'b' (to edit the bsd
disklabel) responded with the message
'There is no *BSD partition on /dev/sdb.'
I decided also to try minlabel. minlabel showed my disk's partition table
without a problem. Which makes me think that there's definitely some difference
between a standard BSD disklabel and the one that OSF/Linux-Alpha uses.
Now I suppose I get to figure out what the difference between the two is,
and then to get my kernel to recognize this one.
Or maybe I should just buy one of those new 264's.... :)
-allen
----------
Allen Petersen
allen@suberic.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: reading disklabeled disk on non-alpha machine?
1999-05-12 4:02 ` allen
@ 1999-05-12 10:03 ` Quant-X Alpha Linux Support
1999-05-12 20:10 ` allen
0 siblings, 1 reply; 6+ messages in thread
From: Quant-X Alpha Linux Support @ 1999-05-12 10:03 UTC (permalink / raw)
To: axp-list
Hi Allen !
On Wed, May 12, 1999 at 12:02:32AM -0400, allen@suberic.net wrote:
> I did have
>
> CONFIG_BSD_DISKLABEL=y
>
> set in my .config file when I compiled my kernel, so disklabel support _should_
> be in there. Of course, I don't know of any way of testing that without
> actually disklabeling another disk...
>
> An interesting follow up: while fdisk followed by 'b' (to edit the bsd
> disklabel) responded with the message
>
> 'There is no *BSD partition on /dev/sdb.'
Same here. I created a BSD disklabel with fdisk "b" on an DP264
and fdisk on a i386 ("b") did not dedect the label.
Fdisk does _not_ depend on CONFIG_BSD_DISKLABEL only the kernel should
do. It also does not depend on the fdisk version (that creates the label)
because the labels created with v2.4 or v2.8 are exactly identical.
--
ciao -
Stefan Traby
Quant-X Alpha Linux Support
Quant-X Service & Ph: (+43) 4212 90555-0
Consulting Ges.m.b.H. Fax: (+43) 4212 90555-555
http://www.quant-x.com Email: support@quant-x.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: reading disklabeled disk on non-alpha machine?
1999-05-12 10:03 ` Quant-X Alpha Linux Support
@ 1999-05-12 20:10 ` allen
1999-05-14 4:39 ` allen
0 siblings, 1 reply; 6+ messages in thread
From: allen @ 1999-05-12 20:10 UTC (permalink / raw)
To: axp-list
Hi Stefan.
> Same here. I created a BSD disklabel with fdisk "b" on an DP264
> and fdisk on a i386 ("b") did not dedect the label.
>
> Fdisk does _not_ depend on CONFIG_BSD_DISKLABEL only the kernel should
> do. It also does not depend on the fdisk version (that creates the label)
> because the labels created with v2.4 or v2.8 are exactly identical.
>
Well, at least it's good to hear that it's not just me. :)
Actually, just got a chance to browse through the kernel source. Seems that
drivers/block/genhd.c has a section for CONFIG_OSF_PARTITION. I think that
I may try that out tonight...
-allen
-----------
Allen Petersen
allen@suberic.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: reading disklabeled disk on non-alpha machine?
1999-05-12 20:10 ` allen
@ 1999-05-14 4:39 ` allen
0 siblings, 0 replies; 6+ messages in thread
From: allen @ 1999-05-14 4:39 UTC (permalink / raw)
To: axp-list
So I did managed to get my Alpha disklabeled drive to read under x86 Linux.
The quick summary is that I went into include/linux/genhd.h in my kernel
source directory and removed the
#ifdef __alpha__
#endif
lines from around
#define CONFIG_OSF_PARTITION 1
which means that I'd have the OSF paritition support that's available in
drivers/block/genhd.c enabled no matter what my platform. Then I
recompiled the kernel, and was able to access all of my partitions.
Reading through genhd.c was quite interesting, by the way. Especially if
you've dealt with partition issues before...
Thanks to all those who helped.
-allen
----------
Allen Petersen
allen@suberic.net
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-05-14 5:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-10 5:21 reading disklabeled disk on non-alpha machine? allen
1999-05-12 2:05 ` Richard Henderson
1999-05-12 4:02 ` allen
1999-05-12 10:03 ` Quant-X Alpha Linux Support
1999-05-12 20:10 ` allen
1999-05-14 4:39 ` allen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox