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 02-23-2007, 09:27 PM   #1
tryLinux&see
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Rep: Reputation: 0
LFS 6.2 a read-only file system?


Hi. I finished my LFS using the 6.2 book version.
I booted the system and tried to mkdir but I was
prompted with a message that is something like
Cannot make directory: Read-only File system

Is it supposed to be a read-only file system?
If not, how can i make it writable?
 
Old 02-24-2007, 12:45 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Post the contents of your /etc/fstab file. And tell us what directory you were in and what the mkdir command was that you used.
 
Old 02-24-2007, 10:02 AM   #3
tryLinux&see
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
# Begin /etc/fstab

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

/dev/hdc3 /mnt/lfs ext3 defaults 1 1
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
shm /dev/shm tmpfs defaults 0 0
# End /etc/fstab
EOF


My LFS is still in a command line so after logging in, i get the -bash-3.1#.
I cd into / and from there i try to mkdir -v /try. That is when i am prompted with mkdir: cannot create directory '/try': Read-only file system
 
Old 02-24-2007, 07:33 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Quote:
Originally Posted by tryLinux&see
Code:
# Begin /etc/fstab

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

/dev/hdc3 /mnt/lfs   ext3    defaults        1 1
proc      /proc      proc    defaults        0 0
sysfs     /sys       sysfs   defaults        0 0
devpts    /dev/pts   devpts  gid=4,mode=620  0 0
shm       /dev/shm   tmpfs   defaults        0 0
# End /etc/fstab
EOF
(spacing adjusted by me)

Now, is that really your /etc/fstab on your LFS system? Or is that from the host system (or copy-pasted from the LFS book with a few modifications)? The reason I ask is because of the "EOF". If the file was created with the instructions in the book, the EOF would not be there. The EOF should be removed from the file. Go back through the book and check any other system files made with the "cat > somefile << EOF" method. None of those files should have an EOF at the end.

Regardless, assuming that is the /etc/fstab on your LFS system, the problem is simple: you don't have a root directory. I'm not even sure how the system boots . You need to change this line:
Code:
/dev/hdc3 /mnt/lfs   ext3    defaults        1 1
to be this:
Code:
/dev/hdc3 /          ext3    defaults        1 1
Assuming that when you built LFS, you compiled and installed everything like the books suggests (inside /mnt/lfs).
 
Old 02-25-2007, 09:33 AM   #5
tryLinux&see
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks!
I'll check those you have mentioned.

--edit

sorry btw for not fixing the spacing.

Last edited by tryLinux&see; 02-25-2007 at 09:38 AM.
 
Old 02-25-2007, 10:09 AM   #6
tryLinux&see
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
I copy and pasted the code from the book and i forgot to delete the first few lines and last lines.
There is no EOF at the actual code document.

Everything is ok now! Thanks!

I would like to add one more question.
When booting in LFS, i get this message:

error: "dev.rtc.max-user-freq" is an unknown key [FAIL]

Is that something important that should be fixed?
 
Old 02-25-2007, 12:18 PM   #7
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
You're welcome for the help.

As for the new question, it sounds like you have a problem similar to this person.

The device involved is a real-time clock (I believe). And the kernel needs to support it for udev to create the device at boot. So the first place I would check would be your kernel config. Or alternatively, execute this command:
Code:
grep -lr "dev.rtc" /etc/*
That ought to tell you what file(s) are printing that message. Perhaps you can look at the file and get a better understanding of what it's trying to accomplish, how it's failing, and what you can do to correct it.

I know that's probably not the anwer you want, but I haven't had that problem before. So this is an educated guess on my part.
 
Old 03-13-2007, 07:14 PM   #8
na5m
Member
 
Registered: Jan 2005
Location: california
Distribution: O.A.M. (Overmonitoring Address Matrix) Release 2.2 with 2120 Patch
Posts: 37

Rep: Reputation: 17
kernel config/build

The error
Code:
error: "dev.rtc.max-user-freq" is an unknown key [FAIL]
may have something to do with the way you configured/compiled the kernel regarding the realtime clock. Maybe rechecking your kernel .config file and a subsequent kernel rebuild would help. Good luck!
 
  


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 read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 03:27 AM
'Read-only file system' when untar a tar.bz2 file yinglcs Linux - General 1 02-18-2006 09:12 PM
[LFS 61][failed fsck] with reiser file system mr_demilord Linux From Scratch 3 10-13-2005 04:56 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM
LFS without a host system? (read on..I need more subject space than I have) JoeLinux Linux From Scratch 4 01-31-2002 04:30 PM

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

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