LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-23-2014, 01:48 PM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
cannot boot usb installer in uefi mode


Hi,

I'm trying to install slackware64 14.1 to an asus aspire v5 notebook using the usb installer method. I can boot the usb key in legacy mode but not in uefi mode where it does not show up as a possible boot device. I have disabled secure boot.

So I have two questions:
1. Does anyone know how to make the usb install key available on the boot menu in uefi mode?
2. If I boot the installer in legacy mode, does that mean I cannot use the uefi method to boot slackware once it is installed?


Thanks for any input,
Brian
 
Old 02-23-2014, 03:04 PM   #2
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
How did you make the USB install disk?

You could try making it manually as follows. Create a GPT partition and format it to FAT32 (use the the mkdosfs utility to format if you are using another Slackware install). This will serve as your EFI System Partition. It must be big enough to hold the Slackware install media's huge kernel, initrd and a boot loader (50Mb should do it). The EFI System Partition must be marked as such via the partitioning tool (e.g. with gdisk set the partition type code EF00).

Once the system partition has been created add a ./EFI/BOOT/ directory structure to this partition, into which you place the elilo binary named as BOOTX64.EFI. This exact naming (./EFI/BOOT/BOOTX64.EFI) is not an absolute requirement. You can use a different directory structure and name for your bootloader, however conforming to this suggestion will simplify things for you as UEFI systems consider a bootloader named in this way to be the default.

Into the same directory on your system partition (./EFI/BOOT) copy over the following two files from the official install media: kernels/huge.s/bzImage and isolinux/initrd.img (just the files, not their directory structures). Plus create an elilo.conf, that looks like this:

Code:
prompt
timeout=50
default=install

image=bzImage
  label=install
  initrd=initrd.img
  append="load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s"
You should now have a USB disk that you can boot from, though you may need to configure your UEFI to consider this the first boot disk (refer to your manufacturer's documentation on how to do this) or use the EFI Shell to specify this disk and/or bootloader.

In addition to the system partition you may wish to have a second partition that holds the rest of the Slackware installation files. This can be formatted with any filesystem supported by the the huge.s kernel. This partition can be mounted after you have booted from your install media and used as a source of packages during installation. Alternatively you can insert an official Slackware CD or DVD once setup is up and running, or perform a network installation.
 
1 members found this post helpful.
Old 02-23-2014, 03:26 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
I made the stick using the usbimg2file.sh script. I assumed it would be uefi bootable. So I happened across this link, and based on that I copied the EFI directory and all the contents of syslinux to the root of the usb stick. Now it boots.

Thanks ruario.

Does the directory structure created by the usbimg2file.sh work on some uefi machines and just happens to not work on mine?

Brian

Last edited by BCarey; 02-23-2014 at 03:42 PM.
 
Old 02-23-2014, 03:32 PM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
No problem, glad you got there in the end!
 
Old 02-23-2014, 03:45 PM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Ruario,

Since you just posted, you might miss that I just edited my post to add a question which maybe you have some insight into. I was curious whether the directory structure created by the usbimg2disk.sh script works on some uefi machines and that my computer is somehow different, or would everyone need to make this modification.

Brian
 
Old 02-23-2014, 03:46 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,255

Rep: Reputation: Disabled
If you are using the script usbimh2disk.sh this is a known issue. It should put content of /syslinux directly at the root of the tree. Attached patch solves that (remove the .txt extension before applying it).

Or use this installer : http://slint.fr/installers/slint64-14.1.iso an its md5 file http://slint.fr/installers/slint64-14.1.iso.md5
See instructions here: http://slint.fr/en/installer.html

EDIT This answers you last post as well
Attached Files
File Type: txt usbimg2disk.sh.patch.txt (536 Bytes, 38 views)

Last edited by Didier Spaier; 02-23-2014 at 03:54 PM.
 
Old 02-23-2014, 03:54 PM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by BCarey View Post
Does the directory structure created by the usbimg2file.sh work on some uefi machines and just happens to not work on mine?
Not 100% sure, since I haven't tested but quickly scanning it, it appears to be the same as the one in Slackware 14.0 (which did not support UEFI) so I suspect not.

EDIT: How odd, usbimg2file.sh from Slackware 14.0 and Slackware 14.1 both state "# $Id: usbimg2disk.sh,v 1.23 2012/09/03 20:52:31 eha Exp eha $" but if I diff them they are not the same.

Last edited by ruario; 02-23-2014 at 03:57 PM.
 
Old 02-23-2014, 06:32 PM   #8
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
If you are using the script usbimh2disk.sh this is a known issue. It should put content of /syslinux directly at the root of the tree. Attached patch solves that (remove the .txt extension before applying it).

Or use this installer : http://slint.fr/installers/slint64-14.1.iso an its md5 file http://slint.fr/installers/slint64-14.1.iso.md5
See instructions here: http://slint.fr/en/installer.html

EDIT This answers you last post as well
I'm glad to hear it is a "known issue", it just wasn't known to me ;-) Anyway I had gotten it working and wanted to make sure that "someone" was aware of the problem.

Brian
 
Old 02-24-2014, 03:07 AM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by Didier Spaier View Post
remove the .txt extension before applying it
Why do you need to remove the extension?
 
Old 02-24-2014, 03:20 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,255

Rep: Reputation: Disabled
Quote:
Originally Posted by ruario View Post
Why do you need to remove the extension?
I was just too lazy to explain why I needed to add it to upload the file

Last edited by Didier Spaier; 02-24-2014 at 03:26 AM.
 
  


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
Kali live usb install and boot problems with uefi Surgikill Linux - Laptop and Netbook 12 07-23-2014 01:53 PM
UEFI boot support in the slackware installer rkelsen Slackware 13 03-16-2013 08:58 AM
LXer: Dual-boot Windows 8 and Ubuntu 12.10 in UEFI mode LXer Syndicated Linux News 0 03-12-2013 08:40 PM
UEFI boot partition in mint 11 installer crashes. expat Linux Mint 2 10-09-2011 04:16 AM
UEFI - is there a way to boot into a 'EFI Shell' using a usb stick/CD? nicolasdiogo Linux - Hardware 7 08-24-2011 07:29 AM

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

All times are GMT -5. The time now is 04:02 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