LinuxQuestions.org
Visit Jeremy's Blog.
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 06-08-2007, 03:38 AM   #1
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Rep: Reputation: 15
LFS Boot Problem(LILO,Two Distributions in Two Hard Disks)


Like the title i mentioned, I had two hard disks, one disk for Windows&Slackware and one for the LFS(6.2).

Before i got another disk for LFS, i build the LFS system in Slackware.
And then copied all packages to the second hard disk.

I followed all the instructions in LFS 6.2 book until Chapter 7, i am a little confused what Chapter 7 says, so i skipped a few.

I edited /etc/lilo.conf, add this entry, and run the lilo command.

Code:
#LFS linux
image = /boot/vmlinuz-2.6.21.1
root = /dev/hdb1
label = LFS-2.6.21.1
read-only
But after reboot and enter the "LFS-2.6.21.1", i got the ERROR like this and stopped.

Code:
VFS: Mounted root (ext3 filesystem) readonly
INIT: version 2.85 ...............
INIT: /etc/rc.d/init.d.rc line:97 /dev/null Read-Only File System
Can someone help me out?
 
Old 06-09-2007, 04:14 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Can you post the contents of /etc/rc.d/init.d.rc on your LFS partition? It looks as though it's trying to use /dev/null for something (a file-system?) and failing at line 97.
 
Old 06-09-2007, 05:35 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

@51dunk: LFS doesn't have a /etc/rc.d/init.d.rc file, it does have /etc/rc.d/init.d/rc file (mind the slash between init.d and rc instead of the/your dot.

If this is not a typo, take a good look at your /etc/inittab file, especially the line that starts with s1. This line should look like this:

si::sysinit:/etc/rc.d/init.d/rc sysinit

Do check the other lines too, but the above line is used during start-up.

Hope this helps.
 
Old 06-10-2007, 10:15 PM   #4
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Original Poster
Rep: Reputation: 15
First of all, thanks for responding.

gilead: the rc file is directly created from lfs bootscript tar, so i don't think that's the reason of failure. I am not post the entire rc file content, because i think it is same as all yours.

druuna: Yes, it's /etc/rc.d/init.d/rc. I just check out the /etc/inittab file, and make sure all things are right, here is my /etc/inittab file content:

Code:
id:3:initdefault:

si::sysinit:/etc/rc.d/init.d/rc sysinit

10:0:wait:/etc/rc.d/init.d/rc 0
11:S1:wait:/etc/rc.d/init.d/rc 1
12:2:wait:/etc/rc.d/init.d/rc 2
13:3:wait:/etc/rc.d/init.d/rc 3
14:4:wait:/etc/rc.d/init.d/rc 4
15:5:wait:/etc/rc.d/init.d/rc 5
16:6:wait:/etc/rc.d/init.d/rc 6

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

su:S016:once:/sbin/sulogin

1:2345:respawn:/sbin/agetty tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600
But after i reboot, i got the same error.

I will look at the linux boot process details these days, and i hope someone can pull me out quickly.
 
Old 06-11-2007, 08:57 AM   #5
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Original Poster
Rep: Reputation: 15
Well, I solved this problem, it's the problem of both /dev/null and /etc/inittab file. I make the wrong inittab file first and miss the /dev/null second, so i got success the third try. It's lucky that it has only 2 options, not 200 options ^_^, but it make me feel the linux boot process.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to install different distributions in two different Hard Disks ? unix4power Linux - General 3 03-16-2006 08:10 AM
Grub problem for Dual boot with two hard disks adityamooley Linux - Newbie 10 02-08-2006 01:14 PM
Dual Boot with 2 Hard-disks cooldeal Linux - Newbie 4 01-04-2006 03:53 PM
Two hard disks better for dual boot? zigzago Linux - Hardware 5 03-18-2005 03:29 AM
Two boot loaders in two hard disks qnguyendang Linux - General 1 02-06-2003 08:01 PM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration