How to Dual boot Puppy&XP from USB using syslinux & grub4dos

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

How to Dual boot Puppy XP from USB using syslinux & grub4dos

#16 Post by ETP »

greengeek wrote:OK, I just found a stick that I made ages ago, and it is bootable - but could you look at these contents and tell me if you think it is suitable please? Is it ok that it contains ldlinux.sys? (Just checked with Gparted that it's a FAT32 partition - so that part should be ok)
Hi greengeek,

Looks eminently suitable. Ldlinux is the hidden, vital bootloader. You do not seem to have a savefile (or have deleted it) but it matters not. You are now only 2 steps away from possessing a dual boot stick :D
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#17 Post by greengeek »

Almost there: here is my syslinux.cfg (with your suggested code appended):

Code: Select all

#default vmlinuz initrd=initrd.gz pmedia=usbflash

MENU SEPARATOR

LABEL grub
MENU LABEL XP Pro            28/07/12
KERNEL /boot/grub/grub.exe --config-file="map (hd1) (hd0);map (hd0) (hd1);map --hook;chainloader (hd0)+1"

MENU SEPARATOR

LABEL reboot
MENU LABEL Reboot
KERNEL /boot/grub/grub.exe --config-file="reboot"

MENU SEPARATOR

LABEL off
MENU LABEL Power Off
KERNEL /boot/grub/grub.exe --config-file="halt" 
The first time I booted I did not have the first line commented out (as it is shown here), but it failed to display your menu - just booting into the existing Linux set up on the stick. Now that I have commented out the first line it just says that it can not find the Linux Kernel. Can you spot any clues to what I am doing wrong please?
(just off to bed now... I hope to continue in the morning. Thanks for the help...)

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

How to Dual boot Puppy XP from USB using syslinux & grub4dos

#18 Post by ETP »

Hi greengeek,
Can you spot any clues to what I am doing wrong please?
Mmmmmm…. Pretty much everything. :) Please see my post dated 24/08/12 in reply to OscarTalks. Follow the steps there exactly including using the 2 files attached to it. (vesamenu.c32 and syslinux.cfg for Slacko 5.3.3)
Your stick should finish up with 2 directories:
p533
boot (plus contents-see first post)
In the root you should have:
syslinux.cfg
vesamenu.c32
bart9splash.jpg
ldlinux.sys (hidden file)

You will then need to change the following line in syslinux.cfg to match your set up:

From:

APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdb1:/p533/puppy_slacko_5.3.3.sfs psubdir=/p533

To:

Code: Select all

APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdc1:/p533/puppy_slacko_5.3.3t.sfs psubdir=/p533
NOTES:
Your stick is seen as sdc1
For some reason I don’t understand your pupsfs has 5.3.3t.sfs on the end.
In the directory p533 you should have

initrd.gz
vmlinuz
the main sfs (puppy_slacko_5.3.3t.sfs in your case)
the slackosave- (once created)
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: How to Dual boot Puppy XP from USB using syslinux & grub4dos

#19 Post by greengeek »

ETP wrote:Please see my post dated 24/08/12 in reply to OscarTalks. Follow the steps there exactly including using the 2 files attached to it. (vesamenu.c32 and syslinux.cfg for Slacko 5.3.3)
Sorry, I misinterpreted that post. I thought the syslinux.zip contained the actual syslinux files (which I had downloaded direct from kernel.org). Didn't initially realise it was your sample syslinux.cfg file.
Your stick should finish up with 2 directories:
p533
boot (plus contents-see first post)
I don't have the puppy files in a separate subdirectory - they are still in root. I will have to play with this a little to get closer to your original setup.
For some reason I don’t understand your pupsfs has 5.3.3t.sfs on the end.
The stick was loaded with "Slacko Thin" which has the "t" added onto it. I find it a really good version for testing with.

I believe I am doing things correctly now, but the stick hangs during boot, just showing "syslinux 3.73 xxxxxx xxxxxx xxxxetc etc" and nothing else happens. (If I eliminate all the new code in syslinux.cfg and go back to my original one-line config of

Code: Select all

default vmlinuz initrd=initrd.gz pmedia=usbflash
the Slacko Thin still boots so the boot hang seems to be to do with the config of the syslinux.cfg. I will have a careful read of all of this again and may start with a fresh usb stick.

I think I had one too many glasses of wine last night when I got all excited about making this work :-)
I will come back to this and have another go with a fresh mind.

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

How to Dual boot Puppy XP from USB using syslinux & grub4dos

#20 Post by ETP »

Hi greengeek,
I believe I am doing things correctly now, but the stick hangs during boot, just showing "syslinux 3.73 xxxxxx xxxxxx xxxxetc etc" and nothing else happens.
That’s fine. Please note that the stick needs to have been made bootable with syslinux 4.04 as stated in my original post. Vesamenu.c32 must also be from that version (as supplied) It will not work with 3.73.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: How to Dual boot Puppy XP from USB using syslinux & grub4dos

#21 Post by greengeek »

ETP wrote:Please note that the stick needs to have been made bootable with syslinux 4.04 as stated in my original post. Vesamenu.c32 must also be from that version (as supplied) It will not work with 3.73.
Thank you. I will try again.

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#22 Post by canbyte »

Hi ETP
Thanks for suggestion of holding shift key on powerup to revert to hard drive os startup (instead of from cd). I tried twice without success so I'm thinking even if i can figure out the timing, my wife can't/ wont. I'm still hoping that there's a way to add a choice to revert to hard drive startup. I guess this has to happen before puppy gets installed so maybe what i'm asking is in a file that needs compilation or otherwise involving steps way beyond my noobish capabilities!? There are several boot and message files that are editable but the rest aren't. Hmm.

tia
[color=orange]1. Dell Dimension E521, AMD Athln 64, 2 GHz 1.93GB ram,
Puppy 533 on CD, accesses flash drive only,
FFox Nightly12.0
2. Compaq P3 733Hz 375RAM
Printer: Oki C3400 > LAN [/color]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#23 Post by greengeek »

In order to guarantee that the mbr is written with syslinux 4.04 I guess the puppy being used to write the stick would have to contain the same syslinux version - is that correct?

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Dual boot from cd

#24 Post by ETP »

canbyte wrote:Hi ETP
Thanks for suggestion of holding shift key on powerup to revert to hard drive os startup (instead of from cd). I tried twice without success so I'm thinking even if i can figure out the timing, my wife can't/ wont. I'm still hoping that there's a way to add a choice to revert to hard drive startup. I guess this has to happen before puppy gets installed so maybe what i'm asking is in a file that needs compilation or otherwise involving steps way beyond my noobish capabilities!? There are several boot and message files that are editable but the rest aren't. Hmm.
tia
Hi canbyte,

Sorry that did not work for you - it was worth a try. :)

Any choice of OS needs to be offered by the bootloader menu. Once you see the choice between save-files it is too late
as the puppy linux kernel will already have loaded.

We each need to find a (dual) boot method that we are comfortable with. Also there is the question of what level of risk we can each tolerate if
things go wrong. Finally there is the matter of complexity. Simple but robust is better.

May I suggest that you study linuxcbon's thread which also mentions two other methods.

http://www.murga-linux.com/puppy/viewtopic.php?t=75257

The method mentioned there by shinobar is the simplest but you have the least control over the install procedure.

linuxcbon's method is next up in the simplicity stakes and you do have manual control.

Lastly another of my methods which is low risk from XP's point of view but intimate knowlege of syslinux/vesamenu.c32/their menu structures/ is desireable

Should you decide to go down any of these routes make sure that you first have good backups/clones of your XP drive(s) and are adept at restoring them.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

How to Dual boot Puppy XP from USB using syslinux & grub4dos

#25 Post by ETP »

Hi greengeek,

It is far easier to do it in XP. The bootloader and vesamenu.c32 must be > v3.82

First if need be using XP format the stick as FAT32.

Syslinux (4.04 zip) can be downloaded from here:

http://www.kernel.org/pub/linux/utils/boot/syslinux/

How to Create a Bootable USB: Windows XP

STEP 0: Your motherboard (BIOS) has to support boot from usb (usb-key or usb-hdd).
You don't need to know which of these types your media is though, your BIOS recognizes
the usb controller in the device, and this determines usb-key or usb-hdd type.
STEP 1: Download the latest copy of syslinux and extract it. Download.
STEP 2: Open a command prompt and cd to your 'syslinux\win32' folder. Run syslinux.exe -m -a X:
replacing X with the drive letter of your media. This will install suitable MBR code into your flash drive and mark the partition on it as active.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#26 Post by canbyte »

