Jump to content











Photo
- - - - -

ISO mapping with MEMDISK is possible now


  • Please log in to reply
52 replies to this topic

#1 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 19 June 2009 - 08:25 AM

ISO mapping with MEMDISK is possible now.

I tried it with Parted Magic 4.2. Rename the pmagic-4.2.iso file to pmagic-4.1.iso, else Parted Magic won't find the iso (Patrick forgot to update the version number).
UI menu.c32



LABEL pmagic

MENU LABEL Parted Magic V4.2 with MEMDISK ISO emulation

TEXT HELP

 Linux distro for manipulating partitions (eg. create, resize).

ENDTEXT

LINUX memdisk

APPEND iso

INITRD /pmagic-4.1.iso

The following code (new preferred syslinux syntax):
LINUX memdisk

APPEND iso

INITRD /pmagic-4.1.iso
does the same as:
KERNEL memdisk

APPEND iso initrd=/pmagic-4.1.iso

For the last MEMDISK with iso emulation, get the attached file.
You can compile it yourself if you want (in the master syslinux git branch now): http://git.kernel.or...fcb70c806c0f994
SYSLINUX 3.84-pre4 doesn't have all patches. The attached version has them and supports floppy emulation (PloP ISO) or hard disk emulation (Dell Diagnostics ISO) ISO's.

SYSLINUX 3.82 doesn't has this new MEMDISK yet.
You can compile it yourself if you want: http://git.etherboot...ads/memdisk-iso



Edit: new MEMDISK attached (without debugging messages and 'press a key' message)

Edit: new MEMDISK attached. It supports booting more iso's than previous versions (the G4U iso boots now).
Edit: new MEMDISK attached. It supports booting more iso's than previous versions (the PloP iso boots now, which uses floppy emulation).
Edit: Syslinux 3.84-pre5 and later has this patches, so the attachment isn't needed anymore.

Test versions of Syslinux (pre versions):
http://www.kernel.or...slinux/Testing/
Stable versions of Syslinux:
http://www.kernel.or.../boot/syslinux/

A big thank you goes to Sha0 for making MEMDISK capable of booting ISO's.

The ISO is mapped to BIOS drive 0xA0 (same drive as drive (hd32) in grub4dos).

Edit: New version of MEMDISK: The ISO is mapped to BIOS drive 0xE0 (same drive as drive (hd96) in grub4dos). If 0xE0 already exists (is your normal CD drive for example, this drive is shifted upwards (becomes 0xE1) and the emulated iso will be available as 0xE0. So if you boot several ISO's after each other (ISO's in ISO's) with MEMDISK the old CD drives will shift one BIOS drive up.

Currently only memory mapping is implemented. Direct mapping might be added in the future.

All iso's that can be booted with grub4dos iso emulation (memory mapped), can probably be booted with memdisk too (if you have enough ram of course).
http://www.boot-land...?showtopic=5041
The same limitations as for grub4dos iso emulation are true for memdisk iso booting.
See: http://diddy.boot-la...es/map.htm#hd32

WinVBlock driver can be used to detect and use MEMDISK and Grub4DOS memdisks in Windows (you can boot from it): http://www.boot-land...?showtopic=8168
  • madmax69 likes this

#2 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 19 June 2009 - 09:12 AM

now that is an excellent improvement . thanks a lot icecube for the head up .

im wondering if i can use this MEMDISK with G4D and syslinux at the same time ? well i guess i can .

#3 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 19 June 2009 - 09:15 AM

For grub4dos, the following should work (not tested):
title Parted Magic V4.2

kernel /memdisk iso

initrd /pmagic-4.1.iso


#4 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 20 June 2009 - 03:06 PM

Hi There,
Tried the attached memdisk with the following code using latest pxelinux

KERNEL memdisk
APPEND iso initrd=/pmagic-4.1.iso

but with no success : pmagic complains that it cant find the squashfs.

Did I miss a step?

Thank,
Erwan.

#5 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 20 June 2009 - 03:21 PM

For PXE, you need the PXE version of Parted Magic.
The PXE version consists only of a kernel (bzImage) and a large initramfs file. This initramfs contains the pmagic.sqfs file.

In the CD and USB versions of Parted Magic the pmagic.sqfs file is a separate file.

Because Parted Magic booted with PXE, doesn't need to find the iso file, you can use pmagic-4.2.iso as filename. But you need to create this iso yourself for the PXE version:
  • Extract the iso you already downloaded, replace the file initramfs with the file from the PXE version and delete the /pmagic/pmodules/pmagic.sqfs file.
  • Remaster the iso: http://partedmagic.c...e-iso-file.html


#6 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 20 June 2009 - 03:57 PM

Thanks icecube, works beautifully ;)
The iso support for memdisk is very nice !

