LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-03-2018, 10:39 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
Booting USB hard drive on UEFI machine in legacy mode


I'm having problems booting Slackware 14.2 installed on a USB drive for a Dell laptop.

I've been booting external USB drives with Slackware installed since about 2002. There's been problems along the way but this one has me at a loss about what to do to fix it.

Current situation is that I have a Dell laptop that successfully boots Slackware 14.1 installed on USB hard drive irrespective of whether it's 32bit or 64bit. So I know the procedure I'm following is correct it's just I can't seem to get the right mix of modules to load in my initrd.

For 14.1, which boots successfully, the load_kernel_modules in /boot/initrd.gz is

Quote:
modprobe -v usb-storage
modprobe -v xhci-hcd
modprobe -v ehci-hcd
modprobe -v ehci-pci
modprobe -v uhci-hcd

For 14.2, boot fails, mkinitrd_command_generator.sh suggests these modules -

Quote:
modprobe -v mbcache
modprobe -v jbd2
modprobe -v ext4
modprobe -v usb-storage
modprobe -v xhci-hcd
With this initrd.gz I get failures along the lines of

Quote:
could not insert 'mbcache': Exec format error
could not insert 'jbd2': Exec format error
could not insert 'ext4': Exec format error
it then fails big time with

Quote:
mount can't find /mnt/ in /etc/fstab

Any suggestions on how to proceed?

Alex
 
Old 01-03-2018, 12:09 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would try vmlinuz huge without initrd, then after boot, on running system I'd try to make the initrd
 
Old 01-04-2018, 03:59 PM   #3
username_11011
Member
 
Registered: Nov 2017
Location: Odessa, TX
Distribution: slackwarearm
Posts: 30

Rep: Reputation: Disabled
What the ...?? Maybe you're trying to load 32-bit modules with a 64-bit kernel (or vice versa??) I've run 32-bit binaries with 64-bit Slackware kernels using Alien Bob's library. Are you doing this with the kernel modules themselves? I need more information.
 
Old 01-05-2018, 12:50 AM   #4
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by keefaz View Post
I would try vmlinuz huge without initrd, then after boot, on running system I'd try to make the initrd
I've got Slackware installed on a External USB hard drive so I have to use an initrd.
 
Old 01-05-2018, 12:54 AM   #5
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by username_11011 View Post
What the ...?? Maybe you're trying to load 32-bit modules with a 64-bit kernel (or vice versa??) I've run 32-bit binaries with 64-bit Slackware kernels using Alien Bob's library. Are you doing this with the kernel modules themselves? I need more information.
I'm using the 64 bit install disk and haven't introduced Alien Bob's Libray. I have seen somewhere else, on this forum, about the "Exec format error" problem, I'm sure that an explanation came back to say that these things happens i.e. mixing 32-bit binaries with 64-bit modules. Can't see how though.
 
Old 01-05-2018, 01:04 AM   #6
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Anyway, I decided to ignore the kind suggestion from mkinitrd_command_generator.sh. Not for the first time, I also ignored it back in 2014 when I migrated from 13.37 to 14.1.

What I did was just prior to going into chroot do an lsmod to inspect what modules had been loaded during the install phase. I decided to stick with ext4 as I felt I would definitely need that.

What i came up with was

Code:
mkinitrd -c -k ${_KERNEL} -f ext4 -r ${__UUID} -m ext4:usb-storage:ehci-pci:xhci-pci -u -w 10 -o /boot/initrd.gz
Which got me an system installed on an external USB disk that boots successfully on the laptop and also on a desktop with a lot more disks.

Thanks

Alex
 
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
Dual Booting Problem with UEFI disabled, Legacy enabled LasVegasUser Linux - Newbie 11 05-28-2017 09:32 PM
[SOLVED] Booting USB hard drive on UEFI machine in legacy mode aikempshall Slackware 6 11-20-2014 04:14 PM
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
Booting FC-6 via USB hard drive sfjtraps Fedora 1 02-22-2007 09:57 AM
Booting up with a USB hard drive? phar1944 Linux - Newbie 4 10-17-2003 10:15 PM

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

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