Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[solved] /sbin/rc complains about read-only file system

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
yooda
n00b
n00b
User avatar
Posts: 24
Joined: Tue Dec 09, 2003 2:18 pm
Location: Zurich, Switzerland

[solved] /sbin/rc complains about read-only file system

  • Quote

Post by yooda » Tue Jun 01, 2004 12:43 am

It's strange, sometimes I get no errors at all when booting, and then sometimes there are messages as:

Code: Select all

...
*Caching service dependencies...
/sbin/rc: line 492: /var/lib/init.d/softlevel: Read-only file system
mkdir: cannot create directory '/var/lib/init.d/failed': Read-only file system
/sbin/rc: line 32: /var/lib/init.d/softlevel: no such file or directory
...
Sometimes I also get messages from stuff like gawk and others, but the complaint remains the same: Read-only file system. If I reboot again, these messages sometimes disappear.

My /etc/fstab should be okay with

Code: Select all

/dev/hda3               /               reiserfs        noatime                 0 1
and I can use the system all the same, but I'm just wondering how such things sometimes happen and sometimes don't :roll:

Looks strange to me, does anybody have an idea about that?

I read stuff about corrupted filesystems possibly causing similar stuff, but I can't detect any corruptions on my reiserfs. Kernel: vanilla sources 2.6.5 and no devfs anymore, only udev.
Last edited by yooda on Wed Jun 02, 2004 11:54 am, edited 1 time in total.
Top
yooda
n00b
n00b
User avatar
Posts: 24
Joined: Tue Dec 09, 2003 2:18 pm
Location: Zurich, Switzerland

  • Quote

Post by yooda » Tue Jun 01, 2004 9:56 am

I just don't get it: I shut my computer cleanly down, the next morning my box just doesn't feel like starting up normal:

Code: Select all

mkdir: cannot create directory '/var/lib/init.d/failed': Read-only file system
mkdir: cannot create directory '/var/lib/init.d/softscripts.new': Read-only file system
ln: creating symbolic link '/var/lib/init.d/softscripts.new/alsasound' to '/etc/init.d/alsasound': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/bootmisc' to '/etc/init.d/bootmisc': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/checkfs' to '/etc/init.d/checkfs': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/checkroot' to '/etc/init.d/checkroot': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/clock' to '/etc/init.d/clock': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/consolefont' to '/etc/init.d/consolefont': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/hostname' to '/etc/init.d/hostname': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/hotplug' to '/etc/init.d/hotplug': No such file or directory
ln: creating symbolic link '/var/lib/init.d/softscripts.new/keymaps' to '/etc/init.d/keymaps': No such file or directory
...
...
/sbin/rc: line 32: /var/lib/init.d/softlevel: No such file or directory
* WARNING: you are stopping a boot service.
/sbin/rc: line 32: /var/lib/init.d/softlevel: No such file or directory
* WARNING: you are stopping a boot service.
/sbin/rc: line 32: /var/lib/init.d/softlevel: No such file or directory
* WARNING: you are stopping a boot service.
* Stopping input hotplugging...
* Stopping pci hotplugging...
* Stopping usb hotplugging...
/sbin/rc: line 32: /var/lib/init.d/softlevel: No such file or directory
* Bringing eth0 down...
*    Releasing DHCP lease for eth1...
*    Stopping eth1
mv: cannot stat '/var/lib/init.d/softscripts': No such file or directory
INIT: Entering runlevel: 3
mv: cannot stat '/var/lib/init.d/softscripts': No such file or directory
* Remounting root filesystem read-only (if necessary)...

* Checking root filesystem...
Reiserfs super block in block 16 on 0x303 of format 3.6 with standard journal
Blocks (total/free): 4879743/500494 by 4096 bytes
Filesystem marked as NOT cleanly umounted
Partition /dev/hda3 is mounted with write permissions, cannot check it
* Filesystem couldn't be fixed :(

Give root password for maintenance
(or type Control-D for normal startup):

# mount /dev/hda3 -o remount,ro
# reiserfsck /dev/hda3

--->
Filesystem seems mounted read-only. Skipping journal replay.
Everything successfully finished.
No corruptions found
There are on the filesystem:
        Leaves 73346
        Internal nodes 494
        Directories 29116
        Other files 308521
        Data block pointers 4552603 (255556 of them are zero)
        Safe links 0


# restart
bash: restart: command not found
# shutdown -r now

---> rebooting
---> system starts up with no errors
I've experienced this behaviour for quite a while now, sometimes everything is fine, sometimes I get some messages from my first post, and sometimes it's like described here.

So again: If somebody has an idea what might happen, please let me know!
Top
yooda
n00b
n00b
User avatar
Posts: 24
Joined: Tue Dec 09, 2003 2:18 pm
Location: Zurich, Switzerland

  • Quote

Post by yooda » Tue Jun 01, 2004 5:33 pm

hmmm, so far, things seem to work okay now with vanilla sources 2.6.7-rc1...

/edit:
definitively no problems anymore with the new kernel 8)
Top
dippen
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 83
Joined: Sun Sep 15, 2002 9:10 pm

  • Quote

Post by dippen » Thu Jul 08, 2004 2:31 pm

i get this error with all 2.6.7 based ck sources.
with vanilla 2.6.7 and 2.6.7-rc1 everything works ok.
i tried to revert supermount, but it still happens.

does somebody know how to fix this WITH ck sources?
Top
dippen
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 83
Joined: Sun Sep 15, 2002 9:10 pm

  • Quote

Post by dippen » Tue Jul 13, 2004 6:48 pm

now i get this error with 2.6.7 too..
pls post if you know how to fix this.
thx
Top
noathustra
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Mon Sep 08, 2003 10:11 pm
Location: NYC

  • Quote

Post by noathustra » Mon Aug 09, 2004 7:50 am

Does anyone know what is causing this problem? Notice that when I have the problem I also have reiserfs errors of the form:

Code: Select all

There were 1 uncompleted unlinks/truncates. Completed
but the number of unlinks/truncates changes. I get this message even though I shut the system down cleanly.

Any ideas?

I am using 2.6.8-rc2-mm
Top
didl
Retired Dev
Retired Dev
User avatar
Posts: 1106
Joined: Tue Sep 09, 2003 11:01 pm
Location: Pittsburgh, PA

  • Quote

Post by didl » Wed Aug 11, 2004 6:37 pm

After looking through the init scripts I think I finally got rid of this
read-only issue with /var/lib/init.d during boot by
changing /etc/conf.d/rc to

Code: Select all

# Should we mount $svcdir as a tmpfs or ramfs for some speed
# increase for slower machines, or for the more extreme setups ?

svcmount="yes"
It used to say "no" before.
Top
bocacorazon
n00b
n00b
Posts: 31
Joined: Fri May 07, 2004 12:56 am

Solved my problem, but why?

  • Quote

Post by bocacorazon » Mon Sep 26, 2005 12:12 am

The svcmount="yes" changed fixed the problem.
I don't have any idea why, though...

With my apologies for reviving this long-dormant thread, I'd appreciate your insight into this.
Top
cerb
Tux's lil' helper
Tux's lil' helper
Posts: 89
Joined: Fri Jun 28, 2002 3:59 pm

  • Quote

Post by cerb » Wed Nov 23, 2005 4:29 pm

yeah, i would like to have an explanation, too. wasn't it one of the easiest thing to do for years to boot a linux system? seems not so to me now - what is all the fuzz about that ramdisks and stuff on bootup? wasn't the old process not good enough? who had to prove something here? well, you can continue to prove on my side ... all tipps followed, from yes's and no's in several configs ... vserver-sources just won't boot.

yes, emerged baselayout and/or baselayout-vsever several times ...
Linux is a wigwam - no Windows, no Gates, Apache inside :-)
Top
Post Reply

9 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy