Jump to content











Photo
- - - - -

booting the partedmagic grub4dos iso version 3.4


  • Please log in to reply
14 replies to this topic

#1 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 22 December 2008 - 01:45 PM

Hi all,

I use the grub3dos iso image and boot it from grub
I keep having trouble everytime a new version comes out.

with 3.1 this worked fine...(renamed the iso to pmagic-grub4dos.iso so i woill not have to change the script everytime a new version comes out)
---
TXTAddLine,"%MenuFile_GRUB%","title Parted Magic Linux 3.x (Runs from RAM)","Append"
TXTAddLine,"%MenuFile_GRUB%","find --set-root /pmagic-grub4dos.iso","Append"
TXTAddLine,"%MenuFile_GRUB%","map /pmagic-grub4dos.iso (hd32)","Append"
TXTAddLine,"%MenuFile_GRUB%","map --hook","Append"
TXTAddLine,"%MenuFile_GRUB%","root (hd32)","Append"
TXTAddLine,"%MenuFile_GRUB%","kernel (hd32)/pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 ramdisk_size=25000 noeject noparavirt iso_location=#$q/pmagic-grub4dos.iso#$q","Append"
TXTAddLine,"%MenuFile_GRUB%","initrd (hd32)/pmagic/initrd","Append"
TXTAddLine,"%MenuFile_GRUB%","lock","Append"
TXTAddLine,"%MenuFile_GRUB%"," ","Append"
---

with 3.4 it no longer works. It starts booting and errors out with: xorg: error while loading shared libraries libxfont.so.1:....

Can anyone help me get this working again and/or can anyone point me to were i can find information updated information for changes needed when new version come out

Thanks

Markus

#2 was_jaclaz

was_jaclaz

    Finder

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

Posted 22 December 2008 - 01:58 PM

Sounds more like a Linux-side problem. :cheers:
Why don't you ask this on the Parted Magic Forum?:
http://forums.partedmagic.com/

Do 3.2 and 3.3 work?

It seems like 3.4 is a "minor fix release", but it may have introduced a bug.

jaclaz

#3 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 22 December 2008 - 02:01 PM

already asked in the parted magic forum...

I have no working dl link for 3.2 and 3.3 has (as someone else wrote in some other forum) the same problem...

As the last time i had this problem (from 3.0 to 3.1) a user from this forum gave to helping info i thought i ask here again...this is somewhat my homeforum.-))

#4 was_jaclaz

was_jaclaz

    Finder

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

Posted 22 December 2008 - 02:12 PM

...this is somewhat my homeforum.-))


Yep, but at the time it was on the "grub4dos" side.

I guess that there are not many actual Linux experts here. :cheers:

Is your google broken? ;)
http://pasm-mirrors.com/?id=00009
http://www.digitalin...artedmagic/old/

:cheers:

jaclaz

#5 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 22 December 2008 - 04:36 PM

this works:

put the iso in / on the CD

it must be named pmagic-3.4.iso (for future versions 3.5, 3.6...)

use this to boot the iso

title Parted Magic Linux 3.x
find --set-root /pmagic-3.4.iso
map /pmagic-3.4.iso (hd32)
map --hook
root (hd32)
chainloader (hd32)

the main difference is that i now get the grub menu from the partedmagic disc, but this is OK for me...

#6 was_jaclaz

was_jaclaz

    Finder

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

Posted 22 December 2008 - 04:57 PM

the main difference is that i now get the grub menu from the partedmagic disc, but this is OK for me...


It may be OK with you, but not with me. :cheers:

This way grldr is loaded two times. ;)

Inside pmagic-grub4dos-3.4.iso (which needs to be renamed to pmagic-3.4.iso) there is this menu.lst:

splashimage /pmagic/splashpm.xpm.gz

default 0

timeout 30



title  Default settings (Runs from RAM / Ejects CD)

kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet tmpfs_size=220M ramdisk_size=25000

initrd /pmagic/initrd



title  Do not eject CD (*emulators)

kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet tmpfs_size=220M ramdisk_size=25000 noeject noreplace-paravirt

initrd /pmagic/initrd



title  Alternate graphical server

kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet xvesa tmpfs_size=220M ramdisk_size=25000

initrd /pmagic/initrd



title  Safe Graphics settings (vga=normal)

kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=normal sleep=0 tmpfs_size=220M ramdisk_size=25000

initrd /pmagic/initrd



title  Failsafe settings

kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=normal sleep=0 acpi=off noapic nolapic nopcmcia noscsi nogpm consoleboot nosmart tmpfs_size=220M ramdisk_size=25000

initrd /pmagic/initrd



title  Console (Boots to the shell)

kernel /pmagic/bzImage noapic  root=/dev/ram0 init=/linuxrc keymap=us livecd vga=normal sleep=0 consoleboot tmpfs_size=220M ramdisk_size=25000

initrd /pmagic/initrd



title Local boot

rootnoverify (hd0)

chainloader +1



title Reboot

reboot



title Memtest86+

kernel /pmagic/memtest

Consequently this entry in the "external" menu.lst should work allright:

title Parted Magic Linux 3.x
find --set-root /pmagic-3.4.iso
map /pmagic-3.4.iso (hd32)
map --hook
root (hd32)
chainloader (hd32)
configfile /menu.lst


Or if you want just one of the options, replace the

chainloader (hd32)
configfile /menu.lst


with any of the "couples" kernel/initrd of the internal menu.

jaclaz

#7 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 22 December 2008 - 05:03 PM

OK, thanks...for now it works, but i will keep it in mind for the next version i release:-)

#8 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 22 December 2008 - 06:16 PM

I posted something more at http://forums.parted...h...&p=190#p190 before I read this topic.

Can someone test my suggestions? I never worked with grub4dos (I like the syslinux syntax more).

Edit: link should work now (did choose Post Link the first time)

#9 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 22 December 2008 - 06:22 PM

link does not work for, had to copy and past....

http://forums.parted...h...&p=190#p190

#10 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 22 December 2008 - 09:48 PM

The relevant part of the post.

