LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-20-2017, 12:55 AM   #1
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Rep: Reputation: 1
Can't boot live USB


Computer is Lenovo E520 Thinkpad. I have run numerous Linux distros on it.

Downloaded slackware64-live-current.iso and iso2usb.sh. Installed to thumb drive, tried to boot from it. Boot ignores the USB and skips to my HDD GRUB.

If I F12 to select boot device as USB HDD, it tries for a few seconds, but cycles back to the same boot device menu.

I have tried changing BIOS to both EFI and Legacy mode. Results are the same for both.

Then I bought new USB drives and tried again. Same results.

From a running Fedora, I performed fdisk -l on the Slackware USB. Here are the results.
Code:
# fdisk -l /dev/sdc
Disk /dev/sdc: 7.5 GiB, 8022654976 bytes, 15669248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 094E7843-0783-44C2-AF28-23872F56E3C8

Device      Start      End  Sectors  Size Type
/dev/sdc1    2048     4095     2048    1M BIOS boot
/dev/sdc2    4096   208895   204800  100M EFI System
/dev/sdc3  208896 15669214 15460319  7.4G Linux filesystem
I have previously booted a live Fedora USB on this same machine. Just to be certain, I created a new live Fedora USB, and it booted just fine.
Here is the fdisk -l for the Live Fedora USB. Noe the difference on the Disklabel type- gpt vs.dos
Code:
# fdisk -l /dev/sdb
Disk /dev/sdb: 7.5 GiB, 8022654976 bytes, 15669248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x13b46ec8

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdb1  *         0 2813951 2813952  1.4G  0 Empty
/dev/sdb2        91688  102327   10640  5.2M ef EFI (FAT-12/16/32)
/dev/sdb3       102328  125671   23344 11.4M  0 Empty
Suggestions? Thanks!
 
Old 07-20-2017, 11:48 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Thwe partition layout looks like expected. If the drive does not boot, can you recall any errors at the end of running "iso2usb.sh"? I don't suppose you captured the output while that command was running?
 
Old 07-20-2017, 02:50 PM   #3
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 1
I was pretty certain that the iso2usb.sh did not throw any errors, but I did not retain the logs. I decided to recreate the process. Since the USB already had the files on it, iso2usb.sh tried to do a shortcut and not do anything. I force the situation by deleting the partitions, changing the drive type to dos, then creating some fake dos partitions. THis allowed iso2ush.sh to run normally. No errors were thrown. Log below. After that, I tried booting from the USB again, but the results were the same.

===
This is how the USB looked before I began

[root@KD1YV2 Downloads]# fdisk -l /dev/sdb
Disk /dev/sdb: 7.5 GiB, 8022654976 bytes, 15669248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x92a951c2

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 22222 20175 9.9M 83 Linux
/dev/sdb2 22528 15669247 15646720 7.5G 83 Linux
[root@KD1YV2 Downloads]#

===
Here I run the iso2usb.sh process, which shows no error

[root@KD1YV2 Downloads]# ./iso2usb.sh -i slackware64-live-current.iso -o /dev/sdb
#
# We are going to format this device (erase all data) - '/dev/sdb':
# Vendor : Verbatim
# Model : Store n Go Drive
# Size : 7651 MB
#
# FDISK OUTPUT:
# GPT fdisk (gdisk) version 1.0.1
#
# Partition table scan:
# MBR: MBR only
# BSD: not present
# APM: not present
# GPT: present
#
# Found valid MBR and GPT. Which do you want to use?
# 1 - MBR
# 2 - GPT
# 3 - Create blank GPT
#
# Your answer: Using GPT and creating fresh protective MBR.
# Disk /dev/sdb: 15669248 sectors, 7.5 GiB
# Logical sector size: 512 bytes
# Disk identifier (GUID): 3C8BAD44-64BB-4D57-9AF3-C7822E5AF43D
# Partition table holds up to 128 entries
# First usable sector is 34, last usable sector is 15669214
# 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 15669214 7.4 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.00533192 s, 96.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: 15669248 sectors, 7.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 10E17FDC-EEB9-4D28-9451-0CF62BBD039F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 15669214
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 15669214 7.4 GiB 8300 Slackware Linux
3:2:1 (legacy BIOS bootable)
mkfs.fat 4.1 (2017-01-24)
mkfs.fat 4.1 (2017-01-24)
mke2fs 1.43.3 (04-Sep-2016)
/dev/sdb3 contains a ext4 file system labelled 'LIVESLAK'
last mounted on Thu Jul 20 14:21:16 2017
Creating filesystem with 1932539 4k blocks and 483328 inodes
Filesystem UUID: 53f36080-ed14-4afc-89ae-2bba8f8a64c6
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

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

