[syslinux] memdisk - grub2

Karl Schmidt karl at xtronics.com
Thu Aug 11 13:00:00 PDT 2011


On 08/11/2011 02:21 AM, Miller, Shao wrote:
> And when I searched in Google with:
>
>    "memdisk.mod" grub
>
> This was one of the search results:
>
>    http://lists.gnu.org/archive/html/help-grub/2011-02/msg00020.html
>
> which appears to answer your question (hopefully) and confirm my last
> response.

Yes, I had seen this and tried it - it was his guess and did not work.

I finally got it to work - this is not documented anywhere so I will paste it in here for the next 
guy. You only need insmod lvm and jfs if you are using lvm and jfs ... your "set root=" will differ 
as well the directory paths. In /boot I put a ln -s /usr/lib/syslinux/memdisk ,but one could use the 
full path.


This is for grub2 - not grub. Located in /etc/grub.d/40_custom (you need to run update-grub after 
any changes )

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Memtest-Plus 4.2" {
         echo `hello`
         insmod lvm
         insmod part_msdos
         insmod jfs
         insmod memdisk
         set root='(ssd-testing)'
         search --no-floppy --fs-uuid --set f9ae292b-b6a9-4f70-af7c-31987e766d37
         linux16 /boot/memdisk iso
         initrd16 /boot/memtest-plus/memtest86+-4.20.iso
}







--------------------------------------------------------------------------------
Karl Schmidt                                  EMail Karl at xtronics.com
Transtronics, Inc.                              WEB http://xtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434

Will power lasts about 2 weeks and is soluble in alcohol.
Mark Twain

--------------------------------------------------------------------------------




More information about the Syslinux mailing list