Now, I am going to try the same with http loading instead of tftp.

/Erwan

edit : confirmed, this works with gpxelinux & http as well and this is blasting fast !

label Parted Magic 42 memdisk + http
KERNEL memdisk
APPEND iso initrd=http://192.168.1.100/images/pmagic/pmagic-4.2.iso

#7 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 23 June 2009 - 09:04 PM

ice cube , i was wondering if u have tested ram based live xp iso with syslinux yet ?

i mean with memdisk approach..

#8 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 23 June 2009 - 10:16 PM

@maanu
I never have had a RAM based liveXP, so I don't know.
But it will probably work, because grub4dos can boot such an iso (according to Lancelot): http://www.boot-land...?...=5041&st=20

@all
I uploaded a new memdisk build (without debugging messages and 'press a key' message) to my first post.
All iso's that work with grub4dos (if you use memory mapped iso's), should work with memdisk too.

#9 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 24 June 2009 - 12:10 PM

thats cool . i ll for sure try and test it . thanks.. :lol:

#10 delicatepc

delicatepc

    Member

  • Members
  • 42 posts
  •  
    United States

Posted 27 July 2009 - 08:30 PM

I tried it with Parted Magic 4.2. Rename the pmagic-4.2.iso file to pmagic-4.1.iso, else Parted Magic won't find the iso (Patrick forgot to update the version number).


What do you mean Patrick forgot to update the version #? Is Patrick a developer of Parted Magic? And is Parted Magic referencing itself as an iso name pmagic-4.1.iso (doesn't sound right/possible).

Apologies if its a incredibly dense question.

thanks,
dpc

#11 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 27 July 2009 - 08:41 PM

What do you mean Patrick forgot to update the version #? Is Patrick a developer of Parted Magic? And is Parted Magic referencing itself as an iso name pmagic-4.1.iso (doesn't sound right/possible).

Patrick Verner is the main developer of Parted Magic.
When Parted Magic starts it executes a startup script, which did start in Parted Magic 4.2 (and 4.1) with:
VERSION=pmagic-4.1.iso
So when Parted Magic 4.2 does look for the Parted Magic iso, it looks for its additional file in /pmagic/pmodules. If the file pmagic.sqfs isn't foun in this directory, Parted Magic will look for the complete iso file in /, /images and /pmagic. It looks for the filename specified in the VERSION variable. So Parted Magic 4.2 will look for pmagic-4.1.iso instead of pmagic-4.2.iso.

#12 risolutore

risolutore

    Frequent Member

  • Advanced user
  • 311 posts
  •  
    Italy

Posted 28 July 2009 - 08:40 AM

for pmagic grub4dos 4.3 I renamed to pmagic-4.o.iso
is this necessary? (Suppose the iso image in the root of USB drive and)
title Parted Magic 4.0 (iso in / and direct mapping and loading new grub4dos configfile)

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

map /pmagic-4.0.iso (hd32)

map --hook

root (hd32)

configfile /boot/grub/grub4dos.lst


#13 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 28 July 2009 - 11:33 AM

For Parted Magic 4.3, use pmagic-4.3.iso as filename.

It was a bug in Parted Magic 4.2, so normally you shouldn't change the filename.

#14 v_h

v_h

    Newbie

  • Members
  • 21 posts

Posted 30 July 2009 - 03:30 PM

ice cube , i was wondering if u have tested ram based live xp iso with syslinux yet ?

i mean with memdisk approach..

Just tried LiveXP_RAM.iso (50Meg cab compressed Boot Cd created with the BootSDI script) and it booted OK.

#15 delicatepc

delicatepc

    Member

  • Members
  • 42 posts
  •  
    United States

Posted 31 July 2009 - 03:34 PM

Get the MEMDISK with iso emulation from the attached file.
SYSLINUX 3.82 doesn't has this new MEMDISK yet.

Is the new memdisk in syslinux 3.83pre1/2/3/4/5?

thank you,
dpc

#16 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 31 July 2009 - 05:08 PM

No, the ISO booting capable MEMDISK isn't yet in Syslinux 3.83-pre3. Andy Tim Sha0 will probably work on it again, this weekend, so maybe it will be included in one of the following prereleases.

I will let you know when it is available.

#17 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 04 August 2009 - 12:10 PM

New version of ISO booting capable MEMDISK is available.
See my first post for the new version.

The G4U iso boots now.

Thanks to Andy Tim Sha0 for his great work.

#18 dorux

dorux

    Newbie

  • Members
  • 12 posts
  •  
    Germany

Posted 08 August 2009 - 09:39 AM

Thank you !

i'll try it with pxe in win

#19 unclemonty

unclemonty
  • Members
  • 2 posts
  •  
    United Kingdom

Posted 11 November 2009 - 06:16 PM

The git link in your original post no longer works, and this doesn't seem to have made it's way into the main isolinux releases. Aside from the file attached to your post, is there any other way to obtain the new memdisk version and/or will it be included in isolinux?

Thanks.

#20 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 11 November 2009 - 06:40 PM

Updated git link in first post.
AndyTim changed his name to sha0 on his git tree.

It will be included in Syslinux, when all patches of the current MEMDISK are also in the ISO booting MEMDISK.

#21 unclemonty

unclemonty
  • Members
  • 2 posts
  •  
    United Kingdom

Posted 12 November 2009 - 10:56 AM

Thanks :drunk:

Do you know of any examples in getting the Etherboot PXE (gPXE) images to work with the memdisk ISO version? tftp is very slow and the http functionalities of the Etherboot images offer a great way to circumvent this for large ISO files.

#22 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 12 November 2009 - 07:17 PM

I don't know how the gPXE syntax. Is it the same as for PXELINUX?

#23 was_jaclaz

was_jaclaz

    Finder

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

Posted 12 November 2009 - 07:41 PM

@unclemonty
check the TFTP32 section:
http://www.boot-land...hp?showforum=58
and the "Lan and any other methods":
http://www.boot-land...hp?showforum=12
pretty much anyrthing pxe related is discussed there.

Check for posts/threads by user erwan.l, I seem to remember e posted something related to your question. :)

:drunk:

jacalz

#24 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 16 November 2009 - 04:22 PM

OK. :)

Booting WinPE 2.1 ISO (pe21.iso) located in WinPE 2.1 + memdisk ISO.

Tested from VirtualBox CD Drive.


WinPE 2.1 + memdisk CD-ROM:

Directory of D:\

11/16/2009 07:22 AM <DIR> BOOT
01/18/2008 04:45 AM 333,203 BOOTMGR
11/16/2009 07:21 AM <DIR> EFI
11/16/2009 07:22 AM <DIR> ISOLINUX
11/16/2009 07:23 AM <DIR> SOURCES
11/16/2009 07:21 AM <DIR> TOOLS
1 File(s) 333,203 bytes
5 Dir(s) 0 bytes free

Directory of D:\ISOLINUX

11/16/2009 07:22 AM <DIR> .
11/16/2009 07:22 AM <DIR> ..
11/15/2009 08:10 PM 14,336 ISOLINUX.BIN
11/16/2009 07:23 AM 232 ISOLINUX.CFG
08/03/2009 06:42 PM 24,972 MEMDISK
11/15/2009 08:09 PM 57,396 MENU.C32
11/16/2009 05:52 AM 130,138,112 PE21.ISO
01/04/2008 08:23 AM 2,048 PE21BOOT.BIN
6 File(s) 130,237,096 bytes
2 Dir(s) 0 bytes free


MENU:

D:\ISOLINUX>type isolinux.cfg

default menu.c32
prompt 0

label pe21
menu label ^P) Boot Custom Windows PE 2.1
kernel pe21boot.bin

label pe21.iso
menu label ^Q) Boot Custom Windows PE 2.1 ISO with memdisk
linux memdisk
append iso
initrd pe21.iso


CREATE WinPE 2.1 + memdisk ISO FILE:

Rename etfsboot.com to pe21boot.bin

oscdimg.exe -m -n -b<path to isolinux.bin> <ISO source directory> <ISO file>

Regards :drunk:

#25 cdob

cdob

    Gold Member

  • Expert
  • 1469 posts

Posted 16 November 2009 - 07:44 PM

oscdimg.exe -m -n -b<path to isolinux.bin> <ISO source directory> <ISO file>

This expect a friendly BIOS. Syslinux request to adjust the boot info table: -boot-info-table
http://syslinux.zyto...ex.php/ISOLINUX




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users