LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-26-2015, 12:58 AM   #1
hylyhd
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Rep: Reputation: Disabled
Won't boot:/lib/lsb/init-functions: line 623 /run/boot log: Read-only file system


I try to build LFS on "ubuntu-14.04.2-desktop-amd64" in vmware
when i finished the build and boot up the LFS, the following error comes out
and the system stuck in there, can't boot into LFS
searching for hours, still don't know how to do
could someone please help me, thanks !

the screenshot:http://ppt.cc/y76Wr

and my fstab info
Code:
# Begin /etc/fstab

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

/dev/sda6      /            ext4     defaults            1     1
/dev/sda5      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
my disk info : lfs is in sda6, ubuntu is in sda1
Code:
Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    19531775     9764864   83  Linux
/dev/sda2        19533822    41940991    11203585    5  Extended
/dev/sda5        19533824    23437311     1951744   82  Linux swap / Solaris
/dev/sda6        23439360    41940991     9250816   83  Linux

Last edited by hylyhd; 07-26-2015 at 07:25 PM.
 
Old 07-26-2015, 05:53 PM   #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
Is this a problem booting ububntu?
 
Old 07-26-2015, 07:17 PM   #3
hylyhd
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
sorry, I didn't say it clearly
when I boot the LFS, it first stuck in "Switched to clocksource tsc"
then I press enter it comes up the error like the the screenshot I post in the first post

Switched to clocksource tsc : http://ppt.cc/UwetQ

By the way, how can I see the log file about the fail boot up?
sorry, I am kind of new in linux, many thanks !

Last edited by hylyhd; 07-26-2015 at 07:27 PM.
 
Old 07-26-2015, 07:29 PM   #4
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
what version of lfs are you building, did you encounter any errors during the build, can you post the results of the version.sh script.

the bootlog cant be viewd cos you are on a read only filesystem which means something is seriously wrong also the path to the boot scripts look odd the rcS.d doesn't look right cant check as i am not at my machine at the mo and my internet is down again! thanks bt!
 
Old 07-26-2015, 08:33 PM   #5
hylyhd
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks Hedger

Here is my version-check output
Code:
bash, version 4.3.11(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.24
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
(Ubuntu EGLIBC 2.19-0ubuntu6.5) 2.19
grep (GNU grep) 2.16
gzip 1.6
Linux version 3.16.0-30-generic (buildd@kissel) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015
m4 (GNU M4) 1.4.17
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.18.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
I am build LFS 7.7 , I went through the book totally fine
until 7.4.1.2. Creating Custom Udev Rules
I input the command "bash /lib/udev/init-net-rules.sh"
and the error shows
Code:
/lib/udev/init-net-rules.sh: line 82: mountpoint: command not found
/sys mut be mounted
init-net-rules.sh is an LFS-specific script to initialize
/etc/udev/rules.d/70-persistent-net.rules
 
Old 07-27-2015, 01:25 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

did you set devtmpfs in the kernel?
from host mount lfs, cd $LFS/boot
Code:
cat config-3.19 | grep CONFIG_DEVTMPFS
"config-3.19 if that is the name of your file"

Are the images showing how far lfs boots, that is as far as it gose?

Did you install lfs bootscripts Ch7.2 If unsure run it again.

Dose /proc/mounts exist?
Code:
ls -l /proc/mounts
Last thing did something go wrong with util linux Ch 6.68

Last edited by spiky0011; 07-27-2015 at 02:20 AM.
 
Old 07-27-2015, 03:47 AM   #7
hylyhd
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks, spiky0011

1.
The result of "cat config-3.19 | grep CONFIG_DEVTMPFS" is
Code:
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
2.
How far it goes means seconds?
http://ppt.cc/UwetQ
it stops at [2.518604] Switched to clocksource tsc

3.
I've installed the lfs-bootscripts-20150222
I will try it again

4.
the command "ls -l /proc/mounts" shows
Code:
lrwxrwxrwx 1 root root 11 Jul 27 16:27 /proc/mounts -> self/mounts
5.
I remember that ch6.68 is fine, but I didn't run the test
when I go through 7.6.4 Configuring the System Clock
I input the command "hwclock --localtime --show" it shows
Code:
bash: hwclock: command not found
Is that means maybe ch6.68 got something wrong?
 
Old 07-28-2015, 09:55 AM   #8
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
Did you run this command:

Code:
mkdir -pv /var/lib/hwclock
In chapter 6.68?

Run command

Code:
ls /var/lib
and look for hwclock. If it is NOT listed, you'll need to go back and re-do chapter 6.68 to fix it.

One lingering question:

Did you in ANY way deviate from the book?

Last edited by ReaperX7; 07-28-2015 at 09:56 AM.
 
Old 07-28-2015, 09:55 AM   #9
hylyhd
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
I capture another error message http://ppt.cc/xt99E
It shows mount:command not found

when I finished ch6 and use command in ch6.73
Code:
chroot "$LFS" /usr/bin/env -i              \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin     \
    /bin/bash --login
after I enter the chroot
when go through ch7, sometimes I will have the command not found error
like "7.3.3.2. A kernel module is not loaded automatically, and Udev is not intended to load it"
Code:
softdep snd-pcm post: snd-pcm-oss
bash: softdep: command not fount
and I use mount command
it also shows command not fount

Is that means something go wrong in ch6.68. Util-linux-2.26
but I go back to step 6.68 and install Util-linux-2.26 , it did not go wrong
 
Old 07-28-2015, 10:07 AM   #10
hylyhd
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi ReaperX7

I can be sure that I won't miss the command "mkdir -pv /var/lib/hwclock"

the /var/lib has hwclock
but there is nothing in there
http://ppt.cc/CArne
 
Old 07-29-2015, 11:18 AM   #11
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
How old is your hard drive?
 
Old 07-30-2015, 10:44 PM   #12
hylyhd
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
My Hard drive is Intel SSD 520 series 240GB
but I build LFS in vmware on ubuntu 14.04
It it a problem related to the error ?
 
  


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] Won't boot: /etc/rc.d/init.d/rc: line 193: /var/log/boot.log: Read-only file system liquidkaleidoscopes Linux From Scratch 6 11-11-2011 08:53 PM
Ubutnu won't boot. Error: Target file system doesn't have /sbin/init. No init found. Zeljka_Lin Linux - Newbie 9 05-02-2011 06:56 AM
init script won't run at log-off dimangi Linux - Newbie 1 10-29-2003 02:19 AM
k3bsetup run, now system won't boot andrewb758 Linux - Software 2 09-18-2003 06:52 PM

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

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