Won't boot: /etc/rc.d/init.d/rc: line 193: /var/log/boot.log: Read-only file system
When I try to boot Linux from Scratch using an external U.S.B. hard drive, it encounters errors right as it is entering runlevel 3:
Code:
/etc/rc.d/init.d/rc: line 193: /var/log/boot.log: Read-only file system Code:
# Begin /etc/fstab |
Hi,
The main issue seems to be this: Quote:
The other errors are probably related to this. Only thing I can come up with right now: Is the USB HD writeable (some have a hardware "switch" to make them read-only)? Hope this helps. |
Quote:
I logged in, and tried to check what was mounted. cat /etc/mtab and cat /proc/mounts returned nothing. That's weird... so I went into /proc and found that nothing was there. The same was true of /sys. So it's not mounting those, which is probably what's causing all these problems. I checked /etc/fstab, and I'm really not sure what (if anything) is wrong with it. |
Hi,
You shouldn't have to add the rw option to grub. Normally the system is initially brought up in read only mode, to be re-mounted read-write at a later boot stage. I do believe the error you posted is one of the symptoms of another problem that happened earlier in the boot process. Try booting to a prompt as you described and check the log files (might not be there due to the read-only problem ;) ) and use the dmesg | more command to search for errors. We can only start guessing when there are no errors. I'm assuming that you already checked for typo's and such in /boot/grub/grub.cfg and are reasonably sure you have a correct kernel configuration. Hope this gets you going again. |
Quote:
Here is my dmesg: http://pastebin.com/N42ZaRYX . I didn't see any error messages that looked relevant here. This is the GRUB entry (I didn't install GRUB 2 because I'm using my preinstalled GRUB. Also, loading the kernel 3.1 that I wrote specifically for L.F.S. from (hd1,0) (the external drive) makes no difference): Code:
title Linux from Scratch Code:
# <fs> <mountpoint> <type> <opts> <dump/pass> Major edit: I figured out the problem. /etc/inittab had an incorrect line in it. I changed line 5 to this: Code:
si::sysinit:/etc/rc.d/init.d/rc S |
Hi,
The output shown by dmesg points to a Gentoo kernel: Quote:
I'm not sure what you are trying to do, but this: Code:
title Linux from Scratch Quote:
EDIT: You edited your post while I was replying.... Although I'm still not sure what it is you are doing, I'm glad to see you seem to have it fixed :) |
Quote:
Thanks for your help :) |
All times are GMT -5. The time now is 02:10 AM. |