tune2fs 1.43.3 (04-Sep-2016)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
mount: /dev/loop0 is write-protected, mounting read-only
109405 blocks
--- Copying files from ISO to USB... takes some time.
3,137,937,991 100% 4.03MB/s 0:12:23 (xfr#90, to-chk=0/98)
--- Making the USB drive '/dev/sdb' bootable using extlinux...
/mnt/alienusb.qw50ve/boot/extlinux is device /dev/sdb3
--- Copying EFI boot files from ISO to USB.
--- Cleaning up the staging area...
[root@KD1YV2 Downloads]# echo $?
0

=====
Here is the USB after iso2usb.sh

[root@KD1YV2 Downloads]# fdisk -l /dev/sdb
Disk /dev/sdb: 7.5 GiB, 8022654976 bytes, 15669248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 10E17FDC-EEB9-4D28-9451-0CF62BBD039F

Device Start End Sectors Size Type
/dev/sdb1 2048 4095 2048 1M BIOS boot
/dev/sdb2 4096 208895 204800 100M EFI System
/dev/sdb3 208896 15669214 15460319 7.4G Linux filesystem

===
 
Old 07-21-2017, 02:53 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Can't see anything wrong there. Is your computer using BIOS or UEFI? Have you tried the USB stick in another computer yet?
I create my USB stick the same way and it boots on computers that operate under BIOS as well as computers with UEFI.
 
Old 07-21-2017, 01:21 PM   #5
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 1
When I run Fedora 25 on native disk, I perform efibootmgr and it tells me "EFI variables are not supported on this system". This suggests that the machine is NOT running UEFI. When I look in the BIOS setup options, it is set for BOTH on UEFI and Legacy, with UEFI being first.

If I force BIOS setup into UEFI, I then tried the USB. It comes up to a Boot Device menu, which includes the USB. I select it, but it immediately returns to the same Boot Device menu. No messages flashed or displayed.

If I force BISO setup into Legacy (BIOS I assume), it does not go to the Boot Device menu, but instead boots from the regular HDD. If I restart and F12 to the Boot Device menu, it includes the USB. I select it, and it seems to try for 2 or 3 seconds, but then returns to the same Boot Device menu. Again no messages displayed.

I tried it on another computer, an older HP desktop, which only has legacy, no UEFI installed. This gives me a slightly meaningful error message:
SYSLINUX 6.04 EDD Copyright (C) 1994-2015 H. Peter Anvin et al
Failed to load ldlinux.c32
Boot failed: plese change disks and press a key to continue.

I don't know if the c32 in the error refers to 32-bit. This is a 64-bit machine, as is the laptop.

Thanks
Jim
 
Old 07-21-2017, 01:53 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Does this article and its suggested solution help you? What OS were you running when you executed iso2usb.sh?

Edit: I went ahead and implemented this new requirement for syslinux >= 6.03: http://bear.alienbase.nl/cgit/livesl...7127c013b1b39c
Note that Slackware still has syslinux-4.07 - we do not suffer from this issue.

Last edited by Alien Bob; 07-21-2017 at 02:12 PM.
 
Old 07-21-2017, 05:18 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Edit: I went ahead and implemented this new requirement for syslinux >= 6.03: http://bear.alienbase.nl/cgit/livesl...7127c013b1b39c
Note that Slackware still has syslinux-4.07 - we do not suffer from this issue.
As an aside, I follow the syslinux mailing list since a long time, and following Ady's advice I would not recommend upgrading to the 6.xx branch anytime soon. Syslinux 6.03 is not even able to boot on EFI from an optical media. The sad truth is that this project is in a comatose state.
 
1 members found this post helpful.
Old 07-21-2017, 11:28 PM   #8
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Can't boot live USB

Quote:
Originally Posted by Alien Bob View Post
Does this article and its suggested solution help you? What OS were you running when you executed iso2usb.sh?

Edit: I went ahead and implemented this new requirement for syslinux >= 6.03: http://bear.alienbase.nl/cgit/livesl...7127c013b1b39c
Note that Slackware still has syslinux-4.07 - we do not suffer from this issue.

Thanks. I am running Fedora 25 XFCE spin.

I applied the patch you suggested and re-ran the iso2usb.sh. It rebuilt the USB without any errors. (I saved the terminal listing if you want it).

When booting from the Lenovo laptop, results were identical, still unable to run at all. (I did not mention before, and not sure if it is pertinent, but I did burn a DVD from the ISO. I can boot and run this without problem on the laptop. However, obviously that does not have the persistent features of running from a USB.)


When I tried to boot from the HP desktop, results are slightly different, but still does not boot successfully. Here is what it says:
SYSLINUX 6.04 EDD Copyright (C) 1994-2015 H. Peter Anvin et al
Failed to load COM32 file vesamenu.c32
boot:
(lines 2-3 keep repeating every minute or so.)
 
Old 07-22-2017, 01:36 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I think that the problems comes from running this script on Fedora 25: in doing so you are mixing files from 4.07 and 6.04pre1 syslinux versions.

The script iso2usb.sh copies the file vesamenu.c32 from Slackware on the boot stick, then runs extlinux to install the bootloader on the USB stick.

vesamenu.c32 comes from syslinux version 4.07 but the binary extlinux comes from the system that runs the script, in your case 6.04pre1 (which is a pre-release from another branch).
Quote:
Originally Posted by flaflashr View Post
I tried it on another computer, an older HP desktop, which only has legacy, no UEFI installed. This gives me a slightly meaningful error message:
SYSLINUX 6.04 EDD Copyright (C) 1994-2015 H. Peter Anvin et al
Failed to load ldlinux.c32
Boot failed: plese change disks and press a key to continue.

I don't know if the c32 in the error refers to 32-bit. This is a 64-bit machine, as is the laptop.
No, this file is just not shipped in the syslinux package of Slackware. And even it it were, it wouldn't be at the expected version either.

For syslinux to work, it is safer that all components used come from the same version of the package.

tl;dr: I suggest to run a Slackware Live from a DVD (maybe the full version, I didn't check if the needed packages are included in the XFCE one) and run iso2usb.sh from there.

Eric, please correct me as need be.

Last edited by Didier Spaier; 07-22-2017 at 11:01 AM. Reason: Last paragraphs added.
 
Old 07-23-2017, 03:01 PM   #10
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Can't boot live USB

Quote:
Originally Posted by Didier Spaier View Post
I think that the problems comes from running this script on Fedora 25: in doing so you are mixing files from 4.07 and 6.04pre1 syslinux versions.

{snip}
tl;dr: I suggest to run a Slackware Live from a DVD (maybe the full version, I didn't check if the needed packages are included in the XFCE one) and run iso2usb.sh from there.

Eric, please correct me as need be.
I tried as you suggested, booting a live DVD of the same distro that I am trying to install to USB. When I ran the iso2usb.sh there, I received errors, highlighted below. The USB would still not boot, although with the error shown, that is not surprising.
===
I mounted the hard drive partition where the ISO lived under /mnt/fc25
===
root@darkstar:/mnt/fc25/kd1yv2/Downloads# ./iso2usb.sh -i slackware64-live-current.iso -o /dev/sdb
#
# We are going to format this device (erase all data) - '/dev/sdb':
# Vendor : Verbatim
# Model : Store n Go Drive
# Size : 7651 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: 15669248 sectors, 7.5 GiB
# Logical sector size: 512 bytes
# Disk identifier (GUID): BD621718-C1C6-4FE9-BFF1-A0DD726364F0
# Partition table holds up to 128 entries
# First usable sector is 34, last usable sector is 15669214
# 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 15669214 7.4 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.0132632 s, 38.6 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: 15669248 sectors, 7.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 94359C66-8370-4FA3-B8F8-37E21C6E42FC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 15669214
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 15669214 7.4 GiB 8300 Slackware Linux
3:2:1 (legacy BIOS bootable)
mkfs.fat 4.1 (2017-01-24)
mkfs.fat 4.1 (2017-01-24)
mke2fs 1.43.4 (31-Jan-2017)
/dev/sdb3 contains a ext4 file system labelled 'LIVESLAK'
last mounted on /mnt/alienusb.CQviff on Sat Jul 22 03:25:17 2017
Creating filesystem with 1932539 4k blocks and 483328 inodes
Filesystem UUID: d5e3e90d-63a3-4426-b20b-4865e05d1aab
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

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

tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
mount: /mnt/alieniso.L0H8Y1: WARNING: device write-protected, mounted read-only.
109405 blocks
--- Copying files from ISO to USB... takes some time.
3,137,937,991 100% 10.30MB/s 0:04:50 (xfr#90, to-chk=0/98)
rsync: write failed on "/mnt/alienusb.mHa0o0/liveslak/system/0010-slackware_k-current-x86_64.sxz": Read-only file system (30)
rsync error: error in file IO (code 11) at receiver.c(393) [receiver=3.1.2]
*** ./iso2usb.sh FAILED at line 628 ***
--- Cleaning up the staging area...
root@darkstar:/mnt/fc25/kd1yv2/Downloads# echo $?
1

root@darkstar:/mnt/fc25/kd1yv2/Downloads# ls -l /mnt
total 7
-rw-r--r-- 1 root root 376 Sep 26 2006 README
drwxr-xr-x 2 root root 3 Sep 26 2006 cdrecorder/
drwxr-xr-x 2 root root 3 Mar 16 2002 cdrom/
drwxr-xr-x 2 root root 3 Sep 26 2006 dvd/
drwxr-xr-x 4 root root 4096 Dec 7 2016 fc25/
drwxr-xr-x 2 root root 3 Mar 16 2002 floppy/
drwxr-xr-x 2 root root 3 Mar 16 2002 hd/
drwxr-xr-x 5 root root 100 Jul 22 18:10 live/
drwxr-xr-x 5 root root 2048 Jul 17 15:56 livemedia/
drwxr-xr-x 1 root root 81 Jul 17 15:53 liveslakfs/
drwxr-xr-x 2 root root 3 Sep 26 2006 memory/
drwxr-xr-x 2 root root 3 Sep 26 2006 tmp/
drwxr-xr-x 2 root root 3 Sep 26 2006 zip/
root@darkstar:/mnt/fc25/kd1yv2/Downloads#
 
Old 07-23-2017, 04:03 PM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Code:
--- Copying files from ISO to USB... takes some time.
3,137,937,991 100% 10.30MB/s 0:04:50 (xfr#90, to-chk=0/98) 
rsync: write failed on "/mnt/alienusb.mHa0o0/liveslak/system/0010-slackware_k-current-x86_64.sxz": Read-only file system (30)
rsync error: error in file IO (code 11) at receiver.c(393) [receiver=3.1.2]
The strange thing is that everything seems to have been copied over to the USB drive (100%, 3GB of data) and then there's a sudden rsync error about the USB drive becoming read-only.
Can you find anything in the messagelog or the kernel log about status changes of the USB device? Also, you can add "-v" parameter to the iso2usb.sh commandline to get more verbose progress details about the rsync.
 
Old 07-25-2017, 12:42 AM   #12
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Can't boot live USB

Quote:
Originally Posted by Alien Bob View Post
The strange thing is that everything seems to have been copied over to the USB drive (100%, 3GB of data) and then there's a sudden rsync error about the USB drive becoming read-only.
Can you find anything in the messagelog or the kernel log about status changes of the USB device? Also, you can add "-v" parameter to the iso2usb.sh commandline to get more verbose progress details about the rsync.
I did as you suggested. However, I still cannot boot. Same symptoms. I did inspect the messagelog for any references to the USB changing to read only, but there were none.

When I ran the iso2usb.sh, I added the -v to get more verbose output. It is shown below. (Note that I reverted to the unpatched iso2usb, which I had backed up before applying the patch.) Also note that the error about the directory being read only has disappeared.

===
root@darkstar:~# mkdir /mnt/fc25
root@darkstar:~#
root@darkstar:~# mount /dev/sda9 /mnt/fc25
root@darkstar:~# cd /mnt/fc25/kd1yv2/Downloads/
root@darkstar:/mnt/fc25/kd1yv2/Downloads#
root@darkstar:/mnt/fc25/kd1yv2/Downloads#
root@darkstar:/mnt/fc25/kd1yv2/Downloads# ls -l iso*
-rwxrwx--- 1 live 1000 25040 Jul 22 03:21 iso2usb.sh*
-rwxrwx--- 1 live 1000 24647 Jul 19 04:16 iso2usb.sh.bk.20170721*
-rw-rw-r-- 1 live 1000 724 Jul 22 03:20 iso2usb.sh.patch
root@darkstar:/mnt/fc25/kd1yv2/Downloads#
root@darkstar:/mnt/fc25/kd1yv2/Downloads#
root@darkstar:/mnt/fc25/kd1yv2/Downloads# ./iso2usb.sh.bk.20170721 -v -i slackware64-live-current.iso -o /dev/sdb
#
# We are going to format this device (erase all data) - '/dev/sdb':
# Vendor : Verbatim
# Model : Store n Go Drive
# Size : 7651 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: 15669248 sectors, 7.5 GiB
# Logical sector size: 512 bytes
# Disk identifier (GUID): 24EAAC0A-F998-4716-B8DB-388156348A65
# Partition table holds up to 128 entries
# First usable sector is 34, last usable sector is 15669214
# 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 15669214 7.4 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.0124625 s, 41.1 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: 15669248 sectors, 7.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 2CB28F0E-6FBA-4715-BBE1-C7754FF371E7
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 15669214
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 15669214 7.4 GiB 8300 Slackware Linux
3:2:1 (legacy BIOS bootable)
mkfs.fat 4.1 (2017-01-24)
mkfs.fat 4.1 (2017-01-24)
mke2fs 1.43.4 (31-Jan-2017)
/dev/sdb3 contains a ext4 file system labelled 'LIVESLAK'
last mounted on /mnt/alienusb.TrhXoZ on Sat Jul 22 19:08:57 2017
Creating filesystem with 1932539 4k blocks and 483328 inodes
Filesystem UUID: 4bdeffec-7b6f-4cd9-a42c-901bc8b132c1
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

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

tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
mount: /mnt/alieniso.V6EDTq: WARNING: device write-protected, mounted read-only.
109405 blocks
--- Copying files from ISO to USB... takes some time.
sending incremental file list
boot/
boot/generic
4,856,096 100% 102.22MB/s 0:00:00 (xfr#1, to-chk=95/98)
boot/initrd.img
19,278,952 100% 133.23MB/s 0:00:00 (xfr#2, to-chk=94/98)
boot/memtest
150,024 100% 1.03MB/s 0:00:00 (xfr#3, to-chk=93/98)
boot/syslinux/
boot/syslinux/efiboot.img
1,474,560 100% 9.19MB/s 0:00:00 (xfr#4, to-chk=91/98)
boot/syslinux/f2.txt
969 100% 6.18kB/s 0:00:00 (xfr#5, to-chk=90/98)
boot/syslinux/f3.txt
1,210 100% 7.72kB/s 0:00:00 (xfr#6, to-chk=89/98)
boot/syslinux/f4.txt
1,214 100% 7.75kB/s 0:00:00 (xfr#7, to-chk=88/98)
boot/syslinux/f5.txt
853 100% 5.44kB/s 0:00:00 (xfr#8, to-chk=87/98)
boot/syslinux/iso.sort
50 100% 0.32kB/s 0:00:00 (xfr#9, to-chk=86/98)
boot/syslinux/isolinux.bin
24,576 100% 156.86kB/s 0:00:00 (xfr#10, to-chk=85/98)
boot/syslinux/isolinux.boot
2,048 100% 12.99kB/s 0:00:00 (xfr#11, to-chk=84/98)
boot/syslinux/isolinux.cfg
26 100% 0.16kB/s 0:00:00 (xfr#12, to-chk=83/98)
boot/syslinux/lang.cfg
1,763 100% 11.18kB/s 0:00:00 (xfr#13, to-chk=82/98)
boot/syslinux/message.txt
520 100% 3.30kB/s 0:00:00 (xfr#14, to-chk=81/98)
boot/syslinux/swlogov.png
10,289 100% 65.25kB/s 0:00:00 (xfr#15, to-chk=80/98)
boot/syslinux/syslinux.cfg
290 100% 1.84kB/s 0:00:00 (xfr#16, to-chk=79/98)
boot/syslinux/ter-i16v.psf
5,146 100% 32.63kB/s 0:00:00 (xfr#17, to-chk=78/98)
boot/syslinux/vesamenu.c32
154,128 100% 964.84kB/s 0:00:00 (xfr#18, to-chk=77/98)
boot/syslinux/menu/
boot/syslinux/menu/be-latin1.ktl
256 100% 1.59kB/s 0:00:00 (xfr#19, to-chk=75/98)
boot/syslinux/menu/br-abnt2.ktl
256 100% 1.59kB/s 0:00:00 (xfr#20, to-chk=74/98)
boot/syslinux/menu/de-latin1-nodeadkeys.ktl
256 100% 1.59kB/s 0:00:00 (xfr#21, to-chk=73/98)
boot/syslinux/menu/de-latin1.ktl
256 100% 1.59kB/s 0:00:00 (xfr#22, to-chk=72/98)
boot/syslinux/menu/dk-latin1.ktl
256 100% 1.59kB/s 0:00:00 (xfr#23, to-chk=71/98)
boot/syslinux/menu/es.ktl
256 100% 1.59kB/s 0:00:00 (xfr#24, to-chk=70/98)
boot/syslinux/menu/fr-latin9.ktl
256 100% 1.59kB/s 0:00:00 (xfr#25, to-chk=69/98)
boot/syslinux/menu/it.ktl
256 100% 1.59kB/s 0:00:00 (xfr#26, to-chk=68/98)
boot/syslinux/menu/jp106.ktl
256 100% 1.59kB/s 0:00:00 (xfr#27, to-chk=67/98)
boot/syslinux/menu/kbd.cfg
1,721 100% 10.70kB/s 0:00:00 (xfr#28, to-chk=66/98)
boot/syslinux/menu/lang_be.cfg
3,131 100% 19.48kB/s 0:00:00 (xfr#29, to-chk=65/98)
boot/syslinux/menu/lang_br.cfg
3,115 100% 19.38kB/s 0:00:00 (xfr#30, to-chk=64/98)
boot/syslinux/menu/lang_da.cfg
3,131 100% 19.48kB/s 0:00:00 (xfr#31, to-chk=63/98)
boot/syslinux/menu/lang_de.cfg
3,307 100% 20.57kB/s 0:00:00 (xfr#32, to-chk=62/98)
boot/syslinux/menu/lang_de_ch.cfg
3,131 100% 19.48kB/s 0:00:00 (xfr#33, to-chk=61/98)
boot/syslinux/menu/lang_es.cfg
3,019 100% 18.78kB/s 0:00:00 (xfr#34, to-chk=60/98)
boot/syslinux/menu/lang_fr.cfg
3,146 100% 19.57kB/s 0:00:00 (xfr#35, to-chk=59/98)
boot/syslinux/menu/lang_fr_ch.cfg
3,146 100% 19.57kB/s 0:00:00 (xfr#36, to-chk=58/98)
boot/syslinux/menu/lang_gb.cfg
3,019 100% 18.78kB/s 0:00:00 (xfr#37, to-chk=57/98)
boot/syslinux/menu/lang_it.cfg
3,019 100% 18.66kB/s 0:00:00 (xfr#38, to-chk=56/98)
boot/syslinux/menu/lang_ja.cfg
3,067 100% 18.96kB/s 0:00:00 (xfr#39, to-chk=55/98)
boot/syslinux/menu/lang_nl.cfg
3,019 100% 18.66kB/s 0:00:00 (xfr#40, to-chk=54/98)
boot/syslinux/menu/lang_pt.cfg
3,131 100% 19.35kB/s 0:00:00 (xfr#41, to-chk=53/98)
boot/syslinux/menu/lang_ru.cfg
3,083 100% 19.06kB/s 0:00:00 (xfr#42, to-chk=52/98)
boot/syslinux/menu/lang_se.cfg
3,131 100% 19.35kB/s 0:00:00 (xfr#43, to-chk=51/98)
boot/syslinux/menu/lang_us.cfg
3,019 100% 18.66kB/s 0:00:00 (xfr#44, to-chk=50/98)
boot/syslinux/menu/menu_be.cfg
2,199 100% 13.59kB/s 0:00:00 (xfr#45, to-chk=49/98)
boot/syslinux/menu/menu_br.cfg
2,198 100% 13.59kB/s 0:00:00 (xfr#46, to-chk=48/98)
boot/syslinux/menu/menu_da.cfg
2,199 100% 13.59kB/s 0:00:00 (xfr#47, to-chk=47/98)
boot/syslinux/menu/menu_de.cfg
2,210 100% 13.66kB/s 0:00:00 (xfr#48, to-chk=46/98)
boot/syslinux/menu/menu_de_ch.cfg
2,202 100% 13.61kB/s 0:00:00 (xfr#49, to-chk=45/98)
boot/syslinux/menu/menu_es.cfg
2,192 100% 13.55kB/s 0:00:00 (xfr#50, to-chk=44/98)
boot/syslinux/menu/menu_fr.cfg
2,199 100% 13.59kB/s 0:00:00 (xfr#51, to-chk=43/98)
boot/syslinux/menu/menu_fr_ch.cfg
2,202 100% 13.61kB/s 0:00:00 (xfr#52, to-chk=42/98)
boot/syslinux/menu/menu_gb.cfg
2,192 100% 13.55kB/s 0:00:00 (xfr#53, to-chk=41/98)
boot/syslinux/menu/menu_it.cfg
2,192 100% 13.55kB/s 0:00:00 (xfr#54, to-chk=40/98)
boot/syslinux/menu/menu_ja.cfg
2,195 100% 13.57kB/s 0:00:00 (xfr#55, to-chk=39/98)
boot/syslinux/menu/menu_nl.cfg
2,192 100% 13.55kB/s 0:00:00 (xfr#56, to-chk=38/98)
boot/syslinux/menu/menu_pt.cfg
2,199 100% 13.59kB/s 0:00:00 (xfr#57, to-chk=37/98)
boot/syslinux/menu/menu_ru.cfg
2,196 100% 13.57kB/s 0:00:00 (xfr#58, to-chk=36/98)
boot/syslinux/menu/menu_se.cfg
2,199 100% 13.59kB/s 0:00:00 (xfr#59, to-chk=35/98)
boot/syslinux/menu/menu_us.cfg
2,192 100% 13.55kB/s 0:00:00 (xfr#60, to-chk=34/98)
boot/syslinux/menu/nl.ktl
256 100% 1.57kB/s 0:00:00 (xfr#61, to-chk=33/98)
boot/syslinux/menu/pt-latin1.ktl
256 100% 1.57kB/s 0:00:00 (xfr#62, to-chk=32/98)
boot/syslinux/menu/ru_win.ktl
256 100% 1.57kB/s 0:00:00 (xfr#63, to-chk=31/98)
boot/syslinux/menu/sv-latin1.ktl
256 100% 1.57kB/s 0:00:00 (xfr#64, to-chk=30/98)
boot/syslinux/menu/uk.ktl
256 100% 1.57kB/s 0:00:00 (xfr#65, to-chk=29/98)
boot/syslinux/menu/us.ktl
256 100% 1.57kB/s 0:00:00 (xfr#66, to-chk=28/98)
boot/syslinux/menu/vesamenu.cfg
2,192 100% 13.46kB/s 0:00:00 (xfr#67, to-chk=27/98)
liveslak/
liveslak/addons/
liveslak/optional/
liveslak/optional/0060-broadcom_sta-6.30.223.271_4.9.37-current-x86_64.sxz
1,941,504 100% 9.69MB/s 0:00:00 (xfr#68, to-chk=22/98)
liveslak/optional/0060-skypeforlinux-5.3.0.1-current-x86_64.sxz
57,536,512 100% 69.46MB/s 0:00:00 (xfr#69, to-chk=21/98)
liveslak/optional/0060-tt-15.1-14.2-x86_64.sxz
40,960 100% 50.57kB/s 0:00:00 (xfr#70, to-chk=20/98)
liveslak/optional/0060-wine-2.8-current-x86_64.sxz
235,315,200 100% 69.82MB/s 0:00:03 (xfr#71, to-chk=19/98)
liveslak/rootcopy/
liveslak/system/
liveslak/system/0000-slackware_boot-current-x86_64.sxz
13,979,648 100% 36.43MB/s 0:00:00 (xfr#72, to-chk=18/98)
liveslak/system/0010-slackware_a-current-x86_64.sxz
170,627,072 100% 36.18MB/s 0:00:04 (xfr#73, to-chk=17/98)
liveslak/system/0010-slackware_ap-current-x86_64.sxz
136,400,896 100% 90.27MB/s 0:00:01 (xfr#74, to-chk=16/98)
liveslak/system/0010-slackware_d-current-x86_64.sxz
331,722,752 100% 1.17MB/s 0:04:30 (xfr#75, to-chk=15/98)
liveslak/system/0010-slackware_e-current-x86_64.sxz
42,975,232 100% 3.13MB/s 0:00:13 (xfr#76, to-chk=14/98)
liveslak/system/0010-slackware_f-current-x86_64.sxz
7,622,656 100% 2.58MB/s 0:00:02 (xfr#77, to-chk=13/98)
liveslak/system/0010-slackware_k-current-x86_64.sxz
108,122,112 100% 1.25MB/s 0:01:22 (xfr#78, to-chk=12/98)
liveslak/system/0010-slackware_kde-current-x86_64.sxz
716,877,824 100% 2.75MB/s 0:04:08 (xfr#79, to-chk=11/98)
liveslak/system/0010-slackware_kdei-current-x86_64.sxz
416,403,456 100% 3.66MB/s 0:01:48 (xfr#80, to-chk=10/98)
liveslak/system/0010-slackware_l-current-x86_64.sxz
290,574,336 100% 2.99MB/s 0:01:32 (xfr#81, to-chk=9/98)
liveslak/system/0010-slackware_n-current-x86_64.sxz
103,104,512 100% 3.63MB/s 0:00:27 (xfr#82, to-chk=8/98)
liveslak/system/0010-slackware_t-current-x86_64.sxz
91,824,128 100% 3.26MB/s 0:00:26 (xfr#83, to-chk=7/98)
liveslak/system/0010-slackware_tcl-current-x86_64.sxz
5,779,456 100% 3.38MB/s 0:00:01 (xfr#84, to-chk=6/98)
liveslak/system/0010-slackware_x-current-x86_64.sxz
130,396,160 100% 3.40MB/s 0:00:36 (xfr#85, to-chk=5/98)
liveslak/system/0010-slackware_xap-current-x86_64.sxz
225,779,712 100% 3.10MB/s 0:01:09 (xfr#86, to-chk=4/98)
liveslak/system/0010-slackware_xfce-current-x86_64.sxz
12,189,696 100% 3.12MB/s 0:00:03 (xfr#87, to-chk=3/98)
liveslak/system/0010-slackware_y-current-x86_64.sxz
1,961,984 100% 1.60MB/s 0:00:01 (xfr#88, to-chk=2/98)
liveslak/system/0020-slackware_slackextra-current-x86_64.sxz
4,923,392 100% 3.40MB/s 0:00:01 (xfr#89, to-chk=1/98)
liveslak/system/0099-slackware_zzzconf-current-x86_64.sxz
5,783,552 100% 3.11MB/s 0:00:01 (xfr#90, to-chk=0/98)

sent 3,138,710,148 bytes received 1,774 bytes 3,165,619.69 bytes/sec
total size is 3,137,937,991 speedup is 1.00
--- Making the USB drive '/dev/sdb' bootable using extlinux...
/mnt/alienusb.HjUQRq/boot/extlinux is device /dev/sdb3
--- Copying EFI boot files from ISO to USB.
sending incremental file list
created directory /mnt/alienus2.VZ8aFr/boot
generic
initrd.img
memtest
syslinux/
syslinux/efiboot.img
syslinux/f2.txt
syslinux/f3.txt
syslinux/f4.txt
syslinux/f5.txt
syslinux/iso.sort
syslinux/isolinux.bin
syslinux/isolinux.boot
syslinux/isolinux.cfg
syslinux/lang.cfg
syslinux/message.txt
syslinux/swlogov.png
syslinux/syslinux.cfg
syslinux/ter-i16v.psf
syslinux/vesamenu.c32
syslinux/menu/
syslinux/menu/be-latin1.ktl
syslinux/menu/br-abnt2.ktl
syslinux/menu/de-latin1-nodeadkeys.ktl
syslinux/menu/de-latin1.ktl
syslinux/menu/dk-latin1.ktl
syslinux/menu/es.ktl
syslinux/menu/fr-latin9.ktl
syslinux/menu/it.ktl
syslinux/menu/jp106.ktl
syslinux/menu/kbd.cfg
syslinux/menu/lang_be.cfg
syslinux/menu/lang_br.cfg
syslinux/menu/lang_da.cfg
syslinux/menu/lang_de.cfg
syslinux/menu/lang_de_ch.cfg
syslinux/menu/lang_es.cfg
syslinux/menu/lang_fr.cfg
syslinux/menu/lang_fr_ch.cfg
syslinux/menu/lang_gb.cfg
syslinux/menu/lang_it.cfg
syslinux/menu/lang_ja.cfg
syslinux/menu/lang_nl.cfg
syslinux/menu/lang_pt.cfg
syslinux/menu/lang_ru.cfg
syslinux/menu/lang_se.cfg
syslinux/menu/lang_us.cfg
syslinux/menu/menu_be.cfg
syslinux/menu/menu_br.cfg
syslinux/menu/menu_da.cfg
syslinux/menu/menu_de.cfg
syslinux/menu/menu_de_ch.cfg
syslinux/menu/menu_es.cfg
syslinux/menu/menu_fr.cfg
syslinux/menu/menu_fr_ch.cfg
syslinux/menu/menu_gb.cfg
syslinux/menu/menu_it.cfg
syslinux/menu/menu_ja.cfg
syslinux/menu/menu_nl.cfg
syslinux/menu/menu_pt.cfg
syslinux/menu/menu_ru.cfg
syslinux/menu/menu_se.cfg
syslinux/menu/menu_us.cfg
syslinux/menu/nl.ktl
syslinux/menu/pt-latin1.ktl
syslinux/menu/ru_win.ktl
syslinux/menu/sv-latin1.ktl
syslinux/menu/uk.ktl
syslinux/menu/us.ktl
syslinux/menu/vesamenu.cfg

sent 26,065,723 bytes received 1,357 bytes 52,134,160.00 bytes/sec
total size is 26,055,239 speedup is 1.00
--- Cleaning up the staging area...
root@darkstar:/mnt/fc25/kd1yv2/Downloads#
====
 
Old 07-27-2017, 12:13 AM   #13
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Can't boot live USB

Quote:
Originally Posted by flaflashr View Post
I did as you suggested. However, I still cannot boot.
{snip}
root@darkstar:/mnt/fc25/kd1yv2/Downloads#
====
Some progress! It still will not boot on the desired machine (Thinkpad E520). However, on the older HP Desktop, I was able to ESC to get to the Boot Device selection. I selected the USB device, and it booted Slackware Live mode with persistent settings exactly as it should.

So it seems that it is necessary to create the USB from a Live DVD running Slackware. This proves that the USB creation process works.

So does anybody have any suggestions on how to get this to boot on the Thinkpad E520?

Thanks
Jim
 
Old 07-27-2017, 12:53 AM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by flaflashr View Post
So does anybody have any suggestions on how to get this to boot on the Thinkpad E520?
This is a not so recent machine, that seems to have an hybrid firmware, and I have seen a report saying that it can't boot from an USB stick in EFI mode. A few things you could try:
  • Check on the Lenovo website for the availability of a firmware (they name it BIOS) update for your specific model and apply it.
  • Check your startup mode in the firmware. If it is set to EFI only or both but priority EFI, set it to BIOS only or both but BIOS first. Maybe BIOS is called Legacy in the firmware's menu.
Some machines can't boot from an USB stick if the ISO has been created with mkisfos/isohybrid so you could try to recreate it using xorriso and run iso2usb.sh against the new ISO, but first try to just boot in Legacy mode as I don't know what is the issue for your specific model.

Last edited by Didier Spaier; 07-27-2017 at 01:38 AM.
 
Old 07-28-2017, 10:28 PM   #15
flaflashr
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Can't boot live USB

Quote:
Originally Posted by
A few things you could try:
[LIST
[*]Check on the Lenovo website for the availability of a firmware (they name it BIOS) update for your specific model and apply it.[*]Check your startup mode in the firmware. If it is set to EFI only or both but priority EFI, set it to BIOS only or both but BIOS first. Maybe BIOS is called Legacy in the firmware's menu.[/LIST]Some machines can't boot from an USB stick if the ISO has been created with mkisfos/isohybrid so you could try to recreate it using xorriso and run iso2usb.sh against the new ISO, but first try to just boot in Legacy mode as I don't know what is the issue for your specific model.

I confirmed that I have the most current BIOS that Lenovo offers, i.e., January 2013.

I had previously changed the boot option to be Legacy only. Just to be sure, I tried it again. Same results, i.e., I must interrupt startup to select Startup Device List. I then select the USB device, it tries for a second or two, but then loops back to the Startup Device List. Tried a few iterations, same results.

Just to be certain of the machine's ability, I burned a USB directly. While running my regular HDD Fedora 25, I performed
Code:
dd if=slackware64-live-current.iso of=/dev/sdb bs=4M
I immediately rebooted, and it booted Slackware perfectly from the USB. Of course, this does not include the desired persistent mode.

I'm not certain what you are suggesting that I do with xorriso. Should I use the input file of the existing iso and create a newly named outout iso? Then run the iso2usb.sh against that?

Thanks
Jim
 
1 members found this post helpful.
  


Reply



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] Live CD fails to boot-- also can't get USB boot to work irjowo99 Linux - Newbie 15 04-09-2014 02:03 PM
cant boot my live usb insanity99 Ubuntu 4 02-22-2011 06:03 PM
how to boot up xbmc-live-usb ? schneidz Linux - Distributions 0 11-05-2010 09:48 AM
[SOLVED] live boot from usb papahonk Linux - Laptop and Netbook 3 10-16-2009 12:49 PM
Is there a way to boot from a live cd but then run from usb hd - can't boot usb rbrady Linux - Newbie 16 03-30-2008 12:01 AM

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

All times are GMT -5. The time now is 09:20 PM.

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