Page 1 of 1

Dual boot, add puppy to existing Windows XP drive

Posted: Wed Nov 10, 2021 9:55 pm
by wizard

How to dual boot Windows XP and Puppy linux

There are several ways to configure a dual boot with XP and Puppy.
This method lets you add Puppy to an existing bootable XP install, it does not require repartitoning or modifying the hdd boot sector. This method DOES NOT WORK on Windows newer than XP.

1. Using a booted Puppy, open the Puppy ISO and extract the files (example using Puppy Slacko 6.3):
-initrd.gz
-vmlinuz
-puppy_slacko_6.3.0.sfs
-fdrv* or zdrv* files if present

2. boot XP
3. create a c:\puppy folder
4. copy the extracted puppy boot files into c:\puppy
5. copy grldr into c:\
6. copy menu.lst into c:\
7. edit the file c:\boot.ini with Notepad, add this line to the bottom and save the file:
C:\grldr="Linux"

grldr.gz
remove fake .gz and copy to c:\
(158.21 KiB) Downloaded 111 times
menu.lst.gz
remove fake .gz and copy to c:\
(364 Bytes) Downloaded 111 times

In use:
-XP will begin boot and display a menu listing Windows and Linux, choose Linux
-The grub menu will display, press enter to boot Puppy

wizard


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Thu Nov 11, 2021 4:32 am
by amethyst

You can make grub the default boot entry by adding the following line in boot.ini at the top under the boot loader section after time out (or changing the default entry if it already exists): default=c:\grldr

As a matter of interest - There is a way to accomplish this but not edit boot.ini at all (and not touching the existing boot record). It involves a bit of trickery though. :idea:


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Thu Nov 11, 2021 12:50 pm
by JASpup

grldr exists in /usr/lib/grub4dos/grldr.

I imagine you can just copy it.

menu.lst is also G4D.

Making G4D default could be useful for some, but I appreciate the chain idea, where you can see that you're booting the Windows version first before calling G4D.

Then if you have any problem running Windows from your G4D menu, you can stick to the Windows version.

My goal is to directly load the Xenial splash from Windows, but it is not intuitively obvious for me.

Looks like there's an isolinux.bin bootloader in there with a corresponding .cfg file I will try next. Perhaps there is also one for grub.cfg I can find.


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Thu Nov 11, 2021 6:53 pm
by bigpup

Easy way.
Install Puppy using Lick Installer.
https://github.com/noryb009/lick
It does a frugal install of Puppy.
Installs a boot loader menu to allow booting Windows or Puppy.

The Lick Installer runs in Windows.
Download the Lick exe file into Windows.
Left click on it to run it.


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Thu Nov 11, 2021 8:33 pm
by mikeslr

:thumbup: bigpup,

for not becoming so tunnel-visioned by the complexity which UEFI has forced on us that we forget: before that there was an easy way. :roll:


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Thu Nov 11, 2021 9:13 pm
by wizard

@bigpup
@mikeslr

You are correct, lick is easier and has broader application. Lick does, however, alter the boot sector by installing either grub4dos or grub2. If your goal is to add puppy in the least invasive way with the least risk, then the above method would apply on XP systems.

wizard


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Thu Nov 11, 2021 11:53 pm
by JASpup

There's starting with a goal for involved tasks then empathy for others'.

Instruction sets and technical motivations aside, if you could walk up to someone with an old XP device and tell them they can run a second operating system for about 300 MB with minimal invasiveness that can run current browsers, you just offered value.


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Fri Nov 12, 2021 1:20 am
by bigpup

There is always 10 different ways to do anything!
Just offering a choice.

If it was me.
I would delete Windows XP and only have Puppy Linux on the computer.
Already done that with 2 different laptops, that had Windows 10 on them.
Turned them into Puppy Linux laptops! :thumbup:


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Fri Nov 12, 2021 1:40 am
by Flash

If that old Dell laptop had enough RAM to easily run any Puppy, I might just delete Windows. 380 MB is a tight fit.


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Fri Nov 12, 2021 12:39 pm
by JASpup

Looking on eBay, XP laptops are not as cheap as I expected, and a high percentage of them have flaws that would make them worth less.

It's not the hardware but XP. It's probably the lightest-weight modern Windows. It has a prolific software base run not the same as 'compatibility mode'. Chrome's legacy is about the same as ours on Linux, but Firefox ended 52.9 if I'm not mistaking.

Imagine having to install a driver for every USB you plugged in, including flash. That's the prior Windows.

I might try running some of my old XP software on 10 if it doesn't have to be installed.

I just used a late 90s Word to create a document with images. I don't have Libre installed and only use Abi for reading files. Very few do any word processing with demands greater than Word 97.

My first attempt at isolinux boot didn't work. I might need a different bootloader .bin or the GRUB version.


Re: [ERROR] Dual boot, Puppy + Windows XP

Posted: Fri Nov 12, 2021 1:51 pm
by JASpup

Code: Select all

Starting cmain() ... No PXE stack 

This is my current error after Linux [enter] on the boot page. I switched to the GRUB utility. Isolinux booted to a blinking cursor.


Re: Booting other than menu.lst from Windows XP

Posted: Fri Nov 12, 2021 2:24 pm
by JASpup

The attempt in my last post was trying to boot the Xenial splash.

I can chainload G4D from XP, but my goal is the splash.

If grldr boots menu.lst, what boots isolinux.cfg or grub.cfg?

/boot/grub/grub.cfg - This is the main configuration file that replaces menu.lst. Unlike menu.lst, this file cannot be edited by hand! I strongly advise against trying to tamper with this file, using chattr command or anything of the sort. Let it be.

https://www.dedoimedo.com/computers/grub-2.html


Re: Dual boot, add puppy to existing Windows XP drive

Posted: Fri Nov 12, 2021 10:18 pm
by JASpup

Typing thought:

grub.cfg is GRUB2. It appears it's normally installed in your Linux system and occupies multiple directories, hence the structure isn't a loader and configuration file conveniently sitting in the root directory like grldr & menu.lst.

Why that perplexes me is: both my config files are sourced from a USB boot, either as extracted from the .iso or created from an installer utility. So perhaps isolinux or GRUB2 were installed on my USB and understanding that structure is my hope in booting their configuration files. Looking at the source again is my next step.