LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2019, 04:41 AM   #1
bronek dzikus torres
LQ Newbie
 
Registered: Sep 2017
Posts: 10

Rep: Reputation: 0
Slackware Live Edition - iso2usb.sh - Failed to make USB device bootable 'gptmbr.bin' not found!


Hello,

I tried to make bootable Slackware Live using iso2usb.sh using 2 different computers - result: USB stick can not boot.
On each computers I have the same information using iso2sub.sh:
"Failed to make USB device bootable - 'gptmbr.bin' not found!"


I used command:
Code:
sudo ./iso2usb.sh -i slackware-live-xfce-current.iso -o /dev/sdb -w 15 -v
I assumed that I don't need to prepare USB stick before using iso2usb.sh.

I used 'latest/slackware-live-xfce-current.iso'- I beleve is 1.3.3 version with http://taper.alienbase.nl/cgit/liveslak/tree/iso2usb.sh

How to fix this issue?


iso2usb.sh log:

Code:
$ sudo ./iso2usb.sh -i slackware-live-xfce-current.iso -o /dev/sdb -w 15 -v
#
# We are going to format this device (erase all data) - '/dev/sdb':
# ---------------------------------------------------------------------------
# Vendor : SanDisk 
# Model  : Ultra           
# Size   : 29328 MB
# ---------------------------------------------------------------------------
#
# FDISK OUTPUT:
# GPT fdisk (gdisk) version 1.0.1
# 
# Partition table scan:
# MBR: protective
# BSD: not present
# APM: not present
# GPT: present
# 
# Found valid GPT with protective MBR; using GPT.
# Disk /dev/sdb: 60063744 sectors, 28.6 GiB
# Logical sector size: 512 bytes
# Disk identifier (GUID): 3F1393EC-D4E2-4ACF-9958-EF15784ADF04
# Partition table holds up to 128 entries
# First usable sector is 34, last usable sector is 60063710
# Partitions will be aligned on 2048-sector boundaries
# Total free space is 2014 sectors (1007.0 KiB)
# 
# Number  Start (sector)    End (sector)  Size       Code  Name
# 1            2048            4095   1024.0 KiB  EF02  BIOS Boot Partition
# 2            4096          208895   100.0 MiB   EF00  EFI System Partition
# 3          208896        60063710   28.5 GiB    8300  Slackware Linux

***                                                       ***
*** If this is the wrong drive, then press CONTROL-C now! ***
***                                                       ***

Or press ENTER to continue: 
1+0 records in
1+0 records out
512 bytes copied, 0.00544919 s, 94.0 kB/s
Found valid GPT with corrupt MBR; using GPT and will write new
protective MBR on save.
The operation has completed successfully.
Setting name!
partNum is 0
REALLY setting name!
Setting name!
partNum is 1
REALLY setting name!
Setting name!
partNum is 2
REALLY setting name!
The operation has completed successfully.
The operation has completed successfully.
Disk /dev/sdb: 60063744 sectors, 28.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 87BBFB6A-CA3C-4306-871F-33004F2F30E2
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 60063710
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            4095   1024.0 KiB  EF02  BIOS Boot Partition
   2            4096          208895   100.0 MiB   EF00  EFI System Partition
   3          208896        60063710   28.5 GiB    8300  Slackware Linux
3:2:1 (legacy BIOS bootable)
mkfs.fat 3.0.28 (2015-05-16)
mkfs.fat 3.0.28 (2015-05-16)
mke2fs 1.42.13 (17-May-2015)
/dev/sdb3 contains a ext4 file system labelled 'LIVESLAK'
	last mounted on /media/usermint/LIVESLAK on Tue Nov 19 09:11:53 2019
Creating filesystem with 7481851 4k blocks and 1872304 inodes
Filesystem UUID: 24d8e60f-631c-442e-9f17-8c0e641a4658
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done   

tune2fs 1.42.13 (17-May-2015)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Setting reserved blocks percentage to 0% (0 blocks)
mount: /dev/loop0 is write-protected, mounting read-only
-- Note: UEFI boot file 'bootx64.efi' or 'bootia32.efi' not found on ISO.
-- UEFI boot will not be supported
124816 blocks
--- Copying files from ISO to USB... takes some time.
sending incremental file list
boot/
boot/generic
      5,035,904 100%  164.53MB/s    0:00:00 (xfr#1, to-chk=79/82)
boot/initrd.img
     23,856,188 100%  177.74MB/s    0:00:00 (xfr#2, to-chk=78/82)
boot/memtest
        150,024 100%    1.11MB/s    0:00:00 (xfr#3, to-chk=77/82)
boot/syslinux/
boot/syslinux/f2.txt
            969 100%    7.34kB/s    0:00:00 (xfr#4, to-chk=75/82)
boot/syslinux/f3.txt
          1,375 100%   10.41kB/s    0:00:00 (xfr#5, to-chk=74/82)
boot/syslinux/f4.txt
          1,214 100%    9.19kB/s    0:00:00 (xfr#6, to-chk=73/82)
boot/syslinux/f5.txt
            853 100%    6.46kB/s    0:00:00 (xfr#7, to-chk=72/82)
boot/syslinux/gptmbr.bin
            440 100%    3.33kB/s    0:00:00 (xfr#8, to-chk=71/82)
boot/syslinux/iso.sort
             50 100%    0.38kB/s    0:00:00 (xfr#9, to-chk=70/82)
boot/syslinux/isolinux.bin
         24,576 100%  184.62kB/s    0:00:00 (xfr#10, to-chk=69/82)
boot/syslinux/isolinux.boot
          2,048 100%   15.38kB/s    0:00:00 (xfr#11, to-chk=68/82)
boot/syslinux/isolinux.cfg
             26 100%    0.20kB/s    0:00:00 (xfr#12, to-chk=67/82)
boot/syslinux/lang.cfg
          1,928 100%   14.48kB/s    0:00:00 (xfr#13, to-chk=66/82)
boot/syslinux/message.txt
            519 100%    3.90kB/s    0:00:00 (xfr#14, to-chk=65/82)
boot/syslinux/swlogov.png
         10,289 100%   77.29kB/s    0:00:00 (xfr#15, to-chk=64/82)
boot/syslinux/syslinux.cfg
            265 100%    1.99kB/s    0:00:00 (xfr#16, to-chk=63/82)
boot/syslinux/ter-i16v.psf
          5,146 100%   38.66kB/s    0:00:00 (xfr#17, to-chk=62/82)
boot/syslinux/vesamenu.c32
        154,128 100%    1.11MB/s    0:00:00 (xfr#18, to-chk=61/82)
boot/syslinux/menu/
boot/syslinux/menu/be-latin1.ktl
            256 100%    1.89kB/s    0:00:00 (xfr#19, to-chk=59/82)
boot/syslinux/menu/br-abnt2.ktl
            256 100%    1.89kB/s    0:00:00 (xfr#20, to-chk=58/82)
boot/syslinux/menu/de-latin1-nodeadkeys.ktl
            256 100%    1.89kB/s    0:00:00 (xfr#21, to-chk=57/82)
boot/syslinux/menu/de-latin1.ktl
            256 100%    1.89kB/s    0:00:00 (xfr#22, to-chk=56/82)
boot/syslinux/menu/dk-latin1.ktl
            256 100%    1.89kB/s    0:00:00 (xfr#23, to-chk=55/82)
boot/syslinux/menu/es.ktl
            256 100%    1.88kB/s    0:00:00 (xfr#24, to-chk=54/82)
boot/syslinux/menu/fr-latin9.ktl
            256 100%    1.88kB/s    0:00:00 (xfr#25, to-chk=53/82)
boot/syslinux/menu/it.ktl
            256 100%    1.88kB/s    0:00:00 (xfr#26, to-chk=52/82)
boot/syslinux/menu/jp106.ktl
            256 100%    1.88kB/s    0:00:00 (xfr#27, to-chk=51/82)
boot/syslinux/menu/kbd.cfg
          1,721 100%   12.64kB/s    0:00:00 (xfr#28, to-chk=50/82)
boot/syslinux/menu/lang_be.cfg
          3,131 100%   22.99kB/s    0:00:00 (xfr#29, to-chk=49/82)
boot/syslinux/menu/lang_br.cfg
          3,115 100%   22.87kB/s    0:00:00 (xfr#30, to-chk=48/82)
boot/syslinux/menu/lang_da.cfg
          3,131 100%   22.99kB/s    0:00:00 (xfr#31, to-chk=47/82)
boot/syslinux/menu/lang_de.cfg
          3,307 100%   24.28kB/s    0:00:00 (xfr#32, to-chk=46/82)
boot/syslinux/menu/lang_de_ch.cfg
          3,131 100%   22.82kB/s    0:00:00 (xfr#33, to-chk=45/82)
boot/syslinux/menu/lang_es.cfg
          3,019 100%   22.00kB/s    0:00:00 (xfr#34, to-chk=44/82)
boot/syslinux/menu/lang_fr.cfg
          3,146 100%   22.93kB/s    0:00:00 (xfr#35, to-chk=43/82)
boot/syslinux/menu/lang_fr_ch.cfg
          3,146 100%   22.93kB/s    0:00:00 (xfr#36, to-chk=42/82)
boot/syslinux/menu/lang_gb.cfg
          3,019 100%   22.00kB/s    0:00:00 (xfr#37, to-chk=41/82)
boot/syslinux/menu/lang_it.cfg
          3,019 100%   22.00kB/s    0:00:00 (xfr#38, to-chk=40/82)
boot/syslinux/menu/lang_ja.cfg
          3,067 100%   22.35kB/s    0:00:00 (xfr#39, to-chk=39/82)
boot/syslinux/menu/lang_nl.cfg
          3,019 100%   22.00kB/s    0:00:00 (xfr#40, to-chk=38/82)
boot/syslinux/menu/lang_pt.cfg
          3,131 100%   22.82kB/s    0:00:00 (xfr#41, to-chk=37/82)
boot/syslinux/menu/lang_ru.cfg
          3,083 100%   22.47kB/s    0:00:00 (xfr#42, to-chk=36/82)
boot/syslinux/menu/lang_se.cfg
          3,131 100%   22.82kB/s    0:00:00 (xfr#43, to-chk=35/82)
boot/syslinux/menu/lang_us.cfg
          3,019 100%   22.00kB/s    0:00:00 (xfr#44, to-chk=34/82)
boot/syslinux/menu/menu_be.cfg
          2,189 100%   15.95kB/s    0:00:00 (xfr#45, to-chk=33/82)
boot/syslinux/menu/menu_br.cfg
          2,188 100%   15.95kB/s    0:00:00 (xfr#46, to-chk=32/82)
boot/syslinux/menu/menu_da.cfg
          2,189 100%   15.95kB/s    0:00:00 (xfr#47, to-chk=31/82)
boot/syslinux/menu/menu_de.cfg
          2,200 100%   16.03kB/s    0:00:00 (xfr#48, to-chk=30/82)
boot/syslinux/menu/menu_de_ch.cfg
          2,192 100%   15.97kB/s    0:00:00 (xfr#49, to-chk=29/82)
boot/syslinux/menu/menu_es.cfg
          2,182 100%   15.90kB/s    0:00:00 (xfr#50, to-chk=28/82)
boot/syslinux/menu/menu_fr.cfg
          2,189 100%   15.83kB/s    0:00:00 (xfr#51, to-chk=27/82)
boot/syslinux/menu/menu_fr_ch.cfg
          2,192 100%   15.86kB/s    0:00:00 (xfr#52, to-chk=26/82)
boot/syslinux/menu/menu_gb.cfg
          2,182 100%   15.78kB/s    0:00:00 (xfr#53, to-chk=25/82)
boot/syslinux/menu/menu_it.cfg
          2,182 100%   15.78kB/s    0:00:00 (xfr#54, to-chk=24/82)
boot/syslinux/menu/menu_ja.cfg
          2,185 100%   15.81kB/s    0:00:00 (xfr#55, to-chk=23/82)
boot/syslinux/menu/menu_nl.cfg
          2,182 100%   15.78kB/s    0:00:00 (xfr#56, to-chk=22/82)
boot/syslinux/menu/menu_pt.cfg
          2,189 100%   15.83kB/s    0:00:00 (xfr#57, to-chk=21/82)
boot/syslinux/menu/menu_ru.cfg
          2,186 100%   15.81kB/s    0:00:00 (xfr#58, to-chk=20/82)
boot/syslinux/menu/menu_se.cfg
          2,189 100%   15.83kB/s    0:00:00 (xfr#59, to-chk=19/82)
boot/syslinux/menu/menu_us.cfg
          2,182 100%   15.78kB/s    0:00:00 (xfr#60, to-chk=18/82)
boot/syslinux/menu/nl.ktl
            256 100%    1.85kB/s    0:00:00 (xfr#61, to-chk=17/82)
boot/syslinux/menu/pt-latin1.ktl
            256 100%    1.85kB/s    0:00:00 (xfr#62, to-chk=16/82)
boot/syslinux/menu/ru_win.ktl
            256 100%    1.85kB/s    0:00:00 (xfr#63, to-chk=15/82)
boot/syslinux/menu/sv-latin1.ktl
            256 100%    1.85kB/s    0:00:00 (xfr#64, to-chk=14/82)
boot/syslinux/menu/uk.ktl
            256 100%    1.85kB/s    0:00:00 (xfr#65, to-chk=13/82)
boot/syslinux/menu/us.ktl
            256 100%    1.85kB/s    0:00:00 (xfr#66, to-chk=12/82)
boot/syslinux/menu/vesamenu.cfg
          2,182 100%   15.78kB/s    0:00:00 (xfr#67, to-chk=11/82)
liveslak/
liveslak/addons/
liveslak/optional/
liveslak/rootcopy/
liveslak/system/
liveslak/system/0000-slackware_boot-current-i586.sxz
      5,050,368 100%   28.33MB/s    0:00:00 (xfr#68, to-chk=6/82)
liveslak/system/0020-slackware_min-current-i586.sxz
    223,719,424 100%   34.13MB/s    0:00:06 (xfr#69, to-chk=5/82)
liveslak/system/0020-slackware_noxbase-current-i586.sxz
    123,719,680 100%    3.98MB/s    0:00:29 (xfr#70, to-chk=4/82)
liveslak/system/0020-slackware_x_base-current-i586.sxz
    175,718,400 100%    4.14MB/s    0:00:40 (xfr#71, to-chk=3/82)
liveslak/system/0020-slackware_xapbase-current-i586.sxz
    117,223,424 100%    4.63MB/s    0:00:24 (xfr#72, to-chk=2/82)
liveslak/system/0020-slackware_xfcebase-current-i586.sxz
     28,237,824 100%    4.86MB/s    0:00:05 (xfr#73, to-chk=1/82)
liveslak/system/0099-slackware_zzzconf-current-i586.sxz
      5,660,672 100%    3.12MB/s    0:00:01 (xfr#74, to-chk=0/82)

sent 708,845,865 bytes  received 1,466 bytes  6,655,843.48 bytes/sec
total size is 708,668,089  speedup is 1.00
--- Extracting Slackware initrd and adding rootdelay for USB...
124816 blocks
--- Updating 'waitforroot' time from '5' to '15'
--- Compressing the initrd image again:
124816 blocks
--- Making the USB drive '/dev/sdb' bootable using extlinux...
/mnt/alienusb.ZwJhde/boot/extlinux is device /dev/sdb3
--- Cleaning up the staging area...
*** Failed to make USB device bootable - 'gptmbr.bin' not found!
--- Cleaning up the staging area...
$
 
Old 11-19-2019, 05:28 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,044

Rep: Reputation: Disabled
On what system are you running the script?

I ask because it looks for gptmbr.bin in /usr/share/syslinux/ and it should find it there if the syslinux package is installed.
 
1 members found this post helpful.
Old 11-19-2019, 08:34 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104
Issues wrt my liveslak scripts can be reported on my blog.
But Didier already mentioned the likely cause: the script did not run on Slackware, and your OS either does not contain syslinux, or else the file gptmbr.bin is not located in /usr/share/syslinux/ . Either way, patches to resolve this are always welcome, but I will discuss them only on my blog.
 
Old 11-20-2019, 04:57 AM   #4
bronek dzikus torres
LQ Newbie
 
Registered: Sep 2017
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
On what system are you running the script?

I ask because it looks for gptmbr.bin in /usr/share/syslinux/ and it should find it there if the syslinux package is installed.
* Linux Mint 18 32bit (based on Ubuntu 16.04LTS)
* Linux antiX-17.2 32bit (based on Debian 9 (stretch))

This is good hint - I think both have the same version of syslinux: version 6
 
Old 11-20-2019, 05:15 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104
Check this post on my blog to see if this fixes your issue: https://alien.slackbook.org/blog/sla...#comment-36677 and move the discussion there please. I will not comment further in this LQ thread.
 
Old 11-20-2019, 05:34 AM   #6
bronek dzikus torres
LQ Newbie
 
Registered: Sep 2017
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
https://alien.slackbook.org/blog/sla...#comment-36677 and move the discussion there please.
Sure. No worries
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can I make a USB hard drive bootable with same procedure to make USB stick bootable? Tem2 Linux - Hardware 1 02-16-2019 08:25 AM
[SOLVED] Trouble with iso2usb script BratPit Slackware 6 10-11-2017 09:15 AM
Liveslak iso2usb error dr.s Slackware 1 10-04-2017 04:05 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Port:0x180 failed (device not found ) Port:0 failed (device not found ) aaliya Linux - Hardware 0 10-05-2006 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration