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 Sat 20 Sep 2014, 14:19
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
der-schutzhund

Joined: 26 Nov 2007
Posts: 781
Location: Blomberg / Germany

PostPosted: Sat 02 Feb 2013, 06:35    Post subject:  

Have a hard drive on a laptop partitioned from scratch:
1. partition fat32
2. part. ntfs
3. swap

An iso is in the first Partition (fat32) in / ISOS /
Lazy is a frugal inst. in / PhyTechL-202

three menu.lst - entries have been tested with grub4dos:

title PhyTechL-202-005 iso
map /ISOS/LazYPuppy-202-DE-005.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz iso-scan/filename=/ISOS/LazYPuppy-202-DE-005.iso quiet splash
initrd /initrd.gz
boot

title PhytechL-202-005-hd32
map (hd32)/ISOS/LazYPuppy-202-DE-005.iso (hd32)
map --hook
root (hd32)
chainloader (hd32)
boot

title Dieser Titel erscheint im Bootmen
fallback 2
find --set-root /ISOS/LazYPuppy-202-DE-005.iso
map /ISOS/LazYPuppy-202-DE-005.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

the iso is found and loaded the drivers, but if the files are searched, there is the message that will continue to search subdirectories and then starts the frugal Lazy.

It is as if the start.sfs the iso can not be opened.

In any case things do not go!
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sat 02 Feb 2013, 09:08    Post subject:  

der-schutzhund wrote:
It is as if the start.sfs the iso can not be opened.

Exactly. Puppy has three core files. Grub4dos is smart enough to find vmlinuz and initrd.gz inside the ISO. This gets Puppy started.

But then Puppy needs to find its SFS file. But it's not smart enough to look inside the ISO. So it looks elsewhere on the hard drive and finds it in your frugal install.

Other Linuxes have a boot option like "isoscan" to handle this situation, but Puppy does not.
Back to top
View user's profile Send private message 
der-schutzhund

Joined: 26 Nov 2007
Posts: 781
Location: Blomberg / Germany

PostPosted: Sat 02 Feb 2013, 09:14    Post subject:  

rcrsn51 wrote:
der-schutzhund wrote:
It is as if the start.sfs the iso can not be opened.

Exactly. Puppy has three core files. Grub4dos is smart enough to find vmlinuz and initrd.gz inside the ISO. This gets Puppy started.

But then Puppy needs to find its SFS file. But it's not smart enough to look inside the ISO. So it looks elsewhere on the hard drive and finds it in your frugal install.

Other Linuxes have a boot option like "isoscan" to handle this situation, but Puppy does not.


Is there a Bootmanager wich can handle this?
Back to top
View user's profile Send private message 
der-schutzhund

Joined: 26 Nov 2007
Posts: 781
Location: Blomberg / Germany

PostPosted: Sat 02 Feb 2013, 17:04    Post subject:  

with the zip on this side it will run but the sfs will not be found by Lazy-Puppy!
http://www.murga-linux.com/puppy/viewtopic.php?t=83583
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 307

PostPosted: Mon 04 Feb 2013, 07:57    Post subject:  

der-schutzhund wrote:
with the zip on this side it will run but the sfs will not be found by Lazy-Puppy!
http://www.murga-linux.com/puppy/viewtopic.php?t=83583


I downloaded Lazy and tried it with boot from USB, unpacked and still in ISO.
It works fine.

You tried the zipfile on HD? did you use the AUTO folder or did you use .mnu approach?

what was the error you receive during boot?

You may have to fiddle with root pointers
hd(0,1) in the files in /grub folder?

please if you find solution post it back here?

If I can find some time I will run a few tests
Back to top
View user's profile Send private message 
oui

Joined: 20 May 2005
Posts: 2078
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Mon 04 Feb 2013, 08:34    Post subject:  

Hi Wolfgang

You open 4 or 5 discussions about only 1 (ONE) subject

We answer 20 minutes in YOUR OWN language

and you see nothing because you have to much discussions open!

http://murga-linux.com/puppy/viewtopic.php?p=682281#682281

http://murga-linux.com/puppy/viewtopic.php?p=682285#682285

what will you really?

grub4dos

or

grub2?
Back to top
View user's profile Send private message 
oui

Joined: 20 May 2005
Posts: 2078
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Mon 04 Feb 2013, 08:43    Post subject:  

How is able to check this page:

http://puppylinux.org/wikka/GRUBforDOS

Pls announce here after that that the page is complete and if necessary updated. I will try to make a translation of it for Wolgang.
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 307

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: 9119
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: 9119
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: 219

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: 9119
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 
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.1198s ][ Queries: 12 (0.0072s) ][ GZIP on ]