If you boot Parted Magic with grub4dos iso emulation without adding the iso_location= parameter:
  • You can place the iso everywhere on a CD or DVD (don't rename it).
  • If you are booting from a flash drive or a hard disk, you can place the iso in (don't rename it):
    /
    
    /pmagic/
    
    /images/
The following grub4dos entry works:
EDIT: removed one method, due complaints of jaclaz :cheers: .

Loads the grub4dos menu from the iso with the grub4dos version that you have on your own CD/DVD/USB/HDD (use configfile /grub4dos.lst or configfile /menu.lst: contains the same contents now, can change in the future):
title Parted Magic Linux 3.4

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

map /pmagic-3.4.iso (hd32)

map --hook

root (hd32)

configfile /grub4dos.lst


If there is enough interest we can add a pmagic.lst in the pmagic-grub4dos-3.4.iso.zip that can be used to be loaded as config file by grub4dos (so outside the actual iso).

Contents of pmagic.lst:

find --set-root /pmagic-3.4.iso
map /pmagic-3.4.iso (hd32)
map --hook
root (hd32)


splashimage /pmagic/splashpm.xpm.gz
default 0
timeout 30

title Default settings (Runs from RAM / Ejects CD)
kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet tmpfs_size=220M ramdisk_size=25000 noeject iso_location=/pmagic-3.4.iso
initrd /pmagic/initrd

title Do not eject CD (*emulators)
kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet tmpfs_size=220M ramdisk_size=25000 noeject noreplace-paravirt iso_location=/pmagic-3.4.iso
initrd /pmagic/initrd

title Alternate graphical server
kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet xvesa tmpfs_size=220M ramdisk_size=25000 noeject iso_location=/pmagic-3.4.iso
initrd /pmagic/initrd

title Safe Graphics settings (vga=normal)
kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=normal sleep=0 tmpfs_size=220M ramdisk_size=25000 noeject iso_location=/pmagic-3.4.iso
initrd /pmagic/initrd

title Failsafe settings
kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=normal sleep=0 acpi=off noapic nolapic nopcmcia noscsi nogpm consoleboot nosmart tmpfs_size=220M ramdisk_size=25000 noeject iso_location=/pmagic-3.4.iso
initrd /pmagic/initrd

title Console (Boots to the shell)
kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=normal sleep=0 consoleboot tmpfs_size=220M ramdisk_size=25000 noeject iso_location=/pmagic-3.4.iso
initrd /pmagic/initrd

title Local boot
rootnoverify (hd0)
chainloader +1

title Reboot
reboot

title Memtest86+
kernel /pmagic/memtest

This is not tested (don't have grub4dos) so feedback will be appreciated.
This should make it easy to everyone to change the iso_location to whatever you want (because it is ouside the iso).

You only need to change the first 2 lines of the pmagic.lst file:
e.g.: pmagic-3.4.iso renamed and placed at /some/directory/partedmagic.iso
find --set-root /some/directory/partedmagic.iso

map /some/directory/partedmagic.iso (hd32)
and all iso_location= entries:
iso_location=/some/directory/partedmagic.iso

Use something like the following in your grub4dos.lst file on your CD/DVD/USB/HDD:
title Parted Magic Linux 3.4

configfile /pmagic.lst


#11 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 23 December 2008 - 01:29 PM

According to a member of the Parted Magic forum, the above given tutorial works.

#12 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 23 December 2008 - 01:52 PM

thanks for the info !

#13 was_jaclaz

was_jaclaz

    Finder

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

Posted 23 December 2008 - 02:29 PM

I don't understand at all the first, as said it is NOT the right way, you load a loader to load a loader :cheers: it should be simply entirely striken and forgotten about.
It could well confuse some of the less experienced users - and, as usually happens with "not right" things - spread quickly.
;)

The second works allright, and it's the simplest one, without need to change anything if not the .iso name. :cheers: (from pmagic-grub4dos-3.4.iso to pmagic-3.4.iso)

The third (external .lst) doesn't make much sense as well to me, what is the need to further hardcode the location of the .iso?

/
/pmagic/
/images/

seem to me all "normal" and "logical" places where to put the .iso.

Since practically all "kernel" lines need to be changed beside the first two, it would be easier to post a few lines of advice on the pmagic site:

  • for use with grub4dos as .iso file mapped to (hd32) .iso file NEEDS to be named "pmagic-3.4.iso"
  • add to your normal menu.lst these lines:
    title Parted Magic Linux 3.x
    
    find --set-root /pmagic-3.4.iso
    
    map /pmagic-3.4.iso (hd32)
    
    map --hook
    
    root (hd32)
    
    configfile /grub4dos.lst
  • file pmagic-3.4.iso can be in WHATEVER place on CD/DVD
  • on HD or USB stick/HD, file pmagic-3.4.iso NEEDS to be in either:
    /
    
    /pmagic/
    
    /images/
  • if you want to place it in an arbitrary path or give to the .iso an arbitrary name, extract from the image grub4dos.lst, rename it to pmagic.lst then edit it adding to it at the beginning:
    find --set-root /some/directory/whatevernameyouchoose.iso
    
    map /some/directory/whatevernameyouchoose.iso (hd32)
    
    map --hook
    
    root (hd32)
    and, at the end of each line starting with "kernel"
    noeject iso_location=/some/directory/whatevernameyouchoose.iso
    and call it from your "main" menu.lst with:
    title Parted Magic Linux 3.4
    
    configfile /pmagic.lst

In other words, only a very limited number of people will probably want to have a different name/path, and they can well sweat a little bit :cheers:, but the essential info should be made clear to all. :cheers:

If it would be possible to change the name of the .iso at will, through some "magic" in the interaction between grub4dos and the "linux part" THAT would be a GREAT added feature. :cheers:

jaclaz

#14 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 23 December 2008 - 02:57 PM

I don't understand at all the first, as said it is NOT the right way, you load a loader to load a loader :cheers: it should be simply entirely striken and forgotten about.
It could well confuse some of the less experienced users - and, as usually happens with "not right" things - spread quickly.
;)

I will change it. But you are speaking against yourself with "NOT the right way, you load a loader to load a loader". Mounting an iso (with grub4dos) to mount it again with linux is also NOT the right way :cheers: .

The third (external .lst) doesn't make much sense as well to me, what is the need to further hardcode the location of the .iso?

seem to me all "normal" and "logical" places where to put the .iso.

It makes it also very easy to change the keyboard layout (keymap). This is an option that more users want.

for use with grub4dos as .iso file mapped to (hd32) file pmagic-grub4dos-3.4.iso NEEDS to be renamed to pmagic-3.4.iso

Wrong, it is already named pmagic-3.4.iso.

#15 was_jaclaz

was_jaclaz

    Finder

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

Posted 23 December 2008 - 03:14 PM

I will change it. But you are speaking against yourself with "NOT the right way, you load a loader to load a loader". Mounting an iso (with grub4dos) to mount it again with linux is also NOT the right way

yep, :cheers: but quite handy, you might notice how the whole process is in the "good " way with .iso mapping:
"you load a loader (grub4dos) to load a kernel inside a .iso"
in the "wrong" way:
"you load a loader (grub4dos) to load a loader (grub4dos again) to load a kernel inside a .iso"

Wrong, it is already named pmagic-3.4.iso.


Right ;), edited post above.

It makes it also very easy to change the keyboard layout (keymap). This is an option that more users want.


Sure, but give a man a fish...:
http://www.quotation...quote/2279.html

:cheers:

jaclaz




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users