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 Fri 22 Aug 2014, 04:00
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How can I boot an iso with grub4dos?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 5 [69 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
Scooby

Joined: 03 Mar 2012
Posts: 299

PostPosted: Mon 04 Feb 2013, 14:19    Post subject:  

The principle of this solution is the same as I present in

HOWTO create easy multi-boot USB Puppy from Linux
HOWTO create easy multi-boot USB Puppy from Windows


Observe! This solution requires, as stated in links above, the ISO file to be unfragmented on disk. If you downloaded rmprepusb you got wincontig also.
Go to /Program Files/RMPrepUSB/WINCONTIG and click on wincontig.exe. Then add folder /ISOS and execute a defragment action.
If I remember correctly this can be done with Shift+F2 when RMPrepUSB is started.

I tested around a little. Note I have my Grub4Dos bootrecord on USB and not on HD.

But I placed my ArchPup Puppy Linux in a folder on internal drive and put the following
in menu.lst

Code:
iftitle [if exist (hd1,0)/Linux/archpup-12.12.2.iso] archpup-12.12.2.iso
partnew (hd1,3) 0x00 (hd1,0)/Linux/archpup-12.12.2.iso
map  (hd1,0)/Linux/archpup-12.12.2.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)


It loads! Twisted Evil

Note for me hd0 is my usb and hd1 is my internal drive so if you want to test this
you should try.
Code:

iftitle [if exist (hd0,0)/ISOS/LazYPuppy-202-DE-005.iso] PhyTechL-202-005 iso
partnew (hd0,3) 0x00 (hd0,0)/ISOS/LazYPuppy-202-DE-005.iso
map  (hd0,0)/ISOS/LazYPuppy-202-DE-005.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)


To be complete a test should be made to check if partition 4 already is in use,

For me it works. Would you try it and report back?

can't see why it wouldnt work with bootrecord on HD?
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Mon 04 Feb 2013, 19:06    Post subject:  

USB_FlashDrive -----> sda: sda1 = (hd0,0) = File System: FAT32
Grub4dos -----> from QUIRKY LINUX - 1.40 where there is such a program as Grub4DosConfig-v.1.6.2

All variants were good for discovery that the Operating System requires the .sfs file.

Code:

title L_Puppy - test - 2.0.2 UUID - v1
find --set-root /images/LazYPuppy-202-EN-005.iso
map --heads=0 --sectors-per-track=0 /images/LazYPuppy-202-EN-005.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz iso_location=/images filename=/images/LazYPuppy-202-EN-005.iso uuid=2575-4789 edd=off
initrd /initrd.gz


Code:

title L_Puppy - test - 2.0.2 UUID - v2 !
find --set-root /images/LazYPuppy-202-EN-005.iso
map --heads=0 --sectors-per-track=0 /images/LazYPuppy-202-EN-005.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz iso_location=/images iso_filename=LazYPuppy-202-EN-005.iso uuid=2575-4789 edd=off
initrd /initrd.gz


Code:

title L_Puppy - test - 2.0.2 UUID - v2.1 !
find --set-root /images/LazYPuppy-202-EN-005.iso
map --heads=0 --sectors-per-track=0 /images/LazYPuppy-202-EN-005.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz iso_location=/images iso_filename=LazYPuppy-202-EN-005.iso fromusb bootfromiso=/images/LazYPuppy-202-EN-005.iso uuid=2575-4789 edd=off
initrd /initrd.gz


Code:

title L_Puppy - test - 2.0.2 UUID - v3 !
find --set-root /images/LazYPuppy-202-EN-005.iso
map --heads=0 --sectors-per-track=0 /images/LazYPuppy-202-EN-005.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz iso_location=/images iso_filename=/images/LazYPuppy-202-EN-005.iso uuid=2575-4789 edd=off
initrd /initrd.gz


Code:

title LazYPuppy-202-EN-005 ISO
find --set-root /images/LazYPuppy-202-EN-005.iso
map  (hd0,0)/images/LazYPuppy-202-EN-005.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)


Code:

title L_Puppy - test - 2.0.2 ISO
find --set-root --ignore-floppies /images/LazYPuppy-202-EN-005.iso
map --heads=0 --sectors-per-track=0 /images/LazYPuppy-202-EN-005.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz iso-scan=/images filename=LazYPuppy-202-EN-005.iso noeject
initrd /initrd.gz



A code's content can be copied into text editor by means of <Quote> mode.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

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


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

PostPosted: Tue 05 Feb 2013, 10:03    Post subject:  

Scooby wrote:

Code:

title PhyTechL-202-005 iso
partnew (hd0,3) 0x00 (hd0,0)/ISOS/LazYPuppy-202-DE-005.iso
map  (hd0,0)/ISOS/LazYPuppy-202-DE-005.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)