Hi ETP
Thanks for looking into that. Now i feel that i've highjacked your thread not hitchhiked on it as you have put up so much info that it should be flagged / titled as a dual boot from USB / CD for whoever else might be interested. sorry bout that. :wink:

Your last sentence stopped me in my tracks. I'm even worse grubbing at windoz than with Puppy - all worry and no fun! But what you said made me wonder if there might be a solution - to intercept the process at the first or second messages that appear. First is boot.msg which calls up the slacko screen and says
Just wait 5 seconds for normal startup!07
For basic help press the <F2> key, for advanced help press <F3> key.
Could a choice be added - 'hit F0 to abort Puppy and revert to hard drive'? with a little code to do the deed? Or is this message called up by the kernel? In which case could the cd be remastered to include a separate file to be called first with a new 5 second choice?

Which is the kernel anyway? The bin files on the cd are boot.cat initrd.gz vmlinuz and the .sfs file. Are these difficult to modify? Well, I guess that's a silly question for a noob to ask!
[color=orange]1. Dell Dimension E521, AMD Athln 64, 2 GHz 1.93GB ram,
Puppy 533 on CD, accesses flash drive only,
FFox Nightly12.0
2. Compaq P3 733Hz 375RAM
Printer: Oki C3400 > LAN [/color]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Dual boot from cd

#27 Post by ETP »

Hi canbyte,

Don’t worry about jacking the thread. It was hardly active. From your reply I see that you have grasped the issue and it is evident that you prefer low risk.

Your current method of working with 533 (boot from CD with multiple save-files on USB) is very safe, versatile and sensible.

When one burns a Puppy ISO to CD/DVD, isolinux (a fork of syslinux) is used to boot the disc, isolinux.cfg being the configuration file. A very simple cfg is used in Puppy.
Yes, it would be possible to add a boot option to that file but doing so is fraught with pitfalls in that what would and would not work would be very hardware dependant. It would also have to cater for all O/Ss (Win 98/Win2000/XP/Win7 etc). In addition some O/S may not be on the first hard disc and some not even on the first partition of a particular disc.

The script that generates the cfg is a matter for BK, who wisely in my view, has kept it simple. It would not be good if at best an option only worked on some hardware and at worst locked a box up with possible corruption of the file system.

Having said that there is nothing to prevent an individual, using an ISO editor, from
changing the cfg and re-mastering it. We are back to risk.


Given what you have told me you may like to give the method described in this thread a try using another stick. Once formatted (if need be) and made bootable with syslinux as I have now described, it is simply a matter of creating the directories and copying your files over. You can keep your existing stick as it is. If you copy over multiple save files you will get your usual choice.

Reproduced below is a directory/file shot of such a stick for any readers benefit.
N/B
The hidden file in the root ldlinux.sys does not show up in this view.
Ps the kernel is the file vmlinuz.
Attachments
screenshot.19.jpg
(54.62 KiB) Downloaded 1132 times
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#28 Post by canbyte »

ETP, Thanks for your patience in letting me continue chewing on this bone. I'll recheck later but I don't think my PC is bootable from USB. It occurred to me that what we are dealing with is the bios, which I suppose is what instructed the pc to boot from cd or usb. Is it possible to reverse the bios instruction without having to think about what OS is on the HD? Or can the bios be told that 'sorry but there is no boot os here so you'll have to try the HD or whatever is next on the list'? The same as if there were no puppy cd in the drive. Or are my ruminations on the wrong track?
[color=orange]1. Dell Dimension E521, AMD Athln 64, 2 GHz 1.93GB ram,
Puppy 533 on CD, accesses flash drive only,
FFox Nightly12.0
2. Compaq P3 733Hz 375RAM
Printer: Oki C3400 > LAN [/color]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#29 Post by 01micko »

Hello ETP

This is a very nice guide and it got me thinking a bit about the power of syslinux.

It actually can be a full replacement bootloader. It can boot and chainload windows os and other loaders.

Here is a snapshot of my current syslinux.cfg on my laptop usb stick (based on your work):

Code: Select all

PROMPT 0
TIMEOUT 80
DEFAULT /vesamenu.c32
MENU RESOLUTION 1024 768
MENU BACKGROUND /splash/bart9splash.jpg
MENU TITLE Puppy Linux

MENU WIDTH 30
MENU MARGIN 2
MENU ROWS 15
MENU HELPMSGROW 19
MENU TIMEOUTROW 20
MENU TABMSGROW 21
MENU CMDLINEROW 23
MENU HSHIFT 50
MENU VSHIFT 5

	menu color screen	37;40      #00000000 #00000000 none
	menu color border	30;44      #00000000 #00000000 none
	menu color title	1;36;44    #00000000 #00000000 none
	menu color unsel	37;44      #ff6a6a6a #00000000 none
	menu color hotkey	1;37;44    #ff6a6a6a #00000000 none
	menu color sel		7;37;40    #ffffffff #ff6a6a6a none
	menu color hotsel	1;7;37;40  #ff808080 #ff6a6a6a none
	menu color scrollbar	30;44      #00000000 #00000000 none

	menu color tabmsg	31;40      #aaaaaaaa #00000000 none
	menu color cmdmark	1;36;40    #ffff0000 #00000000 none
	menu color cmdline	37;40      #aaaaaaaa #00000000 none
	menu color pwdborder	30;47      #ffff0000 #00000000 std
	menu color pwdheader	31;47      #ffff0000 #00000000 std
	menu color pwdentry	30;47      #ffff0000 #00000000 std
	menu color timeout_msg	37;40      #aaaaaaaa #00000000 none
	menu color timeout	1;37;40    #ffaaaaff #00000000 none
	menu color help		37;40      #aaaaaa00 #00000000 none
	menu color msg07	37;40      #90ffffff #00000000 std

LABEL 5365
MENU LABEL Slacko 5.3.6.5
KERNEL /slacko-beta2PAE/vmlinuz
APPEND initrd=/slacko-beta2PAE/initrd.gz pmedia=usbflash

MENU SEPARATOR

LABEL 5365n
MENU LABEL Slacko 5.3.6.5 RAM
KERNEL /slacko-beta2PAE/vmlinuz
APPEND initrd=/slacko-beta2PAE/initrd.gz pmedia=usbflash pfix=ram

MENU SEPARATOR

LABEL windows
MENU LABEL Windows 7
COM32 chain.c32
APPEND hd1 1 swap

MENU SEPARATOR

LABEL hd
MENU LABEL Boot from 1st HD
localboot -1
As you can see I put my slacko install in a subfolder as this is an 8 gig stick so I will likely add other os (pups or whatever) to the stick.

Notice the windows entry, this boots straight into windows 7, only the chain.c32 module is added from syslinux. It's not even necessary really as the 1st HD entry boots straight from BIOS. It sends a failed message apparently and the machine starts from scratch without unplugging the usb, yet ignoring it, and as such on this machine boots straight to grub (legacy).

Here is the reference where I stumbled upon the magic: http://reboot.pro/11640/#entry102110

Thanks and cheers.
Puppy Linux Blog - contact me for access

cthisbear
Posts: 4422
Joined: Sun 29 Jan 2006, 22:07
Location: Sydney Australia

#30 Post by cthisbear »

canbyte:

I had to fix an asus laptop the other day.

Dead cd-dvd drive.

Do you think that piece of Vista crap would boot
any of my USB drives.
And I have a heap of them.

Put them in different ports...
selected the drive to boot from....ggggrrrrrrhhhh!!!

Then I thought....why not

Hit >>> F10 after I select the usb >>> in the hard drive to boot
and the monster booted.

Might be worth revisiting it.

Chris.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#31 Post by greengeek »

You mentioned a wiki tutorial re making the stick bootable with syslinux:
http://www.syslinux.org/wiki/index.php/HowTos and that tutorial mentions (under the section to make bootable usb via Linux) the line:
dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/sdX

However, that line specifies bs=440 which seems contrary to other tutorials I have found which specify 446. Do you think 440 is a typo?

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

#32 Post by ETP »

greengeek wrote:You mentioned a wiki tutorial re making the stick bootable with syslinux:
http://www.syslinux.org/wiki/index.php/HowTos and that tutorial mentions (under the section to make bootable usb via Linux) the line:
dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/sdX

