View previous topic :: View next topic |
Author |
Message |
funkwalkr n00b
Joined: 11 Jul 2005 Posts: 3
|
Posted: Mon Jul 11, 2005 12:47 am Post subject: root filesystem mounts read-only at boot [SOLVED] |
|
|
Hi! I'm still a n00b at gentoo linux. I'm having a problem with my amd64 system. I was using Gnome and coding in emacs when suddenly I found out I couldn't save. Then I found out that I couldn't write to anywhere in the filesystem either. It claims the system was mounted read-only. I checked /etc/mtab and it says that it's mounted rw. I rebooted the computer and soon got a bunch of errors about the filesystem being mounted readonly. Nothing from the runscripts seem to start correctly. I tried to boot from the livecd and mount the filesystem and proc, then chroot into my environment. When I typed in env-update, it gave me the following error:
Code: | livecd / # env-update
/usr/bin/python: error while loading shared libraries: /lib/libm.so.6: invalid ELF header |
This was the same error the kept popping up when I booted from the hard drive. I was able to write to the hard drive when I booted from the livecd. I also did a reiserfsck --rebuild-tree on the root filesystem but still didn't work. The first time I did reiserfsck --check --fix-fixable and it claimed that there were fatal corruptions but after the --rebuild-tree, I no longer get that message. I also can't emerge anything, getting the same error as above. What should I do? I couldn't find anything in the forums or google. Any help would be greatly appreciated.
Last edited by funkwalkr on Mon Jul 11, 2005 9:26 pm; edited 1 time in total |
|
Back to top |
|
|
funkwalkr n00b
Joined: 11 Jul 2005 Posts: 3
|
Posted: Mon Jul 11, 2005 9:25 pm Post subject: fixed |
|
|
I was just out of ideas so I tried to copy the library file libm.so.6 from the livecd and luckily it worked! Luckily it worked because the gcc version on my computer was 3.4.4 while the one on the livecd was 3.4.3. So that was the fix I used. I recompiled gcc just in case, however I have no idea if that even did anything to relink this library file. Does anyone know what package this library actually comes from? |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Mon Jul 11, 2005 10:02 pm Post subject: Re: fixed |
|
|
funkwalkr wrote: | I was just out of ideas so I tried to copy the library file libm.so.6 from the livecd and luckily it worked! Luckily it worked because the gcc version on my computer was 3.4.4 while the one on the livecd was 3.4.3. So that was the fix I used. I recompiled gcc just in case, however I have no idea if that even did anything to relink this library file. Does anyone know what package this library actually comes from? |
If you have gentoolkit installed you can find which package installed the file.
or Code: | equery belongs libm.so.6 |
Its glibc by the way.
If the above doesn't work, the file you passed may be a symbolic link.
Check where it points and use that file instead.
(On my system /lib/libm.so.6 -> /lib/libm-2.3.5.so) |
|
Back to top |
|
|
Wolfpack98 n00b
Joined: 11 Mar 2003 Posts: 61 Location: USA
|
Posted: Sun Jul 31, 2005 4:17 pm Post subject: |
|
|
I just found myself in a similar position here...
i'm using EXT3 file system, and have done emerge -uD world a few days ago.
Aside from using LiveCD to run emerge -uD world again, anyone got some suggestions?
Thanks _________________ "no fate but what we make..."
--- John Connor, Terminator 3 |
|
Back to top |
|
|
|