Quick - Puppy Resources

More later

Two topics so far:
Grub files and configuration, and
Windows 98 DOS configuration


Grub files and Configuration

File grub-floppy.scr, Select the file with the right mouse button and choose to download the file (usually something like "copy link target" or "copy link location". This script creates a grub boot floppy disk IF you already have grub files installed at /boot/grub.

how to USE a generic grub boot disk. Here is what you do:

1. Boot from the Grub floppy

2. Enter (without the quotes) "root (hd0,0)"
Explanation. This will cause grub to look for the grub files on hda1 (first drive, 1st partition) in /boot/grub)

3a. Enter "kernel /boot/vmlinuz root=/dev/hda1"
Explanation. This if for a type 2 hard drive install at hda1 where vmlinuz is in the /boot directory

or

3b. Enter "kernel /vmlinuz root=/dev/ram0 PFILE=pup1-none-524288 PHOME=hda1"
and Enter "initrd /image.gz" Explanation. This is for a type 1 hard drive install at hda1 where all the files are in the root / directory and the home file is named pup1 and is 512 meg.

4. Enter "boot"

These are identical (except for "boot") to the commands you would place in /boot/grub/menu.lst

This is a way to boot the first time, or anytime your /boot/grub/menu.lst has an error that won't let you boot, or if Grub isn't installed in the MBR. Once menu.lst is correct, you won't need the floppy anymore. I'll add these instructions to the files I've placed on the web at http://hopeanglican.us/puppy/

bootgrub.tgz, Download this file and place in boot. From /boot type "tar xvzf bootgrub.tgz" and the files will be installed into "grub" directory. This will overwrite any identical files that may be in such a directory, so back them up if you have any and may need them. These are the files from my Puppy's /boot/grub directory. It includes booting a type 1 hard drive installation from /dev/hda1 and a type 2 hard drive installation from /dev/hda5. It also boots Windows/Dos from /dev/hda1 and can also install Grub for you in your MBR. All disclaimers apply. Your mileage may vary. Good luck.

Now you can install Grub onto your MBR. To do this, boot from the Grub floppy (above).

At the prompt, enter "root (hdx,y) where x = the drive number (0 = 1 or a) and y= the partition number (first partition is 0 and so on). Example - if you have installed the grub files at /boot/grub on hda4, then "root (hd0,3)"

Then enter find /boot/grub/stage1

Then, DO IT, enter setup (hd0) will install Grub as your boot manager on hda1.


Windows 98 DOS Configuration

How do you boot to Windows 98's DOS and keep the default memory managers from screwing up loading Linux from the DOS command line?

First - to keep Windows 98 from booting into the gui, you need to edit the file msdos.sys

This isn't as easy as it sounds. msdos.sys is a read only, system, hidden file. So, first, change the attributes as follows:

attrib -h -r -s msdos.sys

Then, edit the file and change the text BootGUI=1 to BootGUI=0 as shown below. The entire msdos.sys file shown below.

------ cut here ------

[Paths]
WinDir=C:\WINDOWS
WinBootDir=C:\WINDOWS
HostWinBootDrv=C
UninstallDir=C:\

[Options]
BootMulti=0
BootGUI=0
Logo=0
;
;The following lines are required for compatibility with other programs.
;Do not remove them (MSDOS.SYS needs to be >1024 bytes).
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxe
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxg
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxh
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxi
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxj
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxk
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxl
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxm
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxn
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxp
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxq
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxs
DoubleBuffer=1
AutoScan=1
WinVer=4.10.2222

------ end of cut here ------

After you save the file, change the attributes back with:

attrib +h +r +s msdos.sys

Now, when you boot up, you system will leave you at the DOS prompt:

C:\>

You can enter the Windows GUI by typing "win."

======

Now you can add a menu. Copies of my config.sys and autoexec.bat files are shown below. Change to suit your tastes and your installation.

------ config.sys cut here ------

[menu]
menuitem=win, Load Windows 98 GUI
menuitem=dos, Load MS-DOS 7
menuitem=puppy, Load Puppy/Linux
menuitem=clean, Load Clean Boot
menuitem=pcmcia, PCMCIA
menucolor=7,1

[clean]
dos=noauto

[pcmcia]
dos=noauto
DEVICE=C:\CDRW\ARICDF.EXE /P:320 /D:MSCD001

[puppy]
dos=noauto

[dos]
LASTDRIVE=Z
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
device=c:\windows\emm386.exe noems d=64
DOS=HIGH,UMB
DEVICEHIGH=C:\WINDOWS\SETVER.EXE
devicehigh=c:\windows\command\ansi.sys

[win]
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DOS=HIGH,UMB
DEVICEHIGH=C:\WINDOWS\SETVER.EXE
lastdrive=g
DEVICE=C:\WINDOWS\Panning.SYS

------ end of config.sys cut here ------

------ autoexec.bat cut here ------

date
time

if %CONFIG% ==dos goto dos
if %CONFIG% ==win goto win
if %CONFIG% ==puppy goto puppy
if %CONFIG% ==clean goto clean
if %CONFIG% ==pcmcia goto pcmcia

:clean
SET BLASTER = A220 I5 D0
goto end

:pcmcia
C:\DOS\MSCDEX.EXE /D:MSCD001 /M:4
goto end

:dos
prompt $e[1;36;44m
cls
prompt $p$g
SET BLASTER = A220 I5 D0
path C:\WINDOWS;C:\WINDOWS\COMMAND;c:\pkzip;c:\dos
rem - By Windows Setup - lh c:\windows\system\mouse.com
rem lh c:\dos\mouse /c1
lh C:\WINDOWS\COMMAND\doskey
goto end

:win
SET BLASTER = A220 I5 D0
path C:\WINDOWS;C:\WINDOWS\COMMAND;c:\pkzip;c:\dos
win
goto end

:puppy
rem This block for IDE drives, needs file pupxide to identify...
if NOT EXIST C:\pupxide goto end
echo on
rem Loading vmlinuz and image.gz from the C: drive...
rem c:\puppy\tiny.exe c:\vmlinuz c:\image.gz root=/dev/ram0 PFILE=pup080-none-262144
rem c:\puppy\tiny.exe c:\vmlinuz c:\image.gz root=/dev/ram0 PFILE=pup080-none-131072
c:\puppy\tiny.exe c:\vmlinuz c:\image.gz root=/dev/ram0 PFILE=pup080-none-65536
rem c:\mandrake\loadlin  c:\vmlinuz initrd=c:\image.gz root=/dev/ram0 append PHOME=hda1 PFILE=pup080-none-65536
goto end

:end

------ end of autoexec.bat cut here ------

Both tiny.exe and loadlin.exe boot puppy just fine, but loadlin.exe seems to introduce some problems.

I recommend, based on recent experience, that you add PHOME=hda1 to the tiny.exe command lines, but I haven't always done so.

My configuration is a Toshiba Libretto CT50 Pentium 75 with 32 megs of RAM.

The 2 gig hard drive has a 1.3 gig FAT 32 partition for Windows and the Puppy type 1 installation. There is a 32 meg Linux Swap partition. Logical partition hda5 is about 700 megs and contains a Puppy type 2 installation.

Normally, I completely bypass Windows/DOS with the Grub boot manager. Grub is required to boot into the hda5 Puppy type 2 installation.

=======

Good luck.
Your mileage may vary.
And, remember, "Jesus saves."

Andy Figueroa
figueroa@philippians-1-20.us