Jump to content











Photo
- - - - -

Installing syslinux to a second USB partition


  • Please log in to reply
1 reply to this topic

#1 deslok

deslok

    Newbie

  • Members
  • 14 posts
  •  
    United States

Posted 01 July 2011 - 01:36 PM

Hey guys, currently I'm writing a script to image USB drives so that they can boot distributions of Linux/Windows etc. Right now I'm trying to use Syslinux to manage and boot into these distributions but I want everything to be on the second partition (FAT32) of the USB stick. To do this, I first installed Syslinux using the command:

syslinux -fi -d / /dev/sdX
(X being partition 2), then I installed the MBR and set the drive as bootable using
dd bs=440 conv=notrunc count=1 if=mbr.bin of=/dev/sd
and
parted /dev/sd set 1 boot on
and I put my syslinux.cfg file and everything over to the second drive but every time I try to boot, I get the message "This hard drive is not bootable." However, I do NOT get this message when I install syslinux to the first partiton and put everything on there so I'm trying to figure out as to why this is.

Thanks for any help!

#2 deslok

deslok

    Newbie

  • Members
  • 14 posts
  •  
    United States

Posted 01 July 2011 - 03:50 PM

Nevermind, I'm an idiot. The command should be
parted /dev/sd set 2 boot on
. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users