Jump to content











Photo
- - - - -

Multiboot CD-ROM via Grub4DOS


  • Please log in to reply
120 replies to this topic

#101 cdob

cdob

    Gold Member

  • Expert
  • 1469 posts

Posted 02 July 2008 - 09:43 PM

It is not the purpose of the current experiments to boot Parted Magic.

Sorry, I don't undertand clearly so far.
Current beta Parted Magic does mount a ISO image and find pmagic.7z at mounted image.

Parted Magic is simply the mini-distro we are using to test our ideas.

Does current ideas relate on mounting a ISO image?
Does current ideas work at a Parted Magic 2.2 too?

If a more general solution is seeked (without mounting ISO image):
Why use a distro for testing with mounting ISO image?

To Post #65:
How does Parted Magic find pmagic.7z?
Does Parted Magic find file inside grub4dos mapped drive?
Does Parted Magic mount ISO image pmagic-svn.iso from physical CD-ROM and find file next?

Yes, it is doubtful, but heck, one can do some tests and explore someting new just for the sake of it.

Yes of course, testings are fine.
However often it's nice to define testing conditions and destination first.
This redjuce misunderstandings. And is required to use the same testing environment and interpret results.

You should think of this graft-point as something like a directory entry pointing to "nowwhere".

No a graft-point redirect input to another output.
A file 'a' at hard disk may get a file 'b' at CD. A directory can redirected too.
Some examples:
/XP_INST_XPS1/WIN51IP=nul:
/XP_INST_XPS1/WIN51IP.SP3=nul:
/XPS1/=multi/XPS1/I386
/XPS1/=XP_PRO_SLP_SP3/I386
/XP_INST_XPS1/I386/=XP_PRO_SLP_SP3/I386
/XPS1/$OEM$/=multi/XPS0/$OEM$
/XP_INST_XPS1/$OEM$/=multi/XPS0/$OEM$

/pmagic/pmagic-svn.iso=%temp%/pmagic-svn.iso

DOS did define a nul: device, so does windows still.
To create a empty file: redirect input nul: device to a output file

#102 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 03 July 2008 - 07:32 AM

Sorry, I don't undertand clearly so far.

You must go a few pages back to see how it all started.

SamK is trying to make a number of Linux based mini-distro's bootable through grub4dos.

The current parted magic works because, as seen on this thread:
http://partedmagic.c....php?f=11&p=663
Patrick Verner was so kind as to slightly modify the distro.
So the "original" problem is already solved, at least for this instance.

No a graft-point redirect input to another output.

I stand corrected :), I over-simplified the matter as a similitude to hopefully give SamK an easy way to "visualize" the concept.

jaclaz

#103 SamK

SamK

    Member

  • Members
  • 44 posts

Posted 06 July 2008 - 09:07 AM

(Extracted from post 16 http://partedmagic.c...php?f=11&t=151)
...Just imagine, you download ANY Linux based .iso or .img image, put it in a folder together with ANY other, make easily a menu.lst then run mkisofs with grldr as no-emulation bootsector and you have your Multiboot DVD ready...

(The following are all extracts from this thread http://www.boot-land...showtopic=4902)
...I will repeat myself for the hmmmth time, there is NO one-size-fits-all solution for .iso images. (yet)...

...the point is that every Linux distro is somewhat "focused" on a certain way of booting, and this is not necessarily "universal"...

...UNLESS the maker of the distro made it in such a way that it is ALREADY bootable from inside a .img or a .iso, it WILL NOT work "as is" in such a format through grub4dos or ANY OTHER bootloader...

...As said that you need to "adapt" what does not work "as is"....

...with Linux it should be prolly easy to have the "real" mode part of the booting auto-mount the .img or .iso and thus continue booting using "protected mode" native drivers and accessing perfectly allright the files in the image...

...Patrick Verner was so kind as to slightly modify the (PARTED MAGIC) distro...

...Remember that Patrick has been EXCEPTIONALLY present and positive in his attitude towards our requests and comments, Authors of other distro's or minidistro's may not be as much available to this kind of requests/suggestions...

...Ideally IF and WHEN we find a practical use for this feature...


At the present stage of development of Grub4DOS, the ability to boot ISOs depends upon the willingness of the distro developer to produce it in a Grub4DOS aware state, or for the end user to have sufficient skill to modify it to become usable by Grub4DOS.

It is unlikely that all developers will want to adapt their distro to Grub4DOS. Currently this leaves the route of user modification.

The present exploration may result in a process of modifying an ISO that is applicable to a wide range of distros and thereby represent a more standardized method. This repeatability is thereby a means of removing some of the 'hit and miss' which is involved in directly booting ISOs at the moment. Possibly the modification might able to be conducted by some form of interactive script, making it usable by less technically able users.

This may be seen as an application of the Grub4DOS technology rather than an inherent function of it.

#104 e2p2

e2p2

    Member

  • Members
  • 51 posts
  • Location:NC, USA
  •  
    United States

Posted 02 August 2008 - 11:15 PM

Here is a GRUB4DOS section that I am currently using to run Parted Magic 3.0 from the pmagic-svn.iso. The was pulled off of the Parted Magic forum and slightly modified. I have tested it on both a USB Thumb drive and CD, both worked fine. I used the latest ISO available from http://partedmagic.com/beef_drapes/.


find --set-root /boot/IMG/pmagic-svn.iso

map /boot/IMG/pmagic-svn.iso (hd32)

map --hook

root (hd32)

kernel (hd32)/pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 ramdisk_size=25000 noeject iso_location=/boot/IMG/pmagic-svn.iso

initrd (hd32)/pmagic/initrd


#105 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 03 August 2008 - 02:20 AM

@e2p2
Thank you, it works well.

#106 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 11 August 2008 - 08:22 AM

For your information, I read somewhere that USB U3 key (which has a CDFS partition built-in in hardware) can be used
to boot as CD on computers which do not have CD/DVD reader (like the ultra-notebooks or the new netbooks). The trick is to
use a specific software (customizer) to put the desired ISO image to the CDFS partition normally used for U3 Launchpad.
You can revert back to U3 launchpad by using the manufacturer U3 Launchpad ISO image.

#107 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 11 August 2008 - 09:48 AM

For your information, I read somewhere .....


"somewhere" is a bit vague....:cheers:

There is a prolly newish thread about this here:
http://www.msfn.org/...th-t121502.html

:cheers:

jaclaz

#108 e2p2

e2p2

    Member

  • Members
  • 51 posts
  • Location:NC, USA
  •  
    United States

Posted 12 August 2008 - 04:20 AM

The U3 Method to get XP Install working off of a USB Stick works very well. It makes the U3 USB device appear to be a CD-ROM drive, this means that the computer will need to support booting off of a USB CD-ROM drive.

#109 dlevens

dlevens
  • Members
  • 2 posts
  •  
    United States

Posted 03 December 2008 - 09:17 AM

Here is a GRUB4DOS section that I am currently using to run Parted Magic 3.0 from the pmagic-svn.iso. The was pulled off of the Parted Magic forum and slightly modified. I have tested it on both a USB Thumb drive and CD, both worked fine. I used the latest ISO available from http://partedmagic.com/beef_drapes/.


find --set-root /boot/IMG/pmagic-svn.iso

map /boot/IMG/pmagic-svn.iso (hd32)

map --hook

root (hd32)

kernel (hd32)/pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 ramdisk_size=25000 noeject iso_location=/boot/IMG/pmagic-svn.iso

initrd (hd32)/pmagic/initrd


This was working great, but trying this on version 3.2 of parted magic the system freezes just before it loads the XFCE desktop. I was able to get it to work by changing the code to use xvesa, but all of my attempts to configure xorg failed. xorg on 3.0 worked great with vesa driver, 24bit, 1024x768. But no combo of xorg works on 3.2 for some reason.

Here is the code that works for 3.2 (I downloaded the normal iso pmagic-3.2.iso.zip)
title Parted Magic 3.2

find --set-root /boot/images/pmagic-3.2.iso

map /boot/images/pmagic-3.2.iso (hd32)

map --hook

root (hd32)

kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet xvesa tmpfs_size=180M ramdisk_size=25000 noeject iso_location=/boot/images/pmagic-3.2.iso

initrd /pmagic/initrd

also I get this error just after the two penguins
usb 2-1: device not accepting address 2, error -71
hub 2-0:1,0: unable to enumerate USB device on port 1

then things continue to load as normal

Dennis

#110 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 03 December 2008 - 01:41 PM

Why not using pmagic-grub4dos-3.2.iso.zip ?

Or does it have the same problems?

Could it be related to the 300 Mb requisite?:
http://forums.parted...ic.php?f=2&t=22

The PartedMagic Forum is back on (it was down and unfortunately all old data appears to be lost), you could pose your question directly there to Patrick:
http://forums.partedmagic.com/

jaclaz

#111 dlevens

dlevens
  • Members
  • 2 posts
  •  
    United States

Posted 03 December 2008 - 09:16 PM

Why not using pmagic-grub4dos-3.2.iso.zip ?

Or does it have the same problems?

Could it be related to the 300 Mb requisite?:
http://forums.parted...ic.php?f=2&t=22

The PartedMagic Forum is back on (it was down and unfortunately all old data appears to be lost), you could pose your question directly there to Patrick:
http://forums.partedmagic.com/

jaclaz


Both versions have the same problem. Not releated to the 300mb issue, as I have 4gb of ram. This appears to be a driver issue or display issue. Using xvesa works for now so not going to pursue it further.

Dennis

#112 Stian

Stian
  • Members
  • 1 posts
  •  
    Norway

Posted 24 November 2009 - 11:50 PM

So is there any news on Clonezilla? will it work on grub4dos ?

#113 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 November 2009 - 08:10 AM

So is there any news on Clonezilla? will it work on grub4dos ?


Why don't you try it?

We do miss reports on Clonezilla, it works on a stick with syslinux:
http://www.boot-land...?showtopic=9225
http://www.boot-land...?showtopic=9169

so it will most probably work with grub4dos as well. :thumbup:



jaclaz

#114 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 28 March 2010 - 04:18 PM

So is there any news on Clonezilla? will it work on grub4dos ?


For USB boot using Grub4DOS:
download and extract just the \live folder from clonezilla-live-1.2.3-8.zip - e.g. D:\cz1238\live

Run RMPrepUSB - format as FAT32+HDD+ForceLBA(optional)+MSDOS + copy files + point to extracted D:\cz1238 folder and click Prepare
Now click on Install Grub bootloader
Now add menu.lst file as follows


title CLONEZILLA (wait 2-3 minutes and hit Enter twice!)
;long wait at splash screen but it works!
kernel /live/vmlinuz1 locale=us boot=live persistent
initrd /live/initrd1.img

This works but it takes a long time to load at the splash screen and you have to hit Enter twice when you see some text at the top pixel line at the screen (tested on EeePC).

#115 mkruger

mkruger
  • Members
  • 5 posts
  •  
    United States

Posted 18 January 2011 - 03:30 PM

This is an older thread, but I thought it might be helpful to offer the following working Grub4DOS entries which work for me when added to a CD-ROM image created by UBCD4WIN's UBUSB tool:



title PQ-IMAGECENTER -TCP/IP BOOT

find --set-root --ignore-floppies /pqnet.img

map --mem /pqnet.img (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

boot



title PQ-IMAGECENTER - Local Disk to Disk

find --set-root --ignore-floppies /pqlocal.img

map --mem /pqlocal.img (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

boot



title Ultimate Boot CD for DOS v5.03 Submenu 

map /ubcd503.iso (hd32) || map --mem /ubcd503.iso (hd32)

map --hook

chainloader (hd32)

boot



title Start Acronis - 13 - Western Digital Edition

map /acronis-13-western.iso (hd32) || map --mem /acronis-13-western.iso (hd32)

map --hook

chainloader (hd32)

boot



title Start acronis - 11 - Seagate/Maxtor Edition

map /acronis-11-seagate.iso (hd32) || map --mem /acronis-11-seagate.iso (hd32)

map --hook

chainloader (hd32)

boot


I'm still working on direct mapping parted magic 5.9. I am able to direct map the ISO when booted from USB, but not via CDROM.


title Parted Magic 5.9 

find --set-root --ignore-floppies /pmagic-5.9.iso

map /pmagic-5.9.iso (hd32) || map --mem /pmagic-5.9.iso (hd32)

map --hook

chainloader (hd32)

boot


That configuration results in: "Error 62: The number of heads must be specified. The '--heads=0' option tells map to choose a value (but may be unsuitable) for you."

#116 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 18 January 2011 - 04:03 PM


title Parted Magic 5.9 

find --set-root --ignore-floppies /pmagic-5.9.iso

map /pmagic-5.9.iso (hd32) || map --mem /pmagic-5.9.iso (hd32)

map --hook

chainloader (hd32)

boot


That configuration results in: "Error 62: The number of heads must be specified. The '--heads=0' option tells map to choose a value (but may be unsuitable) for you."


Try (UNrenamed .iso):

title PartedMagic 5.9 from iso
find --set-root /pmagic/pmagic-5.9.iso
map --heads=0 --sectors-per-track=0 /pmagic/pmagic-5.9.iso (0xff)
map --hook
root (0xff)
chainloader

or (renamed .iso):

PartedMagic 5.9 from iso renamed
find --set-root /pmagic/pmagic59.iso
map --heads=0 --sectors-per-track=0 /pmagic/pmagic59.iso (0xff)
map --hook
root (0xff)
kernel /pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us iso_filename=/pmagic/pmagic59.iso
initrd /pmagic/initramfs



Again (I must have written these sentences a hundred times by now):
  • the boot directive is NEVER needed in a menu.lst entry (it is IMPLIED) and ALWAYS needed on command line.
  • ALWAYS type commands one by one on command line when experimenting and NEVER use a pre-made menu.lst entry (as this latter approach may give NOT an adequate feedback in case of errors - you don't actually know WHICH among the set of commands in the entry produced the error)

:)
Wonko

#117 mkruger

mkruger
  • Members
  • 5 posts
  •  
    United States

Posted 19 January 2011 - 12:37 AM

Thanks Wonko, your suggestions were helpful.

title Parted Magic 5.9 

find --set-root /pmagic-5.9.iso

map --heads=0 --sectors-per-track=0 /pmagic-5.9.iso (hd32) 

map --hook

root (hd32)

chainloader


#118 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 19 January 2011 - 09:25 AM

I use a Multiboot USB Stick.
I've tried to start the following tool without success: PC Regedit (http://www.pcregedit.com/product.html)


Grub4Dos entry:

title PC Disk Clone Free

find --set-root --ignore-floppies /images/pcregedit.iso

map --unhook

map --unmap=0:0xff

map --heads=0 --sectors-per-track=0 /images/pcregedit.iso (0xff)

map --hook

root (0xff)

kernel /BOOT/LINUX iso-scan/filename=/images/pcregedit.iso qiuet init=/rc console=tty1 fullscreen irqpoll endsign

initrd /RD

Cab anyone help?

#119 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 19 January 2011 - 09:52 AM

@nierewa
Starting a new thread besides being FREE (BOTH as in freedom and in free beer) is suggested.

This is a thread that was thoughtlessly revived but that IMHO should be put at rest.

BTW this thread, if you read it's title, is about "Multiboot CD-ROM via Grub4DOS" and you are talking of a USB stick, so it will be more difficult to find by other people looking for a USB stick solution.

The general idea is:
  • you have a problem
  • you search on the board to see if the same problem has already been solved
  • you further search the board for an existing thread with EXACTLY the same topic and post to it
  • OR you post a new thread about it (in the proper forum)
  • hopefully someone helps you (and this may take several posts back and forward)
  • if the problem is solved and if it is (hd32) or (0xFF) mapping related, you (optionally) add a post about it on the "working setups" thread:
    http://reboot.pro/5041/

This way we have shorter and more "focused" topics, additionally somehow "indexed" in the "working setups" threads.

:whistling:
Wonko

#120 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 19 January 2011 - 10:41 AM

Yeah, you allright :whistling:

#121 ito pedalracer

ito pedalracer

    Member

  • Members
  • 35 posts
  •  
    Barbados

Posted 21 April 2013 - 12:39 PM

Puh so much reading on getting CLonezilla running with grub4dos.

 

 

I think I stick with my old and issueless way to call a 'Puppy' Linux with grub4dos

and then install CLonezilla and all the other stuff (TestDisk etc. DD...) in Puppy itsself.

 

Hassleless and update'able'. At least I hope so.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users