Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* kernel sees disk, fdisk doesn't
@ 1997-11-15 22:41 Don Kitchen
  1997-11-16 14:53 ` Andreas Johansson
  0 siblings, 1 reply; 3+ messages in thread
From: Don Kitchen @ 1997-11-15 22:41 UTC (permalink / raw)


Well I hate to keep whining to the list about my install problems, but I've
made progress but I'm at an even more unusual spot. To recap:

I have an as255 running SRM. Redhat was ->NO<- help but I got the as255-srm.img 
from gatekeeper to boot from.

Then it wanted a ramdisk. The Redhat 4.2 CD image images/ramdisk didn't work 
(are we seeing the pattern yet?) but the one I got via ftp (from images/ on 
redhat ftp) does. So I'm into the install program now. But fdisk wigs out with 
my disk.

On bootup, this is what the linux kernel says:

scsi0:ncr53c8xx (rel 1.12c)
scsi: 1 host.
  Vendor: DEC  Model RZ26F ... Rev 630J
  Type: Direct-Access ANSI SCSI rev: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun0
  Vendor: DEC  Model RRD45 ... Rev 0436
  Type: CD-ROM  ANSI SCSI rev:02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun0
scsi: detected 1 SCSI cdrom 1 SCSI disk total
ncr53c810-0-<target 0, lun0>: FAST SCSI-2 100ns (10MB/sec) offset 8
SCSI device sda: hdwr sector-512 bytes. Sectors=2050860 [1001MB] [1.0 GB]

...
Partition check:
 sda: sda1 sda2 sda3 sda7

So there's obviously a disk there and since digital unix boots, it obviously 
works and the partitions are for real. But even though the linux kernel 
recognizes the disk, once I get into the fdisk program it says the disk has 0 
heads, 0 cylinders, etc, and shows a heading for the partition table but no 
entries.

It said it was using /tmp/sda, so I switched VT's and looked around. There's no 
/dev/sda, but /tmp/sda has major number 8 and minor number 0, in case anyone 
knows what the correct numbers are supposed to be.

Any suggestions on what to try? There's only one ramdisk.img but I assume that 
since the kernel claims to understand the disk, there's really no problem once 
I get to the kernel whether I'm using SRM or ARC or AlphaBIOS to get there. And 
it seems that the ramdisk image should work for any install kernel I can get 
going, but obviously I'm not an expert on this stuff.

Don

PS: many thanks to the people who've gotten me this far. I probably should 
collect all the responses, whether or not they helped, and submit them to be 
added to the FAQ/howto's. RedHat certainly isn't making much of a contribution 
as to how to do any of this stuff other than hosting the list itself.

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel sees disk, fdisk doesn't
  1997-11-15 22:41 kernel sees disk, fdisk doesn't Don Kitchen
@ 1997-11-16 14:53 ` Andreas Johansson
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Johansson @ 1997-11-16 14:53 UTC (permalink / raw)


On Sat, 15 Nov 1997, Don Kitchen wrote:

> Partition check:
>  sda: sda1 sda2 sda3 sda7
> 
> So there's obviously a disk there and since digital unix boots, it obviously 
> works and the partitions are for real. But even though the linux kernel 
> recognizes the disk, once I get into the fdisk program it says the disk has 0 
> heads, 0 cylinders, etc, and shows a heading for the partition table but no 
> entries.

Well, digital unix uses disklabels whereas fdisk by default uses the silly
msdos partition scheme. No such partitions are set up on your disk, so you
find no partitions.

You can make fdisk use the disklabel (like DU) by typing 'b' as in
   b   edit bsd disklabel

This should hopefully solve your problem.

Good luck!
  /Andreas

--

<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se                                       :
: S-mail: Andreas Johansson, Karhusvagen 5  6:618, 977 54 Lulea, SWEDEN :
:     Have you had your dose of 261.62 BogoMIPS today? - Run Alpha!     :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel sees disk, fdisk doesn't
@ 1997-11-17 16:32 Mike Howard
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Howard @ 1997-11-17 16:32 UTC (permalink / raw)


Just for the record, I have built a working, bootable Linux on an
as255 using SRM console.  This is RH 4.2 installed on /dev/sdb [not
/dev/sda].  Dec UNIX is on /dev/sda.