However, that line specifies bs=440 which seems contrary to other tutorials I have found which specify 446. Do you think 440 is a typo?
I think you missed my relevant post: The syslinux wiki leaves a lot to be desired. It is generally out of date and sometimes incorrect.
Hi greengeek,

It is far easier to do it in XP. The bootloader and vesamenu.c32 must be > v3.82

First if need be using XP format the stick as FAT32.

Syslinux (4.04 zip) can be downloaded from here:

http://www.kernel.org/pub/linux/utils/boot/syslinux/

How to Create a Bootable USB: Windows XP

STEP 0: Your motherboard (BIOS) has to support boot from usb (usb-key or usb-hdd).
You don't need to know which of these types your media is though, your BIOS recognizes
the usb controller in the device, and this determines usb-key or usb-hdd type.
STEP 1: Download the latest copy of syslinux and extract it. Download.
STEP 2: Open a command prompt and cd to your 'syslinux\win32' folder. Run syslinux.exe -m -a X:
replacing X with the drive letter of your media. This will install suitable MBR code into your flash drive and mark the partition on it as active.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

How to Dual boot Puppy XP from USB using syslinux & grub4dos

#33 Post by ETP »

Hi 01micko,

Thanks for your kind words. I did actually investigate an option for booting Win 7 but not possessing it could not validate it.
The thing that put me off using the syslinux chain.c32 module was this warning on the wiki. (not good for laptops/netbooks)

Windows Vista/Windows 7 chainloading
Windows Vista and Windows 7 refuse to hibernate if it is chainloaded. Instead, you have to chainload Syslinux from Windows BCD. There is no known workaround for this.
Ref: http://www.syslinux.org/wiki/index.php/Common_Problems

Another page http://www.syslinux.org/wiki/index.php/ ... /chain.c32
Gives the following example however:
LABEL boot_part_win7fs
MENU LABEL Boot ntld from GPT partition labelled "win7fs"
COM32 chain.c32
APPEND label=win7fs ntldr=/bootmgr

I concluded therefore that chainloading gub4dos might be the better option for Win7. Not being able to validate such a boot (from USB without installing or changing anything on the C: drive) I proceeded no further.

Given that you liked this method of dual booting you may wish to have a look at this thread:
How to Dual boot Puppy & XP from ANY removable media.
(A simplified Lin`N`Win type method using syslinux & grub4dos)
http://www.murga-linux.com/puppy/viewtopic.php?t=80181

That is my current preferred method but using a 2GB SD card which remains permanently plugged in. Reproduced below is a cfg from a USB stick which combines both methods. :)

There is also a hidden treat in the SD card method in that if you plug a stick in and reboot the stick becomes the next drive to boot and by selecting XP on either menu you can switch between the menu on the stick and the menu on the card. To revert to normal behaviour i.e. booting off the SD simply dismount the stick, extract it and reboot.

Code: Select all

DEFAULT /vesamenu.c32
PROMPT 0
TIMEOUT 120
MENU RESOLUTION 1024 768
MENU BACKGROUND /beaker2.jpg
# MENU BACKGROUND /bart9splash.jpg
# MENU BACKGROUND /puppy.jpg

MENU WIDTH 30
MENU MARGIN 0
MENU ROWS 28
MENU HELPMSGROW 22
MENU TIMEOUTROW 24
MENU TABMSGROW 26
MENU CMDLINEROW 28
MENU HSHIFT 46
MENU VSHIFT 5

	menu color screen	37;40      #00000000 #00000000 none
	menu color border	30;44      #00000000 #00000000 none
	menu color title	1;36;44    #00000000 #00000000 none
#	menu color unsel	37;44      #ff6a6a6a #00000000 none
	menu color unsel    1;36;44    #fc0000 #00000000 std	
	menu color hotkey	1;37;44    #ff6a6a6a #00000000 none
	menu color sel		7;37;40    #ffffffff #ff6a6a6a none
	menu color hotsel	1;7;37;40  #ff808080 #ff6a6a6a none
	menu color scrollbar	30;44      #00000000 #00000000 none

	menu color tabmsg	31;40      #aaaaaaaa #00000000 none
	menu color cmdmark	1;36;40    #ffff0000 #00000000 none
	menu color cmdline	37;40      #aaaaaaaa #00000000 none
	menu color pwdborder	30;47      #ffff0000 #00000000 std
	menu color pwdheader	31;47      #ffff0000 #00000000 std
	menu color pwdentry	30;47      #ffff0000 #00000000 std
#	menu color timeout_msg	37;40      #aaaaaaaa #00000000 none
	menu color timeout_msg	37;40      #fc0000 #00000000 none
	menu color timeout	1;37;40    #ffaaaaff #00000000 std
	menu color help		37;40      #aaaaaa00 #00000000 none
	menu color msg07	37;40      #90ffffff #00000000 std


LABEL 5365USB
MENU LABEL Slacko 5365 USB   17/10/12
KERNEL /p5365/vmlinuz
APPEND initrd=/p5365/initrd.gz pmedia=usbflash pupsfs=sdb1:/p5365/puppy_slacko_5.3.6.5.sfs psubdir=p5365

MENU SEPARATOR

LABEL 5332USB
MENU LABEL Slacko 5332 USB   05/07/12
KERNEL /p5332/vmlinuz
APPEND initrd=/p5332/initrd.gz pmedia=usbflash pupsfs=sdb1:/p5332/puppy_slacko_5.3.3.2.sfs psubdir=p5332

MENU SEPARATOR

LABEL 533USB
MENU LABEL Slacko 533  USB   05/05/12
KERNEL /p533/vmlinuz
APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdb1:/p533/puppy_slacko_5.3.3.sfs psubdir=p533

MENU SEPARATOR

LABEL 5332SSD
MENU LABEL Slacko 5332 SSD   07/08/12
KERNEL /p5332/vmlinuz
APPEND initrd=/p5332/initrd.gz pmedia=atahd pupsfs=sda1:/p5332/puppy_slacko_5.3.3.2.sfs pdev1=sda1

MENU SEPARATOR

LABEL 533SSD
MENU LABEL Slacko 533  SSD   14/09/12
KERNEL /p533/vmlinuz
APPEND initrd=/p533/initrd.gz pmedia=atahd pupsfs=sda1:/p533/puppy_slacko_5.3.3.sfs pdev1=sda1

MENU SEPARATOR

LABEL grub
MENU LABEL XP Pro            28/07/12
KERNEL /boot/grub/grub.exe --config-file="map (hd1) (hd0);map (hd0) (hd1);map --hook;chainloader (hd0)+1"

MENU SEPARATOR

LABEL reboot
MENU LABEL Reboot
KERNEL /boot/grub/grub.exe --config-file="reboot"

MENU SEPARATOR

LABEL off
MENU LABEL Power Off
KERNEL /boot/grub/grub.exe --config-file="halt"
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: How to Dual boot Puppy XP from USB using syslinux & grub4dos

#34 Post by greengeek »

ETP wrote:[You will then need to change the following line in syslinux.cfg to match your set up:
From:
APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdb1:/p533/puppy_slacko_5.3.3.sfs psubdir=/p533
To:

Code: Select all

APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdc1:/p533/puppy_slacko_5.3.3t.sfs psubdir=/p533
NOTES:
Your stick is seen as sdc1
Do you think it may be possible to change the "pupsfs=sdx" portion of this syntax to compensate for the drive designation varying from system to system or varying because of other usb devices plugged in at boot time? Is there some other way to define the sfs location that is not fixed in this way?

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

How to Dual boot Puppy XP from USB using syslinux & grub4dos

#35 Post by ETP »

Hi greengeek,

Off the top of my head, if that is causing you a problem, there are 3 things that you
can try.
1. Reduce it to just

Code: Select all

APPEND initrd=/p533/initrd.gz pmedia=usbflash

2.Reduce it to just

Code: Select all

APPEND initrd=/p533/initrd.gz pmedia=usbflash psubdir=/p533

3. Make multiple entries with different append lines (choices on the menu)

Code: Select all

 APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdb1:/p533/puppy_slacko_5.3.3t.sfs psubdir=/p533
 APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdc1:/p533/puppy_slacko_5.3.3t.sfs psubdir=/p533
 APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sdd1:/p533/puppy_slacko_5.3.3t.sfs psubdir=/p533
 APPEND initrd=/p533/initrd.gz pmedia=usbflash pupsfs=sde1:/p533/puppy_slacko_5.3.3t.sfs psubdir=/p533
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

Post Reply