Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Loading a UDB - HOWTO
  1997-05-17 15:49 Streamer hang Michal Jaegermann
@ 1997-05-17 16:10 ` Paul B. Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Paul B. Brown @ 1997-05-17 16:10 UTC (permalink / raw)


Hi Gang,

The following is the first draft of "How to Load RedHat Alpha/Linux 4.1
on a UDB from Scratch".  Please give comments, corrections, observations,
etc. to me and I will make the changes needed.

Thanks all:

                     To Install RedHat Linux 4.1 on a UDB
                     ====================================

A. PRE-INSTALLATION SETUP
   ----------------------

1.  Get 5 MS-DOS formatted 3.5" (1.44MB) diskettes
2.  Label diskette #1: UDB/Milo Boot Disk
3.  Label diskette #2: UDB/Noname Boot Disk
4.  Label diskette #3: UDB/Noname Root Disk
5.  Label diskette #4: UDB Firmware Update 4.3.3
6.  Label diskette #5: UDB Failsafe Loader
7.  Load the RedHat Linux 4.1 CD-ROM into another Linux box that has a CD
    Drive.
8.  mount -r -t iso9660 /dev/cdrom /mnt/cdrom
9.  Insert diskette #1 into the diskette drive of the other Linux box that
    the CD is mounted on.
10. mount -t msdos /dev/fd0 /mnt/floppy
11. cp /mnt/cdrom/milo/arc/linload.exe /mnt/floppy
12. cp /mnt/cdrom/milo/noname-udb/milo /mnt/floppy
13. umount /mnt/floppy
14. Remove diskette #1 from the drive.
15. Insert diskette #2 into the same drive.
16. cd /mnt/cdrom/images
17. dd if=noname.img of=/dev/fd0 bs=1440k
18. Remove diskette #2 from the drive.
19. Insert diskette #3 into the same drive.
20. dd if=ramdisk.img of=/dev/fd0 bs=1440k
21. Remove diskette #3 from the drive.
22. Insert diskette #4 into the same drive.
23. umount /mnt/cdrom
24. Remove the RedHat Linux 4.1 CD from the drive.
25. cd /tmp
26. mkdir udb
27. cd udb
28. Dial into your ISP
29. ftp ftp.digital.com
30.     ftp> cd /pub/Digital/Alpha/firmware/interim/multia
31.     ftp> get readme.txt
32.     ftp> get udbfs138.img
33.     ftp> get udbupd38.img
34.     ftp> quit
35. Disconnect from the Internet
36. dd if=udbupd38.img of=/dev/fd0h1440 bs=10240
37. Remove diskette #4 from the drive.
38. Insert diskette #5 into the same drive.
39. dd if=udbfsl38.img of=/dev/fd0h1440 bs=10240
40. Remove diskette #5 from the drive.
41. Now read the readme.txt file you just downloaded and skip to section:
       Firmware Install/Update
42. Bring up your UDB for the first time and follow the directions in the
    readme.txt file.
43. Make sure you are now running version 4.3.3 of the firmware.  That is
    the latest and greatest.
44. Turn off your UDB.
45. Make sure a CD-ROM drive is attached to your UDB
46. Insert the RedHat Linux 4.1 CD into the CD-ROM drive.
47. Turn on your UDB
48. You will come to a "Boot Menu"
49. Select "Supplementary Menu..."
50. Select "Setup the System..."
51. Select "Manage Boot Selection Menu..."
52. Select "Add a Boot Selection..."
53. Select "Floppy Disk 0" if that option is there.
    If not there then,
    53.1. Select "New System Partition"
    53.2. Select "Floppy Disk"
    53.3. The drive number to select is: 0
54. At the prompt: "Enter the OS loader directory and name:", type:
    \linload.exe
55. Respond "yes" to the OS being on the same partition as the OS loader.
56. Enter "\" as the OS root directory.
57. Enter "Linux" as the name for the boot partition.
58. Select "No" when  asked if we want the debugger initialized at boot
    time.
59. We should now be back to the "Boot Selection menu"
60. Select "Change a Boot Selection"
61. Select "Linux" 
62. Using the up and down arrow keys to move, RETURN to select, and ESC to
    leave, make the setting look like:

    LOADIDENTIFIER=Linux
    SYSTEMPARTITION=multi(0)disk(0)fdisk(0)
    OSLOADER=multi(0)disk(0)fdisk(0)\linload.exe
    OSLOADPARTITION=multi(0)disk(0)fdisk(0)
    OSLOADFILENAME=\noname.arc
    OSLOADOPTIONS=

63. When finished, press ESC to back out to the "Supplementary Menu"
64. Save the changes.
63. Press ESC to back out to the "Boot Menu"
64. Insert diskette #1 into the UDB's diskette drive.
65. Select "Boot Linux"
66. The MILO> prompt will eventually appear.
67. Remove diskette #1 from the drive.
68. Insert diskette #2 into the UDB's diskette drive.
69. At the MILO> prompt, type:

    boot fd0:vmlinux.gz root=/dev/fd0 load_ramdisk=1 prompt_ramdisk=1

70. Press RETURN and the system will begin the boot process.
71. After a short while, the system will prompt for diskette #3.
72. Remove diskette #2 from the drive.
73. Insert diskette #3 into the UDB's diskette drive and press RETURN.
74. In about a minute you should come up to:

    "Welcome to RedHat"

B. INSTALLATION SETUP:
   ------------------

75. Pull out the RedHat Alpha/Linux 4.1 Users Manual and use it to help
    you load the system.  The sore spot here is partitioning the drive.
    If you don't know the number of heads, cylinders, and sectors for your
    SCSI drive, you will need to figure them out or you will get nowhere.
    At the end of this document there is a small C program that needs only
    the number of bytes of the formatted SCSI disk and it will give the
    user the head/cylinder/sector counts needed.  Once you are past the
    disk partitioning stage, the rest of the installation is magically
    simple.  Bear in mind what your intended use is for the machine or,
    like me, you will load a lot of superfluous rubish you will never use.

    I do suggest a disk partitioning of at least the following:

    Partition   Device    Size in MBs      Filesystem Type       Mount
    ---------  ---------  -----------  -----------------------  -------
        1      /dev/sda1  2 MB         DOS 16-bit <32M (id=4)    /dosc
        2      /dev/sda2  Same as RAM  Linux Swap      (id=82)
        3      /dev/sda3  > 50 MB      Linux native    (id=83)   /
        4      /dev/sda4  Remainder    Linux native    (id=83)   /usr

    The reason for the first partition is to have linload.exe and milo on
    it's own partition.  I do this in leau of putting linload.exe and milo
    into flashROM.  You mess up flashROM, you will have a nice UDB paper
    weight.

    NOTE: Do NOT set any partition as bootable.  This is not needed due to
          the way ARC works with linload.exe and milo.

76. When the loading in complete and you can login to your new UDB as root.
77. Insert diskette #1 into the UDB's diskette drive.
78. dd if=/dev/fd0 of=/dev/sda1 bs=1440k
    - This copies linload.exe and milo to your 2 MB DOS partition.  It will
      also format 1,440k worth of the space for you.  Two bird with one
      stone.
79. Remove diskette #1 from the drive.
80. Store all 5 diskettes in a safe place.
81. Edit /etc/fstab and insert the following lines at the end of the file:

    /dev/fd0   /mnt/floppy  msdos    noauto  0  0
    /dev/scd0  /mnt/cdrom   iso9660  noauto  0  0

82. Save and exit the file, /etc/fstab.
83. Shutdown the UDB: shutdown -h now

C. POST-INSTALLATION SETUP:
   -----------------------

84. Start the UDB.
85. You will come to a "Boot Menu"
86. Select "Supplementary Menu..."
87. Select "Edit Environment Variables..."
88. Using the up and down arrow keys to move, RETURN to select, and ESC to
    leave, make the setting look like:

    CONSOLEIN=multi()key()keyboard()console()
    CONSOLEOUT=multi()video()monitor()console()
    FWSEARCHPATH=scsi(0)disk(0)rdisk(0)paritition(1)
    TIMEZONE=EST5EDT
    A:=multi(0)disk(0)fdisk(0)
    FLOPPY=1
    FLOPPY2=N
    KEYBOARDTYPE=0
    AUTOLOAD=YES
    COUNTDOWN=15
    LANG_ID=1
    ENABLEPCIPARITYCHECKING=FALSE
    LASTFIRMWAREREVISION=4.33
    DISABLEPCIPARITYCHECKING=FALSE
    OSLOADFILENAMENONAME.IMG=noname.img

    Some of thse setting will vary depending on your setup.  TIMEZONE will
    change for obvious reasons.  You may have a second floppy drive so
    FLOPPY2 may be set to Y.  I like my COUNTDOWN to AUTOBOOT to be 15
    seconds.  You may want it set to some other delay or you may just turn
    AUTOLOAD to NO.  LANG_ID=1 means English.  This may not be good for you
    so . . . change it.  The last 2 entries, DISABLEPCIPARITYCHECKING and
    OSLOADFILENAMENONAME.IMG, may not even show up on your list.  If then
    don't, then don't mess with them.

89. When finished, press ESC to back out to the "Supplementary Menu"
90. Select "Manage Boot Selection menu..."
91. Select "Change A Boot Selection..."
92. Select "Linux"
93. Using the up and down arrow keys to move, RETURN to select, and ESC to
    leave, make the setting look like:

    LOADIDENTIFIER=Linux
    SYSTEMPARTITION=scsi(0)disk(0)rdisk(0)partition(1)
    OSLOADER=scsi(0)disk(0)rdisk(0)partition(1)\linload.exe
    OSLOADPARTITION=scsi(0)disk(0)rdisk(0)partition(1)
    OSLOADFILENAME=\milo
    OSLOADOPTIONS= boot sda3:vmlinux.gz root /dev/sda3

94. When finished, press ESC to back out to the "Boot Seelctions Menu..."
95. Select "Verify Boot Selections"
    - If the screen winks out and back on and does nothing further then
      your setup has been checked and verified.
    - If there is a report of errors then go back to the two settings areas
      and try again until this option only on flashes at you signifying all
      is well.
96. When the boot selection has been verified successfully, press ESC back
    to the "Setup Menu"
97. Select "Supplementary Menu and Save Changes..."
    - Make sure you save changes of all is well and don't save changes if
      things went haywire!
98. At the Supplementary Menu, Select "Boot Menu..."
99. If all went well, at the Boot Menu, select "Boot Linux"
100. And now the funs begin . . . . :-)

-- CUT HERE --

 #include <stdio.h>

/******************************************************************************
 *
 * Source Code: calc_hcs.c
 *
 * compile/link statement: gcc -o calc_hcs calc_hcs.c
 *
 * Description: This program will calculate the heads/cylinders/sectors on
 *              a Linux SCSI drive.  Simply Change the define statement
 *              below, DISK_SIZE, specifying the size, in bytes, of the
 *              formatted SCSI drive, compile it, run it, and your done!
 *              Future version will need to be updated based on the info
 *              given in the SCSI HOWTO and the Large Disks mini-HOWTO.
 *
 * History:
 *
 * Who          Date    Comment
 * -----------  ------  ---------------------------------------------------
 * Paul Brown   970511  Initial version 0.1b
 *
 ******************************************************************************/

/*
 * Change this setting when you wish to calculate a new drive.  It should be
 * the size of the formatted drive in bytes.
 */
#define DISK_SIZE (long) 345090000           /* Maxtor 7345S - 342 MB */

/*
 * Standard setting - DO NOT TOUCH
 */
#define BYTES_PER_SECTOR (long) 512

/*
 * These settings are right out of the SCSI HOWTO.  These are the max settings
 * Linux will understand for SCSI drives.  With these settings you cannot have
 * a SCSI drive more than 8 formatted Gigabytes in size.  Bummer!
 */
#define MAX_HEADS     (long)  256
#define MAX_CYLINDERS (long) 1024
#define MAX_SECTORS   (long)   63

main() {
   long disk_size;
   long cur_guess;
   long heads;
   long cylinders;
   long sectors;
   long best_heads;
   long best_cylinders = (long) 0;
   long best_sectors = (long) 0;
   long best_guess = (long) 0;

   best_guess = disk_size = DISK_SIZE / BYTES_PER_SECTOR;

   for (heads = (long) 1; heads <= MAX_HEADS; heads++) {
      for (cylinders = (long) 1; cylinders <= MAX_CYLINDERS; cylinders++) {
         for (sectors = (long) 1; sectors <= MAX_SECTORS; sectors++) {
            cur_guess = disk_size - (heads * cylinders * sectors);

            if (cur_guess < (long) 0) break;

            if (cur_guess == (long) 0)
               printf("DIRECT HIT -> %ld/%ld/%ld (heads/cylinders/sectors)\n",
                       heads, cylinders, sectors);

            if (cur_guess < best_guess) {
               best_heads     = heads;
               best_cylinders = cylinders;
               best_sectors   = sectors;
               best_guess     = cur_guess;
            }
         }
      }
   }
/*
 * I pick the first direct hit to be the best guess because I have a preference
 * for the lowest number of heads.  Just a quirk of mine . . . .. ;->
 */
   printf("BEST GUESS -> %ld/%ld/%ld (heads/cylinders/sectors)\n",
           best_heads, best_cylinders, best_sectors);

   exit(0);
}

-- CUT HERE --

[Paul B. Brown, Copyright 1997]

---------------------------------------------------------------------------
Paul B. Brown                          "Sailing is a state of mind . . . ."
pbrown@btechnet.com                    Unix Systems Administration
---------------------------------------------------------------------------

--
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] 4+ messages in thread

* Re: Loading a UDB - HOWTO
       [not found] <Pine.LNX.3.95.970517120614.7928A-100000@btc.btechnet.com>
@ 1997-05-17 17:48 ` Michal Jaegermann
  1997-05-23 13:15 ` Vernard Martin
  1997-08-04 10:56 ` RedHat 4.2 failing to install on a UDB Huw Davies
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1997-05-17 17:48 UTC (permalink / raw)


>     The sore spot here is partitioning the drive.
>     If you don't know the number of heads, cylinders, and sectors for your
>     SCSI drive, you will need to figure them out or you will get nowhere.
>     At the end of this document there is a small C program....

This was repeated on this list over and over but it comes back like
a ghost in a bad thriller series.  Linux really does not care very
much about details in this information.  Put
Head    64
Sectors 32
Cylinders - as may as megabytes, real and not "marketting" ones, on your
disk.

Did anybody ever encountered a situation when this truly does not work?

>     OSLOADOPTIONS= boot sda3:vmlinux.gz root /dev/sda3
                                             ^^^^
                     Does this really work with a blank instead of '='
                     sign here? Or this is a typo?

  Michal

--
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] 4+ messages in thread

* Re: Loading a UDB - HOWTO
       [not found] <Pine.LNX.3.95.970517120614.7928A-100000@btc.btechnet.com>
  1997-05-17 17:48 ` Loading a UDB - HOWTO Michal Jaegermann
@ 1997-05-23 13:15 ` Vernard Martin
  1997-08-04 10:56 ` RedHat 4.2 failing to install on a UDB Huw Davies
  2 siblings, 0 replies; 4+ messages in thread
From: Vernard Martin @ 1997-05-23 13:15 UTC (permalink / raw)


> The following is the first draft of "How to Load RedHat Alpha/Linux 4.1
> on a UDB from Scratch".  Please give comments, corrections, observations,
> etc. to me and I will make the changes needed.

May I add this to my UDB FAQ that I'm creating?

V

-----------------------------------------------------------------------------
Vernard Martin (vernard@cc.gatech.edu) www.cc.gatech.edu/people/home/vernard/
---===  1997 Atlanta Linux Showcase      June 7 & 8       Atlanta, GA ===---
---===  For more information visit us at http://www.ale.org/showcase ===---

--
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] 4+ messages in thread

* RedHat 4.2 failing to install on a UDB
       [not found] <Pine.LNX.3.95.970517120614.7928A-100000@btc.btechnet.com>
  1997-05-17 17:48 ` Loading a UDB - HOWTO Michal Jaegermann
  1997-05-23 13:15 ` Vernard Martin
@ 1997-08-04 10:56 ` Huw Davies
  2 siblings, 0 replies; 4+ messages in thread
From: Huw Davies @ 1997-08-04 10:56 UTC (permalink / raw)


I'm trying to do an ftp install of RedHat 4.2 onto a UDB which up until
recently has had 4.0 installed on it. I decided to do a complete new
install as I thought it might be easier...

The system already has MILO installed (built against 2.0.18) and I've got
new noname and ramdisk floppies. I start milo and insert the floppies at
the appropriate times and get into the RedHat install. I setup to talk to
my ftp server and things go swimmingly. I get to the stage where it detects
the two disks (a 540Mb internal which I use for NT) and a 1Gb external. 

The external disk is already partitioned with 3 partitions which I plan to
use for /, swap and /usr. (/dev/sdb1, /dev/sdb2 and /dev/sdb3
respectively). I create the swap partition and then in the mount disks
dialogue I setup sdb1 as /, sdb3 as /usr and /dev/sda1 as /dos. Filesystems
are created on sdb1 and sdb3 and then the install fails with "invalid mount
point". I thought this might have been related to the /dos partition so I
tried again without specifying this, but to no avail.

I've never had this problem before in installing 4.2 on my XL300, so I
guess I'm asking to be told what important thing I forgot :-) I've even
checked the UDB installation HOWTO and reread the RedHat Installation Guide
- things are getting desperate! The real problem is that I promised that
this system would be up tomorrow to allow a number of other users to
install 4.2 on their new XL300s - me and my big mouth.

 Huw Davies                      | e-mail: Huw.Davies@latrobe.edu.au
 Information Technology Services | Phone: +61 3 9479 1550  Fax: +61 3 9479
1999
 La Trobe University             | "My Alfas keep me poor in a monetary
 Melbourne Australia 3083        | sense, but rich in so many other ways"

--
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] 4+ messages in thread

end of thread, other threads:[~1997-08-04 10:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.3.95.970517120614.7928A-100000@btc.btechnet.com>
1997-05-17 17:48 ` Loading a UDB - HOWTO Michal Jaegermann
1997-05-23 13:15 ` Vernard Martin
1997-08-04 10:56 ` RedHat 4.2 failing to install on a UDB Huw Davies
1997-05-17 15:49 Streamer hang Michal Jaegermann
1997-05-17 16:10 ` Loading a UDB - HOWTO Paul B. Brown

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