View previous topic :: View next topic |
Author |
Message |
hacnslash n00b
Joined: 23 Dec 2004 Posts: 54 Location: west virginia
|
Posted: Thu Dec 23, 2004 2:37 pm Post subject: read-only file system after install : Solved |
|
|
I got through a stage 1 install yesterday but when i got to reboot my root partition (i don't have a separate boot partition) is apparently mounted read-only. I get dropped to a bash prompt without being asked to login first. If i try to login it gives me:
Code: | FATAL: cannot change permission of TTY : read only file system |
Now, mount reports /dev/hda1 (my root) is mounted rw. I can't run almost any commands, halt, reboot, cp, none of them work. Emerge however seems to be functioning but i can't install anything because it also reports a read-only filesystem. My fstab is fine, i checked and doublechekced it like 5 times.
Might it have something to do with me not installing any file system tools when i got to this in the handbook:
Quote: | 9.d. File System Tools |
I didn't do anything because it only gives information on xfs, reiser and jfs. My root partition being ext3. Could this be it? If it is would it be possible to chroot from the livecd and emerge whatever fs utils i need...and if so what are they?
Thanks for any answers that may come.
Last edited by hacnslash on Thu Dec 23, 2004 8:37 pm; edited 1 time in total |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Thu Dec 23, 2004 2:58 pm Post subject: Re: read-only file system after install |
|
|
hacnslash wrote: | I got through a stage 1 install yesterday but when i got to reboot my root partition (i don't have a separate boot partition) is apparently mounted read-only. I get dropped to a bash prompt without being asked to login first. If i try to login it gives me:
Code: | FATAL: cannot change permission of TTY : read only file system |
|
Any error messages when the file systems are mounted at boot time?
hacnslash wrote: | Now, mount reports /dev/hda1 (my root) is mounted rw. I can't run almost any commands, halt, reboot, cp, none of them work. Emerge however seems to be functioning but i can't install anything because it also reports a read-only filesystem. My fstab is fine, i checked and doublechekced it like 5 times. |
Posting your fstab still wouldn't hurt. More pairs of eyes going over the file are better. |
|
Back to top |
|
|
hacnslash n00b
Joined: 23 Dec 2004 Posts: 54 Location: west virginia
|
Posted: Thu Dec 23, 2004 3:13 pm Post subject: |
|
|
There are no error messages, here's the last 4 lines before i get dropped to bash:
Code: | EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 152k freed
kjournald starting. Commit interval 5 seconds |
Now, the first line just says what kind of journaling i have right? the third and fourth lines are irrelevant to my problem as far as i can see. The second line says i'm mounted reaonly...which I know.
My fstab contains:
Code: |
/dev/hda1 / ext3 defaults,noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/hda3 /mnt/w2k ntfs noauto 0 0
none /proc proc defaults,noatime 0 0
none /dev/shm tmpfs defaults 0 0
|
|
|
Back to top |
|
|
taurus l33t
Joined: 21 Sep 2004 Posts: 657 Location: I need to be somewhere...
|
Posted: Thu Dec 23, 2004 3:21 pm Post subject: |
|
|
What if you change your / to 1 2 instead of 0 1!
taurus |
|
Back to top |
|
|
hacnslash n00b
Joined: 23 Dec 2004 Posts: 54 Location: west virginia
|
Posted: Thu Dec 23, 2004 3:40 pm Post subject: |
|
|
taurus wrote: | What if you change your / to 1 2 instead of 0 1!
taurus |
that's what it was like by default and it didn't work, same exact symptoms. i changed it because i thoguht it was a problem with fstab but i'm pretty sure it's not it right now... |
|
Back to top |
|
|
hacnslash n00b
Joined: 23 Dec 2004 Posts: 54 Location: west virginia
|
Posted: Thu Dec 23, 2004 5:53 pm Post subject: |
|
|
i just finished recompiling my kernel (chrooted from the livecd) to include devfs. It wasn't there before. Now the only difference is that it tells me devfs is mounted before crappin out.
I can also su now and i can attempt a login but it always tells me my password is incorrect.
This is just plain strange...should i just reinstall!? |
|
Back to top |
|
|
hacnslash n00b
Joined: 23 Dec 2004 Posts: 54 Location: west virginia
|
Posted: Thu Dec 23, 2004 8:10 pm Post subject: |
|
|
well, it works now, i chrooted from the livecd and emerged baselayout 1.11.8 and now it works ^_^ |
|
Back to top |
|
|
tlianza n00b
Joined: 17 May 2003 Posts: 32 Location: Seattle, WA
|
Posted: Sat Mar 05, 2005 2:51 pm Post subject: |
|
|
hacnslash wrote: | well, it works now, i chrooted from the livecd and emerged baselayout 1.11.8 and now it works ^_^ |
Awesome - that worked for me too! Any idea why this isn't in the install docs? It didn't get installed with my "emerge system" so it seems like it's missing in the docs.
Thanks,
Tom |
|
Back to top |
|
|
mruano n00b
Joined: 25 Aug 2003 Posts: 10
|
Posted: Thu Jul 07, 2005 9:16 am Post subject: |
|
|
I am experiencing the same problem but I cannot even do a chroot from the instalation because I get a "segmentation fault" when executing the chroot.
Can anyone help me? |
|
Back to top |
|
|
necromncr n00b
Joined: 21 Mar 2004 Posts: 44 Location: Ig, Slovenia
|
Posted: Thu Jul 07, 2005 1:53 pm Post subject: |
|
|
mruano wrote: | I am experiencing the same problem but I cannot even do a chroot from the instalation because I get a "segmentation fault" when executing the chroot.
Can anyone help me? |
Just a hit: try chroot <folder> /bin/bash
..might help.. |
|
Back to top |
|
|
|