Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 04:53
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to make a multi-purpose boot CD for Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [47 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 8917
Location: Stratford, Ontario

PostPosted: Tue 03 Apr 2007, 19:12    Post subject:  How to make a multi-purpose boot CD for Puppy  

A Puppy frugal install involves copying the core files (vmlinuz, initrd.gz and pupxxx.sfs) from the Live CD onto another device and setting up a bootloader to launch them. The following procedure creates a bootable CD based on GRUB that will start Puppy from a variety of target drives.

If the target is a FAT or EXT hard drive partition, a generic version of the boot CD will do. However, GRUB cannot see an NTFS partition or a USB flash drive because it has no native support for these devices. We can solve this problem by putting the first two Puppy files, vmlinuz and initrd.gz, on the boot CD itself. Once the kernel is loaded, Puppy's own hardware detection can take over and locate the remaining files on the target.

This technique should resolve two issues - running Puppy from a flash drive when the system BIOS does not support USB booting, or installing Puppy on a hard drive without having to change the Windows boot mechanism.

Warning! If you copy the Puppy files off the CD using Windows, they may be given upper case names. You must rename them to their lower case versions.

The 'multiboot' attachment below contains a template and script for building your own bootable ISO. Extract the package to /root. It includes a readme file with detailed instructions. The package also has a script for burning your ISO.

The 'pupboot' attachment is a ready-made ISO that boots Puppy off a selection of hard drive partitions.

The 'grub-install' attachment is a tutorial for setting up GRUB on a hard drive in situations where you need manual control over the procedure.

If you are booting your computer through GRUB, you may also want a menu option that can launch a Live CD. Download the 'boot-cd' attachment and follow the enclosed instructions.

The 'grubflop' attachment contains an image of a bootable diskette that serves two purposes.
1. It can launch the Puppy CD (or any other Live CD) on machines where the optical drive is not bootable.
2. It can boot a frugal install of Puppy off the hard drive.

Extract it and burn the diskette with the command: dd if=grubflop.img of=/dev/fd0
If working from Windows, use the enclosed program rawrite2.exe

The 'fixmbr' attachment contains an ISO image of a bootable CD based on FreeDOS. You can use it to restore a Windows MBR that has been overwritten by a Linux bootloader.
Burn the image and boot your machine off it.
At the A> prompt, type the command: fdisk /mbr
Remove the CD and reboot.

Update. New Puppies have a command that can restore a WinXP MBR in one step.
Code:
ms-sys --mbr --write /dev/sda
grub-install.tar.gz
Description 
gz

 Download 
Filename  grub-install.tar.gz 
Filesize  58.25 KB 
Downloaded  1972 Time(s) 
pupboot.zip
Description 
zip

 Download 
Filename  pupboot.zip 
Filesize  116.08 KB 
Downloaded  2878 Time(s) 
multiboot.tar.gz
Description 
gz

 Download 
Filename  multiboot.tar.gz 
Filesize  116.2 KB 
Downloaded  1850 Time(s) 
boot-cd.tar.gz
Description 
gz

 Download 
Filename  boot-cd.tar.gz 
Filesize  22.28 KB 
Downloaded  1228 Time(s) 
grubflop.tar.gz
Description 
gz

 Download 
Filename  grubflop.tar.gz 
Filesize  93.11 KB 
Downloaded  1732 Time(s) 
fixmbr.zip
Description 
zip

 Download 
Filename  fixmbr.zip 
Filesize  390.62 KB 
Downloaded  2959 Time(s) 

Last edited by rcrsn51 on Mon 11 Apr 2011, 08:22; edited 13 times in total
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sun 18 May 2008, 10:19    Post subject:  

Bump!

Thx for Freenas info - just what I needed

Aitch
Back to top
View user's profile Send private message 
Njorl

Joined: 25 May 2008
Posts: 3
Location: London UK

PostPosted: Sun 25 May 2008, 19:49    Post subject: Explain stage1 and stage2 & how to retro-edit ISO  

Please answer a small query: in multiboot\pupboot\boot\grub what are stage1 and stage2? Before I found these instructions, I'd been attempting a similar goal (using the mkisofs example from http://www.freesoftwaremagazine.com/articles/grub_intro?page=0%2C1). I made a DVD that ran a single Puppy version (4.00) from Grub, but did not contain stage1 or stage2, just stage2_eltorito.

Also, if I edit my ISO (I need to try the one from this example) with ISO Master, even just trying “save as”, it seems to lose 292 KB and booting then fails (biosdisk: Err: 80). Is there a better way make subsequent additions/changes to the ISO, please?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8917
Location: Stratford, Ontario

PostPosted: Sun 25 May 2008, 20:07    Post subject:  

Optical disks don't have partitions and MBRs like hard drives so the terms stage1 and stage2 don't apply. You have already discovered that GRUB uses the stage2_eltorito file to make a bootable CD.

Instead of trying to remaster a boot CD, download the "multiboot" package and make your own from scratch.
Back to top
View user's profile Send private message 
reborn

Joined: 30 Jul 2008
Posts: 35
Location: Turgutreis, Turkey

PostPosted: Thu 31 Jul 2008, 18:15    Post subject: Pupboot  

Hi, I'm new here and have spent some time perusing the various forums, gleaning as much information as possible. I'm impressed with the helpfullness of everybody here, and Puppy!

I've progressed from BBC Micro to Oric to Amiga to PC, currently running XP on a HP Pavilion dv8219ea Laptop (Intel Centrino Duo & nVidia Go 7400 graphics adapter, 1gb ram). I've been trying various LiveCD's and have decided Puppy Linux is going to be the next stage of my evolution.

Which brings me to my question, I plan to do a frugal install to the (C drive) NTFS partition and boot it from CD. I've downloaded Pupboot and added vmlinuz + initrd.gz to the ISO. Do I still need to put those two files with the other two core files to the root of C?
And do I need to edit menu.lst, as I notice for USB root is (cd) - logically my scenario is the same.

Looking forward to an interesting time with Puppy as I love to tinker!
Thanks in advance.
Back to top
View user's profile Send private message 
GeoW

Joined: 31 Dec 2007
Posts: 150
Location: New Jersey, USA ( East Coast )

PostPosted: Thu 31 Jul 2008, 19:49    Post subject: Frugal install to NTFS  

reborn,

Welcome!

Check out these excellent instructions. I think it is exactly what you want
to do.

http://www.icpug.org.uk/national/linnwin/step00-linnwin.htm

Have Fun,

GeoW
Back to top
View user's profile Send private message 
reborn

Joined: 30 Jul 2008
Posts: 35
Location: Turgutreis, Turkey

PostPosted: Thu 31 Jul 2008, 21:18    Post subject: Frugal Install to NTFS  

Thankyou GeoW

Looks an interesting way of doing it, can you/anyone check these for me please - this is what I've done so far in preparation.

a)The menu.lst

# GvR Sept 30th 2004
color black/cyan yellow/cyan
timeout=5
default=0

title Default Boot on HD 0
rootnoverify (hd0,0)
chainloader +1
boot

title Puppy Linux 4.00
kernel (hd0,0)/vmlinuz PMEDIA=idehd PDEV1=hda1 psubdir=puppy400
initrd (hd0,0)/initrd.gz
boot


And b) boot.ini

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptOut
c:\grldr="Start Linux"

I've got all the files I need and am ready to go (later, it's 4.15am here!)

Note XP Service Pack 3
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1289
Location: UK

PostPosted: Fri 01 Aug 2008, 08:37    Post subject:  

reborn,

Your menu.lst and boot.ini look OK for a standard PC with IDE/PATA drives with Windows installed on the first partition of the first hard disk drive. That's all a bit technical but this is the usual standard for an old machine

As you seem to have a newer machine you may have SATA disk drives. In this case some changes will be required to menu.lst (which are given in the Lin'N'Win instructions).

If SATA/PATA/IDE is technobabble then try what you have got and if it fails saying it cannot find the files, try the SATA option.

ICPUG
Back to top
View user's profile Send private message 
reborn

Joined: 30 Jul 2008
Posts: 35
Location: Turgutreis, Turkey

PostPosted: Fri 01 Aug 2008, 15:43    Post subject: Sata  

Many thanks ICPUG, you are absolutely right I have 2x60gb Sata Hard Drives in this laptop.

I've now amended the menu.lst according to the instructions at Lin'N'Win - looks like I'm good to go.

I'll report back later.
Back to top
View user's profile Send private message 
reborn

Joined: 30 Jul 2008
Posts: 35
Location: Turgutreis, Turkey

PostPosted: Fri 01 Aug 2008, 15:51    Post subject:  

As a matter of interest and future reference does anyone have an answer to my original question (even though I'm not taking that route now)

Quote:
Which brings me to my question, I plan to do a frugal install to the (C drive) NTFS partition and boot it from CD. I've downloaded Pupboot and added vmlinuz + initrd.gz to the ISO. Do I still need to put those two files with the other two core files to the root of C?
And do I need to edit menu.lst, as I notice for USB root is (cd) - logically my scenario is the same.


reborn
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Fri 01 Aug 2008, 17:00    Post subject:  

Quote:
As a matter of interest and future reference does anyone have an answer to my original question


I think you need wolf pup

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

or Steven Binion for that!

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

Aitch
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8917
Location: Stratford, Ontario

PostPosted: Fri 01 Aug 2008, 18:22    Post subject:  

In previous versions of Puppy, it was sufficient to put the first two files on the boot medium and the two sfs files on the target. But at some point near the end of the 2.x series, BarryK changed something that required one or both of the initial files to also be on the target. I haven't checked the 4.x series to see what the requirement is now. But it would be easy to run some tests yourself. In any case, the initial files are small.

The menu.lst entry to launch Puppy in an NTFS partition would be the same as for a flash drive, except for the PMEDIA argument. There is an example of this in the readme file that comes with the "multiboot" attachment.
Back to top
View user's profile Send private message 
reborn

Joined: 30 Jul 2008
Posts: 35
Location: Turgutreis, Turkey

PostPosted: Sat 02 Aug 2008, 02:31    Post subject:  

Thanks rcrsn51, downloaded, read and understood, it's how I thought it should be. I'll do some tests on the location of vmlinuz + initrd.gz.

Aitch, thanks to you too - I'm currently downloading this Retro Pup to try. It'll give me a chance to try some other flavours and I'll be able to see how the multiboot is done on that!

The Steve Binion post is beyond me at the moment, I'll be looking up Qemu later. It sounds as if it is doing something I read about on another distro - copying the .iso to the hard drive and booting from there as a virtual cd drive.

Thanks all, now to some more tinkering - when the Retro Pup has finished downloading.

Reborn
Back to top
View user's profile Send private message 
katutxakurra

Joined: 21 Apr 2008
Posts: 3

PostPosted: Mon 11 Aug 2008, 10:12    Post subject: how to add files and options when remastering  

hi everybody!
I want to remaster puppy to another live cd and put some information files on my-documents folder when you start it. Links to information webs and configuration, such as the seamonkeys home page and the run action for .exe files that i want to open with wine.
How can I do that? thank you very much for helping and sorry for my english.
byee
Back to top
View user's profile Send private message 
reborn

Joined: 30 Jul 2008
Posts: 35
Location: Turgutreis, Turkey

PostPosted: Wed 20 Aug 2008, 03:22    Post subject:  

Update: On the HP laptop running XP Service Pack 3 I frugally installed Muppy Minisys & Macpup Dingo - with all the files in their respective subdirectories (C:/muppy & C:/macpup) ran fine. Using the Lin'N'Win method. (No vmlinuz, initrd.gz in root)

I now have a new desktop system (many problems with laptop) and the grub loader 'grldr' freezes the system (black screen - have to push reset).
New System: Intel Core 2 Quad Q9450, Asus Rampage Formula Mobo, Aus N8800GT Extreme Geforce 1GB DDR3, 4gb OCZ DDR2 Reaper ram.
Running XP Pro SP3

Live distros, in the main, work fine - so I will be using the 'multiboot' scenario from rcrsn51's original post.

reborn
**
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [47 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1143s ][ Queries: 13 (0.0238s) ][ GZIP on ]