Ticket #818 (reopened defect)

Opened 3 years ago

Last modified 2 years ago

Should search mbr.bin in /usr/lib/syslinux/bios/ rather than in /usr/lib/syslinux/

Reported by: pauld Owned by: lmacken
Priority: major Milestone: __unclassified__
Component: fixed_in_git Version:
Keywords: Cc:
Blocked By: Blocking:


With the following made package on Arch Linux: https://aur.archlinux.org/packages/liveusb-creator-git/

I get the following error: Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/liveusb/gui.py", line 513, in begin

elif not self.live.mbr_matches_syslinux_bin():

File "/usr/lib/python2.7/site-packages/liveusb/creator.py", line 882, in mbr_matches_syslinux_bin

mbr_bin = open(self._get_mbr_bin(), 'rb')

TypeError?: coercing to Unicode: need string or buffer, NoneType? found [root@brebis ~]#

and I believe the cause is: that /usr/lib/python2.7/site-packages/liveusb/creator.py function _get_mbr_bin search for mbr.bin in /usr/lib/syslinux/mbr.bin or /usr/share/syslinux/mbr.bin but it is in /usr/lib/syslinux/bios/mbr.bin

See the function:

def _get_mbr_bin(self):

mbr = None for mbr_bin in ('/usr/lib/syslinux/mbr.bin',


if os.path.exists(mbr_bin):

mbr = mbr_bin

return mbr

as found on line 869 of https://git.fedorahosted.org/cgit/liveusb-creator.git/tree/liveusb/creator.py

My version of syslinux is: [paul@brebis ~]$ pacman -Qi syslinux Name : syslinux Version : 6.02-8 Description : Collection of boot loaders that boot from FAT, ext2/3/4 and

btrfs filesystems, from CDs and via PXE

Architecture : i686 URL : http://syslinux.zytor.com/ Licenses : GPL2 Groups : None Provides : None Depends On : perl glibc Optional Deps : perl-passwd-md5: For md5pass

perl-digest-sha1: For sha1pass mtools: For mkdiskimage and syslinux support [installed] gptfdisk: For GPT support util-linux: For isohybrid [installed] efibootmgr: For EFI support dosfstools: For EFI support [installed]

Required By : liveusb-creator-git Optional For : None Conflicts With : None Replaces : None Installed Size : 3322.00 KiB Packager : Tobias Powalowski <tpowa@…> Build Date : Fri Nov 29 02:57:24 2013 Install Date : Wed Dec 18 11:25:38 2013 Install Reason : Explicitly installed Install Script : Yes Validated By : Signature

which I believe is latest released version.

[paul@brebis ~]$ pacman -Ql syslinux | grep mbr.bin syslinux /usr/lib/syslinux/bios/altmbr.bin syslinux /usr/lib/syslinux/bios/gptmbr.bin syslinux /usr/lib/syslinux/bios/mbr.bin [paul@brebis ~]$

Change History

comment:1 Changed 3 years ago by lmacken

  • Owner set to lmacken
  • Status changed from new to assigned
  • Component changed from linux to fixed_in_git

comment:2 Changed 2 years ago by lmacken

  • Status changed from assigned to closed
  • Resolution set to fixed

I just pushed out version 3.13.0, which should hopefully resolve this issue. Please re-open if you still experience this problem. Thanks!

comment:3 Changed 2 years ago by theonlyandy

  • Status changed from closed to reopened
  • Resolution fixed deleted

I'm on Ubuntu 14.10 and the bootloader moved again to /usr/lib/syslinux/mbr/mbr.bin

Syslinux Version is 3:6.03~pre18+d

Thanks for adding.

comment:4 Changed 2 years ago by lmacken

Note: See TracTickets for help on using tickets.