LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2021, 01:46 PM   #1
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Rep: Reputation: Disabled
Exec format error upon boot on fresh install


Hi!

I am have just installed - for the first time, and after many many mistakes, my first Slackware - 14.2 64 on a San Disk Cruiser usb stick, throuh my Fujitsu Esprimo E7935, with a Corel2 Duo E8500 and 8 Gb ram, from a DVD burned from an iso dowsloaded this week.
I did this after using Slackware LIve (Mate) in 2 of my computers, for most of my everyday needs, for a couple months.


Immediately upon concluding the installation - having chosen not to install lilo - and exiting setup i did:

1 - chroot /mnt

2- ran mkinitrd -c -k 4.4.14 -m ext4 -f ext4 -r /dev/sdb3
got a message that modules jbd2.ko,mbcache.ko and a third one (maybe ext4?) had been added
3- grub-install --target=i386-pc -dev-sdb
got "no errors"

4- added > GRUB_DISABLE_OS_PROBE=true < to /etc/default/grub

5- ran lsblk and checked that none of the partitions in the computer's HD were mounted

6 - ran grub-mkconfig -o /boot/grub/grub.cfg
and got message that confirmed presence of initrd, and surprisingly to me that some of the OSes installed on the hd had been found, and the error message which I enclose as a .jpeg file

At this point I have no other idea than asking for help.

Greetings!
Attached Thumbnails
Click image for larger version

Name:	sLAK_eRROR.jpeg
Views:	29
Size:	180.2 KB
ID:	35436  
 
Old 01-31-2021, 03:08 PM   #2
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by fredmyra View Post
Hi!
surprisingly to me that some of the OSes installed on the hd had been found, and the error message which I enclose as a .jpeg file
Nice to see someone else has decided to become a slacker.

Do you know there is a slackware instalation forum? https://www.linuxquestions.org/quest...40/?daysprune=

My first guess is that since there is another distro on the hdd is that you didn't reformat the hdd during the install process. So slackware installed besides the old distro and your electronic marvel is swapping between distro's as it boots.
 
Old 01-31-2021, 06:19 PM   #3
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Thanks for the link. I had looked for it but missed it somehow.

I Looked through the 8 first pages untill it become most references till much older versions, but i found a reference by Richard Cranium @ https://www.linuxquestions.org/quest...ab-4175583059/ :

"You should bind /sys, /dev, and /proc to /mnt/tmp/sys, /mnt/tmp/dev, and /mnt/tmp/proc prior to the chroot, while you're at it."

As you can see above I did not do that.

I was following https://mirrors.dotsrc.org/slackware.../README.initrd where there is no mentioning of any binding and I assumed
that chroot would be like arch-chroot in ArchLinux.

Can that be my misstake ?

edit: I have several Linux distros on my HD.

I did not install to the HD. I installed to an USB-stick and installed grub to the usb stick too.

Last edited by fredmyra; 01-31-2021 at 06:22 PM. Reason: add the last paragraph
 
Old 01-31-2021, 06:58 PM   #4
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by fredmyra View Post
I was following https://mirrors.dotsrc.org/slackware.../README.initrd where there is no mentioning of any binding and I assumed
that chroot would be like arch-chroot in ArchLinux.

Can that be my mistake ?
In the link I've quoted, you appear to have copied and pasted (since it appears in the OP) a line from Alien's insructions, which might not be right...... (I'm not implying that Alien's instructions are wrong. They may not be current.)

Therefore you might be building a initrd file which has no matching kernel.

So have a look in your boot folder and replace the numbers (4.4.14) with the numbers that appear after which ever kernel you're using. And check that your usb is the destination.

Code:
mkinitrd -c -k ?????????????? -m ext4 -f ext4 -r /dev/sd??
 
1 members found this post helpful.
Old 01-31-2021, 07:56 PM   #5
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
My /boot folder @ sdb3, my Slackware (root) partition says: vmlinuz,vmlinuz-generic,vmlinuz-generic-4.4.14,vmlinuz-huge,vmlinuz-huge-4.4.14

uname -r mentions "4.4.14"

A question : can it be that I need to add a specific (usb ?) mode to initrd in order to be able to boot from the usb stick into which Slackware was installed?

Last edited by fredmyra; 02-01-2021 at 07:11 AM. Reason: correct question
 
Old 02-01-2021, 02:40 PM   #6
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by fredmyra View Post
A question : can it be that I need to add a specific (usb ?) mode to initrd in order to be able to boot from the usb stick into which Slackware was installed?
What your asking is unfortunately beyond my knowledge. Sorry.

Thus, unless others can help here, I suggest you ask your questions again in the Slackware Instalation forum.
 
Old 02-01-2021, 03:58 PM   #7
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Thanks for your help anyway, I will try the installation forum. Should I somehow close this thread ?
 
  


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] Weird looking graphics problem upon fresh install. Rotwang2 Fedora 17 12-30-2017 05:52 AM
ERROR: could not insert 'aufs': Exec format error vinayak099 Linux - Software 1 02-05-2014 03:55 AM
qemu: run gust images face error > Exec format error Sefid par Linux - Virtualization and Cloud 3 07-30-2013 02:40 PM
exec cmd=perl... work but exec cgi doenst crions Slackware 5 12-09-2005 12:17 PM
MDK 9.1 Fatal Error in Stage 1: Exec Format Error Beano Mandriva 5 09-12-2004 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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