Is the following the exact message that appears after booting?
Quote:
- Are you able to recall what was printed before the EXT3-fs (sda6): mounted filesystem with writeback data mode line? When you are logged in, are you able to execute the following command Code:
/bin/dmesg |
I just booted it again, and here are the lines that I am able to see while booting, before getting to bash-4.2#:
Quote:
|
Quote:
Code:
/bin/dmesg | /bin/more Although it is probably unrelated to your issue I do see one thing that can probably be disabled in the kernel: Quote:
|
I tried "/bin/dmesg | /bin/more", and there are awful lot of messages, I cannot write all of them here. As long as I understand there isn't anything interesting, the only difference from later is that now I have a message saying: "devtmpfs: initialized" and another saying that devtmpfs is mounted. If you could tell me what to look for, maybe can I search for it and tell you what I see.
|
You need to look for errors, warnings and messages that look out of place. I would start by focusing on disk related entries, which seem to be read-only.
You do have a minimal shell after the boot which might give you access to some commands. The following might give you an indication of what is going on: - error/warning related: Code:
dmesg | egrep -A2 -B2 -i "error|warn" Code:
dmesg | egrep -A2 -B2 -i "sd[a-z]|ext[234]|mount" Code:
df -h |
I did used the commands that you said, and here are some of the outputs:
For dmesg | egrep -A2 -B2 -i "error|warn", I got some of those and some others too, without any error or warning in the messages: Quote:
Quote:
Quote:
Quote:
|
Stepping through the boot sequence I just noticed this:
Quote:
|
I finished LFS before a week or so, and have already started with BLFS, I have already installed X Windows System and KDE. The point is that I was getting this read-only error before I had started with BLFS, meaning just when I finished with LFS, but didn't bother to solve it. Then continued with BLFS, and I'm still getting this error. So I already have started with BLFS. But I cannot start my graphical interface, while when I type "startx", I get the error regarding my read-only file system, it cannot write some files.
|
Quote:
Quote:
I assume you use the chrooted environment to build BLFS, which is wrong! You should build BLFS on top of LFS and not on top of your host (chrooted env uses the kernel and dev entries from your host and _not_ from LFS). Quote:
First finish building LFS! |
I already followed the book about LFS, when I finished it I managed to boot without any kernel panic, some of the commands like ls, cat were working, but I was still getting the problem regarding read-only file system, when I tried to create a file or directory. I don't know what you mean with finish LFS. I already booted. I can start from all over again, and I will get the same problem when I will finish LFS. The point is that I don't know how to solve this read-only file system problem.
|
So if you change this id:5:initdefault: to this id:3:initdefault: you still have the same issue?
Quote:
EDIT: Also remove this from your inittab: kd:5:respawn:/opt/kde/bin/kdm |
Yes, I get the same problem. And to be sure again, I changed it to 3, and deleted the line regarding kde. Restarted, it again boots, other commands are working but still cannot create a directory or file. Still getting the problem regarding read-only file system.
|
Quote:
I've re-read the posts in this thread an have a few questions: 1) You mention the following (p#1): Quote:
2) Besides the changes in the inittab file, did you make any other changes regarding boot scripts? I'm asking because the boot seems to execute /etc/rc.d/init.d/mountvirtfs (the VFS: Mounted root (ext3.... line) and shortly after that you're given the minimal shell, without an error/warning. modules, udev and swap don't seem to be executed (and all that follows). You might want to revisit chapters 7.6, 7.7 and 7.12 Quote:
|
1) The small changes that I mean are, that I added support for udev as the book says, and enabled some graphic and input hardware support, regarding my laptop.
2) As long as I recall I didn't make any changes regarding boot scripts. I installed bootscripts in 7.6 as it says, then in section 7.7, I created the inittab exactly as it is written there, you can also see it in the earlier posts. And in section 7.12, I didn't do any changes to my rc.site file, because I think it was the same as the one already created during my LFS installation. I don't also recall any error messages during my LFS build, even the test results were similar like existing LFS test logs. I build it twice, and got the same problem. I don't know where I make mistake(s). But this is driving me crazy. One off-topic question: When I start building LFS and when I have to mount my ext3 filesystem to /mnt/lfs, should I just use mount command for it? Or I should also add it to my host /etc/fstab file? While as long as I know if I don't mount it using my host /etc/fstab file, my partition will be unmounted from /mnt/lfs whenever I restart my computer. |
Quote:
Quote:
Once you reach chapter 6 you also need to remount certain stuff if you stop/start (reboot) (chapters 6.2.2 and 6.2.3) and use the correct chroot command (this one: 6.4. Entering the Chroot Environment or for chapter 7 and on: 6.65. Cleaning Up) BTW: You never answered this question: error: no file found |
All times are GMT -5. The time now is 03:16 AM. |