LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-11-2014, 02:56 AM   #1
hbinded
Member
 
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Rep: Reputation: 15
Boot error on LFS 7.5 init scripts


Hi there everyone!
I've built a couple of lfs versions in the past from hand and I've never had a problem that I couldn't solve. LFS really does teach some stuff

To my problem: I built version 7.5 successfully and continued with BLFS for a usable system (dhcp, curl/wget...you get the jist)
I also successfully deployed pacman as my package manager from chapter six (creating directories) to the end. Now after a couple of BLFS packages I try a reboot and wham..red warnings. screenies attached.

BTW, I'm building on an HP635, with amd-e350, 6GB RAM and no optimizations. all is done as per the book.
Attached Thumbnails
Click image for larger version

Name:	IMG_20140411_093327.jpg
Views:	55
Size:	262.9 KB
ID:	15218   Click image for larger version

Name:	IMG_20140411_093505.jpg
Views:	47
Size:	266.6 KB
ID:	15219  

Last edited by hbinded; 04-12-2014 at 03:16 AM. Reason: solved. /etc/mtab was not a symlink. my mistake
 
Old 04-11-2014, 10:02 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Had this and similar errors before it has been different things but usually its been a mucked up fstab, I'd check that first.
 
Old 04-11-2014, 06:03 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Can you chroot in from another distribution and post your /etc/fstab?
 
Old 04-12-2014, 03:07 AM   #4
hbinded
Member
 
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Original Poster
Rep: Reputation: 15
Okay, here is my fstab:
Code:
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

/dev/sda8     /            ext3    defaults            1     1
/dev/sda6     swap         swap     pri=1               0     0
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=5,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0

# End /etc/fstab
I went into chroot from ubuntu 12.04 to get that.
 
Old 04-12-2014, 03:15 AM   #5
hbinded
Member
 
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Original Poster
Rep: Reputation: 15
okay, an update after reading a couple of google entries...
in the book under 6.6. Creating Essential Files and Symlinks
I didn't notice but my scripts were written to touch the "/etc/mtab" file. I forgot to change it to a symlink to /proc/self/mounts.

Created the symlink and hey presto! everything works wunderbar! Thanks for all your help. This is now SOLVED!

For all those who may run into this problem, check the /etc/mtab file. It should be a symlink and not a file on its own.
 
  


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] LFS first time boot fails with init error daveLin Linux From Scratch 2 10-31-2012 08:42 PM
INIT and the boot scripts, a theoretical question. stf92 Linux - Newbie 4 09-19-2011 05:09 AM
Startup scripts in init.d disappear after boot up lbuccola Programming 1 07-08-2010 10:52 AM
starting named on boot without init scripts evilchild SUSE / openSUSE 1 03-05-2005 07:46 AM
X not starting on boot (init scripts) cootetom Mandriva 11 05-05-2004 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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