Exec format error upon boot on fresh install on usb stick
by fredmyra from LinuxQuestions.org on (#5DM4J)
Hi!
I have just installed - for the first time, and after many many mistakes, my first Slackware - 14.2 64 (stable)on a San Disk Cruiser usb stick, through my Fujitsu Esprimo E7935, with a Corel2 Duo E8500 , 8 Gb ram, from a DVD burned from an iso downloaded last 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 a message that confirmed presence of initrd and, surprisingly to me, of some of the OSes installed on my hd, and the error message which I enclose as a .jpeg file.
Searching the forums site 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."
Which I did not do,as I was following https://mirrors.dotsrc.org/slackware.../README.initrd where there is no mentioning of any binding and so I assumed,maybe wrongly, that chroot would be like arch-chroot in ArchLinux, where one does no explicit binding, if I am not mistaken. Can this be the mistake I must correct ?
Or 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?
Maybe both?
Attached Thumbnails


I have just installed - for the first time, and after many many mistakes, my first Slackware - 14.2 64 (stable)on a San Disk Cruiser usb stick, through my Fujitsu Esprimo E7935, with a Corel2 Duo E8500 , 8 Gb ram, from a DVD burned from an iso downloaded last 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 a message that confirmed presence of initrd and, surprisingly to me, of some of the OSes installed on my hd, and the error message which I enclose as a .jpeg file.
Searching the forums site 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."
Which I did not do,as I was following https://mirrors.dotsrc.org/slackware.../README.initrd where there is no mentioning of any binding and so I assumed,maybe wrongly, that chroot would be like arch-chroot in ArchLinux, where one does no explicit binding, if I am not mistaken. Can this be the mistake I must correct ?
Or 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?
Maybe both?
Attached Thumbnails