Jump to content











Photo
- - - - -

SevenPE with tftpd32


  • Please log in to reply
32 replies to this topic

#26 guimenez

guimenez

    Frequent Member

  • Advanced user
  • 168 posts
  •  
    Portugal

Posted 30 August 2011 - 07:35 PM

Wow you are fast like always :D

i will try that

Mean while, i'm trying to boot parted magic from grub4dos, it boot fine on pxelinux, but if i make it run on grub4dos
i will not need another link to other boot manager (pxelinux).

this is my code on pxelinux:


label parted magic
kernel images/pmagic/bzImage
append noapic initrd=images/pmagic/initramfs root=/dev/ram0 init=/linuxrc ramdisk_size=100000

you are the genius of grub4dos (and others more :D) maybe you can help me on this one too

many thanks

#27 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 31 August 2011 - 08:20 AM

this is my code on pxelinux:


label parted magic
kernel images/pmagic/bzImage
append noapic initrd=images/pmagic/initramfs root=/dev/ram0 init=/linuxrc ramdisk_size=100000


And what is the problem?
"translate" it to grub4dos syntax.
Hints:
http://reboot.pro/10005/
http://reboot.pro/5845/

:cheers:
Wonko

#28 guimenez

guimenez

    Frequent Member

  • Advanced user
  • 168 posts
  •  
    Portugal

Posted 31 August 2011 - 11:22 AM

lol it was very ease, i was putting wrong codes on the grub4dos file

this is my code and its working

title parted magic
kernel /images/pmagic/bzImage append noapic
initrd=/images/pmagic/initramfs root=/dev/ram0 init=/linuxrc ramdisk_size=100000

many thanks :D

Edited by guimenez, 31 August 2011 - 11:22 AM.


#29 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 31 August 2011 - 12:23 PM

this is my code and its working

NO. :dubbio:
This is your code allright:

title parted magic

kernel /images/pmagic/bzImage append noapic

initrd=/images/pmagic/initramfs root=/dev/ram0 init=/linuxrc ramdisk_size=100000


But it is NOT the correct translation of anything, try re-reading, this time attentively these:
http://reboot.pro/10005/page__st__1
http://reboot.pro/5845/page__st__1

So, it may work, but a number of parameters are simply ignored, and anyway it does NOT respect grub4dos syntax AND only by pure chance it is parsed correctly.
.

:cheers:
Wonko

#30 guimenez

guimenez

    Frequent Member

  • Advanced user
  • 168 posts
  •  
    Portugal

Posted 31 August 2011 - 07:09 PM

but does topic doen't talk about parted magic, they talk about Slax and isolinux.

But i've try with this code in 15 machines and it work always

i'm missing something?

theres any command to change the languaGE at startup?

#31 steve6375

steve6375

    Platinum Member

  • Developer
  • 7161 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 31 August 2011 - 08:47 PM


initrd=/images/pmagic/initramfs root=/dev/ram0 init=/linuxrc ramdisk_size=100000


For Info: grub4dos is actually coded to replace an '=' sign found after a command with a ' '. This is why this line works and why lines like gfxmenu=message and echo=fred work too.

#32 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 01 September 2011 - 09:03 AM


initrd=/images/pmagic/initramfs root=/dev/ram0 init=/linuxrc ramdisk_size=100000


For Info: grub4dos is actually coded to replace an '=' sign found after a command with a ' '. This is why this line works and why lines like gfxmenu=message and echo=fred work too.


Yep, but still it is not "kosher".

@guimenez
I will try again. :)

Let's start from your original code:

label parted magic
kernel images/pmagic/bzImage
append noapic initrd=images/pmagic/initramfs root=/dev/ram0 init=/linuxrc ramdisk_size=100000


This is a label
This is a Syslinux/Isolinux/PXELinux command
This is a parameter leading to a file
This are other Linux kernel parameters

Let's go to grub4dos commands.
label becomes title
kernel remains kernel
There is NO equivalent to the append command in grub4dos, as it parses ANYTHING after the (file or device) as parameters to be passed to the Linux kernel (same thing append does) BUT it has a command initrd that tells Linux which initial ramdisk to load.
After a grub4dos command there should be a space (and NOT a = sign, though it's parser allows it).
File or device in grub4dos is always a "qualified" path, when you write /images/pmagic/bzImage you are actually writing ()/images/pmagic/bzImage or in "pseudocode" <current root>/images/pmagic/bzImage say that your current root is (pd), then by writing /images/pmagic/bzImage you are actually writing (pd)/images/pmagic/bzImage and of course if you omit the leading slash what you get makes NO sense (pd)images/pmagic/bzImage

So:

title parted magic
kernel /images/pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc ramdisk_size=100000
initrd /images/pmagic/initramfs


Now tell me that you did not understand the above by reading the preciously given links ATTENTIVELY. :dubbio:

:cheers:
Wonko

#33 guimenez

guimenez

    Frequent Member

  • Advanced user
  • 168 posts
  •  
    Portugal

Posted 02 September 2011 - 10:59 PM

Many thanks Wonko. No i understand.
I was confused with the other link explanation but you are right. It's just understand and paste it to my code.

Big thank you for all the help you give me in this one.

Now everything run fine and I've contributed for a new tutorial in this community :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users