LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-01-2020, 04:03 PM   #1
afroraydude
LQ Newbie
 
Registered: Feb 2020
Posts: 1

Rep: Reputation: Disabled
Linux cannot find init only on ISOLINUX


Hello everyone,


Recently I had made an install of the LFS Book 9, and had decided after everything worked to create a bootable ISO using ISOLINUX. I followed the instructions from the ISOLINUX tutorial on the SYSLINUX Wiki and all went well until I received an error along the lines of "Failed to run init script /sbin/init. I booted back into my main system and mounted the ISO into a mount point and when attempting to chroot it said that /bin/bash did not exist, but the file did exist within the mount point.

Some quick notes to add is that I am testing all this through a Virtual Machine. When I copied the system to a folder (as per the ISOLINUX Wiki tutorial) and tried to chroot into that everything works fine, and same goes for booting into that from GRUB, so I know it has to be something with either my ISOLINUX config file or the mkisofs command I run.

This is the file structure for my main system:
Code:
/dev/sda1 - /cdroot
/dev/sdb1 - /boot/efi
/dev/sdb2 - /
This is the mkisofs command I use:
Code:
mkisofs -o output.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -f -l /mnt
This is the isolinux.cfg file:
Code:
DEFAULT linux
LABEL linux
    KERNEL /boot/vmlinuz
    APPEND root=/dev/sr0 initrd=/initrd.img vga=791 init=/sbin/init ro
Any help would be greatly appreciated!

Last edited by afroraydude; 03-01-2020 at 04:21 PM. Reason: slight fix in names
 
Old 03-02-2020, 01:54 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Since you solved it (congrats by the way), it would be nice if you posted your solution...
 
  


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
mkisofs: Error - boot image './isolinux/isolinux.bin' has not an allowable size. ogross74 Red Hat 3 05-05-2016 02:22 AM
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 06:51 AM
ISOLinux from Debian etch cannot find kernel image (but kernel is in its place)! Why? *Dark Dragon* Debian 4 11-07-2005 09:54 PM
ISOLINUX 1.75 2002-06-14 isolinux failed to get sector size tihe Linux - General 13 12-16-2002 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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