====== Differences ====== This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
syslinux [2010/09/02 07:26] alecjw created |
syslinux [2010/10/21 18:32] (current) genec Syslinux: recommend official pre-compiled |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Booting gPXE from a memory stick partition with SYSLINUX ====== | ====== Booting gPXE from a memory stick partition with SYSLINUX ====== | ||
- | Much like the howto [[:usbwithstorage]], this will guide you through installing gPXE on your flash drive (or any other FAT/ext234/btrfs partition for that matter) without losing ability to store files on it. In fact, using EXTLINUX or SYSLINUX, it's possible to use this method to make almost any medium gPXE-bootable. | + | Much like the howto [[usbwithstorage]], this will guide you through installing gPXE on your flash drive (or any other FAT/ext234/btrfs partition for that matter) without losing ability to store files on it. In fact, using EXTLINUX or SYSLINUX, it's possible to use this method to make almost any medium gPXE-bootable. |
+ | |||
+ | **Warning:** Following this guide is generally quite safe, but if you have important data on your USB stick, you may want to make a backup first just to be safe. | ||
==== Getting SYSLINUX ==== | ==== Getting SYSLINUX ==== | ||
I'll leave this part mostly down to you. It's probably available in your distribution's package manager, but if not, you can get it from http://syslinux.zytor.com | I'll leave this part mostly down to you. It's probably available in your distribution's package manager, but if not, you can get it from http://syslinux.zytor.com | ||
+ | NOTE: I'd highly recommend the latest official pre-compiled package (Yes, it's been a source/binary package since the beginning). See also [[http://syslinux.zytor.com/wiki/index.php/Common_Problems#Official_Binaries|Official Binaries]] -GeneC | ||
==== Making the partition bootable ==== | ==== Making the partition bootable ==== | ||
Line 43: | Line 47: | ||
If you want anything more complex, see the SYSLINUX documentation. | If you want anything more complex, see the SYSLINUX documentation. | ||
- | Now that the config's done, you can unmount (but don't eject!) the disk. If in doubt, just use the umount command. | + | Now that the config's done, you can unmount and install SYSLINUX on the partition. As root: |
- | To install SYSLINUX on the partition, as root: | + | <code>umount /dev/sdb1 |
- | <code>syslinux -s /dev/sdb1</code> | + | syslinux -s /dev/sdb1</code> |
Replacing /dev/sdb1 with your partition. | Replacing /dev/sdb1 with your partition. | ||
Line 69: | Line 73: | ||
You should have a SYSLINUX mbr.bin file somewhere on your system. For me, it was /usr/share/syslinux/mbr.bin | You should have a SYSLINUX mbr.bin file somewhere on your system. For me, it was /usr/share/syslinux/mbr.bin | ||
+ | You might be able to find yours using: | ||
+ | <code>locate mbr.bin</code> | ||
+ | |||
As root, write this to your flash drive: | As root, write this to your flash drive: | ||
<code>dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb</code> | <code>dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb</code> | ||
And you're done! Now you should be able to boot gPXE from the memory stick. | And you're done! Now you should be able to boot gPXE from the memory stick. |