This has been derived via trial and error, reading this list, the
howto's and the RH doc [lame as it is].  RH tech support was no help;
they didn't even try to fake wrong answers.

Here's what I did.  Your mileage may vary.

0. buy a floppy drive.

1. Create boot and ramdisk floppies by copying the images in the
IMAGES directory of RH cdrom disk1.  use `avanti-s.img' and
`ramdisk.img'.  [the hint here is that the -s extensions refer to SRM
console.]

2. Boot the system as follows:

 a. at the srm prompt:
  >>> boot dva1

  This will boot up `aboot' in interactive mode.  You are supposed to
be able to pass parameters to aboot - and you can - but aboot has to
deduce device names and partitions and this does not always work
correctly.  I've found this is more forgiving of spelling mistakes.

 b. at the aboot prompt, boot the kernel:
  aboot: vmlinux.gz root=/dev/fd0 load_ramdisk=1 prompt_ramdisk=1

 when prompted, load the ramdisk.

 this takes you into the RH install.

3. RH install will use fdisk to partition the disk.  I found that I
could start the first partition a few cylinders in from the start of
the disk.

Important: write down the cylinder, head, and sector numbers.  I found
it convenient to change the fdisk units to blocks and write down the
fdisk table using raw block numbers.  I needed this because I had to
go back and rebuild the disk label using the BSD compatibility mode of
fdisk in order for `aboot' to be able to find things on the disk.

Question: it seems to me that you have to have BOTH an fdisk partition
table and a BSD compatible disk label on the disk in order for things
to work correctly.  Does anyone know if this is really true?

4. Finish the install.

At the end of the install, you are told to remove the floppy and
reboot the system.  This will not work.

5. Insert the floppy and boot the installed system using the floppy.

  a. at the SRM prompt:
  >>> boot dva1

  b. at the aboot prompt:
  >>> vmlinux.gz root=/dev/sdb1
 or wherever you put your system: e.g. /dev/sda1, etc.

6. Create the BSD disk label.  You do this by typing `fdisk /dev/sdb'
or `fdisk /dev/sda' or whatever.  Go to the BSD compatible section and
create your partitions.  I did it like this:

 a. changed the cylinder, head, and sectors/track numbers to match the
fdisk numbers I used.
 b. created an `unused' partition for partition `a' which spanned the
disk blocks I omitted from the `fdisk' partition table.
    created a `b' partition which spanned my Linux Native partition
    created a `c' partition which spans the whole disk - kind of a
      tradition
    created a `d' partition which spans my swap space.
  c. wrote the label to disk and exited.

This clobbers the disk geometry parameters for my `fdisk' partition
table, but it doesn't seem to matter.

7. Install the aboot package.  When I did it, the RH install did not
install aboot.  So:
  a. mount /mnt/cdrom
  b. cd /mnt/cdrom/RedHat/RPMS
  c. rpm -i aboot-0.5-1.axp.rpm

8. Install aboot using swriteboot:

Since my system is on /dev/sdb, I wrote:

 # swriteboot -f1 -f3 -v /dev/sdb /boot/bootlx /vmlinux.gz

You need the -f's in order to `force' overwriting partitions `a' and
`c'.  The -v is just so you can see the messages.

9. sync the disks and reboot.

This time, at the SRM prompt type:
  >>>boot dka1

This should boot `aboot'.  At the aboot prompt, I have to type:
  aboot: 0/vmlinux.gz root=/dev/sdb1

NOTES:

I installed vmlinux.gz in the boot block because that is the only way
aboot can find it other than on a floppy.  This is because I built an
ABNORMAL system by putting Linux on /dev/sdb.  `aboot' knows about
/dev/sda and is (supposed to be to) able to find vmlinux.gz on a
specified partition - read the aboot doc.  This doesn't work if your
system is not on /dev/sda, however - read the code.

Similarly, I have to specify where the root partition is every time.
Maybe I'll build a kernel and hack an aboot, and maybe not.

Hope this helps

-- 
Mike Howard <mike@clove.com>

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-11-17 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-15 22:41 kernel sees disk, fdisk doesn't Don Kitchen
1997-11-16 14:53 ` Andreas Johansson
  -- strict thread matches above, loose matches on Subject: below --
1997-11-17 16:32 Mike Howard

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