I tried this on a flash drive with several Puppies and it worked. But some of them could not find their save file, no matter what options I picked. I believe that another user reported this problem.

[Edit] I finally got this to work correctly by using "puppy psavemark=1".
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Tue 05 Feb 2013, 14:10    Post subject:  

As a test, I set up the following system:

sda1 - NTFS Windows
sda2 - FAT32
sda4 - unused - THIS IS IMPORTANT!

The system booted off Grub4Dos in sda1.

Partition sda2 contained a number of Puppy ISOs.

The menu.lst entries for Puppy were
Code:
title Precise 372 ISO
partnew (hd0,3) 0x00 (hd0,1)/precise-372.iso
map  (hd0,1)/precise-372.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)

title Slacko 54 ISO
partnew (hd0,3) 0x00 (hd0,1)/slacko-54.iso
map  (hd0,1)/slacko-54.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)

title Lupu 528 ISO
partnew (hd0,3) 0x00 (hd0,1)/lupu-528.iso
map  (hd0,1)/lupu-528.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)


Savefiles were created in sda2. Each Puppy was booted with
Code:
puppy psavemark=2

In limited testing, this all worked correctly.

The same procedure successfully booted an Ubuntu 10.10 ISO. TInyCore worked, but required
Code:
map --heads=0 --sectors-per-track=0 (hd0,1)/tinycore.iso (0xff)

Here is a better way to do it with Puppy.
Code:
title Lupu 528 ISO
partnew (hd0,3) 0x00 (hd0,1)/lupu-528.iso
map  (hd0,1)/lupu-528.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz psavemark=2
initrd /initrd.gz

When booting off a flash drive, some Puppies may also need the "pmedia=usbflash" kernel argument.

Note: The FAT32 partition holding the ISOs does not need to be a primary partition. It can also be a logical volume.
Just replace all references to (hd0,1) with (hd0,x).

------------------------------------

Last edited by rcrsn51 on Wed 06 Feb 2013, 11:33; edited 11 times in total
Back to top
View user's profile Send private message 
Les Kerf

Joined: 24 Jun 2012
Posts: 198

PostPosted: Tue 05 Feb 2013, 16:36    Post subject:  

Scooby wrote:
I used this on USB, maybe you could try something like that on HD?
Never tried it on HD though


Code:

iftitle [if exist /Linux/lupu-528.iso] Puppy Linux 5.2.8
find --set-root /Linux/lupu-528.iso
map --heads=0 --sectors-per-track=0 /Linux/lupu-528.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz splash
initrd /initrd.gz


I tried the Easy2Boot Grub4Dos method with a hard drive and it worked for me. I mentioned it in the other Easy2Boot thread.
Les
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Wed 06 Feb 2013, 04:42    Post subject:  

rcrsn51 wrote:

...
The system booted off Grub4Dos in sda1.
...
Note: The FAT32 partition holding the ISOs does not need to be a primary partition. It can also be a logical volume.
Just replace all references to (hd0,1) with (hd0,x).
...


postfs1 wrote:
USB_FlashDrive -----> sda: sda1 = (hd0,0) = File System: FAT32
Grub4dos -----> from QUIRKY LINUX - 1.40 where there is such a program as Grub4DosConfig-v.1.6.2


There is an opportunity to load Operating System from an ISO.



ISO images of Operating Systems:
[-1-]'Quirky Linux - 1.40' = PuppyQuirkyLinux-1_40.iso
[-2-]'Free Dos - 1.0' = fdbasews.iso

USB Flash Drive:
sda:
2 partitions occupy the whole space on the USB Flash Drive
sda1(FAT32)
sda2(FAT32)

Scheme:
The user executes:
[-a-]formatting of the USB Flash Drive(in my case sda1 partition has been touched)
[-b-]launch of the 'Quirky Linux - 1.40' Operating System
[-c-]installation of the 'Grub4dos' onto USB Flash Drive
[-d-]copying of the every ISO onto USB Flash Drive
[-e-]editing of the text in the 'menu.lst' file
[-f-]launch of the computer with such a BIOS parameter as: 'booting from USB-hdd'

Result after use of ISO images: 2 new partitions: sda3 and sda4

Code:

#
# # #
#

#After activating of code out of menu.lst PMOUNT finds a new partition: sda3 = read only
#Reinstallation of Grub4dos removes new partition.
#0x00 = boot floppy(source: 'Free Dos - 1.0')
# ! ! !
#Parameters for booting: puppy pmedia=usbflash
# ! ! !
title PuppyQuirkyLinux-1_40.iso \nDevice ===> sda: [-1->]sda1=(hd0,0)=(fat32):/images/*.iso [-2->]sda2=(hd0,1)=(fat32)
partnew (hd0,2) 0x00 (hd0,0)/images/PuppyQuirkyLinux-1_40.iso
map  (hd0,0)/images/PuppyQuirkyLinux-1_40.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)

#After activating of code out of menu.lst PMOUNT finds a new partition: sda4 = read only
#Reinstallation of Grub4dos removes new partition.
#0x00 = boot floppy(source: 'Free Dos - 1.0')
title fdbasews.iso \nDevice ===> sda: [-1->]sda1=(hd0,0)=(fat32):/images/*.iso [-2->]sda2=(hd0,1)=(fat32)
partnew (hd0,3) 0x00 (hd0,0)/images/fdbasews.iso
map  (hd0,0)/images/fdbasews.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)

#
# # #
#

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

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


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

PostPosted: Wed 06 Feb 2013, 09:35    Post subject:  

postfs1 wrote:
partnew (hd0,2) 0x00 (hd0,0)/images/PuppyQuirkyLinux-1_40.iso
.....
partnew (hd0,3) 0x00 (hd0,0)/images/fdbasews.iso

You can use (hd0,3) for both of these. The partition gets re-used each time.
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Wed 06 Feb 2013, 11:02    Post subject:  

rcrsn51 wrote:
postfs1 wrote:
partnew (hd0,2) 0x00 (hd0,0)/images/PuppyQuirkyLinux-1_40.iso
.....
partnew (hd0,3) 0x00 (hd0,0)/images/fdbasews.iso

You can use (hd0,3) for both of these. The partition gets re-used each time.




postfs1 wrote:

...
There is an opportunity to load Operating System from an ISO.



ISO images of Operating Systems:
[-1-]'Quirky Linux - 1.40' = PuppyQuirkyLinux-1_40.iso
[-2-]'Free Dos - 1.0' = fdbasews.iso

USB Flash Drive:
sda:
2 partitions occupy the whole space on the USB Flash Drive
sda1(FAT32)
sda2(FAT32)
...

Result after use of ISO images: 2 new partitions: sda3 and sda4

Code:

...
#After activating of code out of menu.lst PMOUNT finds a new partition: sda3 = read only
...

#After activating of code out of menu.lst PMOUNT finds a new partition: sda4 = read only
...


There is an opportunity to recreate the ISO of Operating System in K3B what means that the user can add some amount of needful files to ISO, and later there will be an opportunity to use needful files from the 'Read Only' partition.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 299

PostPosted: Wed 06 Feb 2013, 12:21    Post subject:  

How did it go for der-schutzhund( what does it mean anyway? shit-dog?)
rcrsn51 wrote:

The system booted off Grub4Dos in sda1.

Partition sda2 contained a number of Puppy ISOs.

The menu.lst entries for Puppy were


And if you are a Lazy-dog like me you use the Easy2boot automatic version.
No editing of menu.lst file. Just copy an ISO file to a specific folder and it will show up on next boot.

try Easy2Boot by steve at

rmprepusb.com

or

HOWTO create easy multi-boot USB Puppy from Linux
HOWTO create easy multi-boot USB Puppy from Windows

Does this work well?
Code:

kernel /vmlinuz psavemark=2


maybe I try to incorporate it somehow in Easy2Boot automatic version?
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Wed 06 Feb 2013, 14:43    Post subject:  

@Scooby:

Thank you for providing the key line to make ISO booting work.
Code:
partnew (hd0,3) 0x00 (hd0,1)/precise-372.iso

Does Easy2Boot always start by chainloading?
Code:
chainloader (0xff)

The advantage of a manual approach is that you get to customize the kernel arguments.
Code:
kernel /vmlinuz pmedia=usbflash psavemark=2
initrd /initrd.gz
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 299

PostPosted: Thu 07 Feb 2013, 07:36    Post subject:  

rcrsn51 wrote:
@Scooby:
Thank you for providing the key line to make ISO booting work.

you're welcome

rcrsn51 wrote:

Does Easy2Boot always start by chainloading?
Code:
chainloader (0xff)

The advantage of a manual approach is that you get to customize the kernel arguments.
Code:
kernel /vmlinuz pmedia=usbflash psavemark=2
initrd /initrd.gz



Yes it does but it can be altered.

What is the difference?

What will happen with config file onboard iso? Will it be ignored?

What will happen with other ISO's I mean like Ubuntu or Mint Linux live cd's.
will they start this way too?

if that is a problem I guess you could have a folder "puppy" from which
puppy linux isos boots automatically with pmedia=usbflash psavemark=2

Or it could be a menu item to somehow acttivate/deactivate and set psavemark to desired number.

For an Experienced user like you it is of course easier to just edit menu.lst but I want to
make a solution that is very easy for novice users maybe windows ones that are not
used to editing config files
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Thu 07 Feb 2013, 09:46    Post subject:  

Scooby wrote:
rcrsn51 wrote:
Does Easy2Boot always start by chainloading?

Yes it does but it can be altered.What is the difference?


It's the difference between booting off a Puppy Live CD versus doing a hard drive install. In the first case, you always have to go through the splash screen with its five-second pause.

Quote:
What will happen with config file onboard iso? Will it be ignored?

Yes.

How do you envision Easy2Boot? As a way to test out Linux distros without having to burn a CD? Or as a way to run them on a day-to-day basis without having to do any kind of install? My manual instructions above show how to set up the latter. But you may not want to incorporate them into Easy2Boot. They were just a "proof of concept".


Quote:
What will happen with other ISO's I mean like Ubuntu or Mint Linux live cd's. will they start this way too?


The most reliable way to boot a Linux ISO will be through chainloading because it simulates using the physical CD.


Quote:
if that is a problem I guess you could have a folder "puppy" from which puppy linux isos boots automatically with pmedia=usbflash psavemark=2

There isn't a problem. Lots of people routinely boot Puppy off the CD and type in any extra options.

BTW, on a USB drive, it's probably going to be "psavemark=1"

Quote:
Or it could be a menu item to somehow acttivate/deactivate and set psavemark to desired number.


When I was testing this, I found that trying to keep save files in the same partition as the ISOs made it more likely to create a "non-contiguousness" problem.
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 299

PostPosted: Thu 07 Feb 2013, 12:49    Post subject:  

rcrsn51 wrote:

How do you envision Easy2Boot? As a way to test out Linux distros without having to burn a CD? Or as a way to run them on a day-to-day basis without having to do any kind of install? My manual instructions above show how to set up the latter. But you may not want to incorporate them into Easy2Boot. They were just a "proof of concept".

I already use Easy2boot on a day to day basis(and have done so for quite some time now) with archpup which work without psavemark.
I like to be able to quickly test new Linuxes and work in another puppy also.

With help from steve who created Easy2boot I conjured up a way to boot one Linux iso by default after 5 seconds.
Before countdown is finished you can choose another Linux iso.
Thats how I prefer it since 90% of the time I work with archpup

For my version of Easy2Boot I will only do USB support.
I will not install to internal drive so I cannot test or develop.

I want it very novice user friendly. Easy to set up on both puppy and windows.

rcrsn51 wrote:

The most reliable way to boot a Linux ISO will be through chainloading because it simulates using the physical CD.

So I will give the user the option to choose then!

rcrsn51 wrote:
There isn't a problem. Lots of people routinely boot Puppy off the CD and type in any extra options.

OK, me myself wouldnt be happy with this. I would want it automated

rcrsn51 wrote:

BTW, on a USB drive, it's probably going to be "psavemark=1" savefile resides


yeah, I know about psavemark and how it works, I've used it plenty.
So perhaps a folder called puppy for puppy linux ISO's with psavemark=1 and another folder for chainloading?

I will test around with ither menu options or folder approach
rcrsn51 wrote:

When I was testing this, I found that trying to keep save files in the same partition as the ISOs made it more likely to create a "non-contiguousness" problem.


So defrag em!?
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 299

PostPosted: Thu 07 Feb 2013, 15:31    Post subject:  

rcrsn51 wrote:

Code:
title Lupu 528 ISO
partnew (hd0,3) 0x00 (hd0,0)/lupu-528.iso
map  (hd0,0)/lupu-528.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz psavemark=2
initrd /initrd.gz



I just wanted to add that if you put this in a .mnu file and together with lupu-528.iso
put the two files in folder _ISO/Linux on a USB stick set up with Easy2Boot
it would show up on menu and be bootable.

the two files needed
_ISO/Linux/lupu-528.iso
_ISO/Linux/lupu-528.mnu


I forgot since I dont use it so much myself but steve already implemented a scalable way of adding menu.lst items.

This way the .mnu files can be made by an "Expert" and just copied by a "Novice" to a folder to work.
Steve offers some .mnu files on his site Easy2Boot at the bottom.

Observe the lupu-528.mnu at Easy2Boot is a version were you have to extract main sfs and not the same as above
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Thu 07 Feb 2013, 16:44    Post subject:  

Each type of boot device ( HD, CD, USB ) requires different boot parameters. Put this inside the ISO file.

So make Easy2Boot look inside the selected ISO file for the .mnu file that`s for the device that`s booting.

Using an ISO file as a "universal" O.S. container is a great idea. The idea just needs to be completed.

This not only simplifies booting, but also unifies it into a "one method does all".
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 5 [69 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.1396s ][ Queries: 11 (0.0058s) ][ GZIP on ]