View previous topic :: View next topic |
Author |
Message |
whaase n00b
Joined: 20 Nov 2003 Posts: 69
|
Posted: Sat Sep 18, 2004 11:25 pm Post subject: Bootup problems (old Gentoo system) |
|
|
How do I change to a ro mounted partition to a rw without rebooting?
Walter
Last edited by whaase on Sun Sep 19, 2004 4:19 pm; edited 1 time in total |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Sat Sep 18, 2004 11:29 pm Post subject: |
|
|
umount /path/to/partition
edit entry in /etc/fstab so that it's rw
mount /path/to/partition |
|
Back to top |
|
|
whaase n00b
Joined: 20 Nov 2003 Posts: 69
|
Posted: Sat Sep 18, 2004 11:45 pm Post subject: |
|
|
Alright, I tried that, so I'll explain the situation a bit more. I managed to screw up my config files, I kept getting this error on bootup (Press Ctrl D to continue or enter root password) When I got booted I changed the entry in fstab for the type of file system. It had XFS, and I know it's ext3, but I typed ext2 by mistake. When I rebooted, I'd get the same error. When I press Ctrl D to continue, it reboots. If I try and enter a password I get a command prompt. I can't edit anything because /root was mounted as ro. I tried to umount it, but it still says it's ro. How can I fix this?
Walter
PS. I knew updating my Config files would mess up! |
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Sat Sep 18, 2004 11:50 pm Post subject: |
|
|
Use your livecd and mount your root partition to edit the files.
Quote: | I knew updating my Config files would mess up! Very Happy |
But it's very necessary after updating your software.
You could use colordiff to spice up your etc-update expirience.
https://forums.gentoo.org/viewtopic.php?t=207375
Type enter after executing etc-update to go through every file one @ time. (You can even merge line by line if you like) |
|
Back to top |
|
|
whaase n00b
Joined: 20 Nov 2003 Posts: 69
|
Posted: Sat Sep 18, 2004 11:58 pm Post subject: |
|
|
inode77 wrote: | Use your livecd and mount your root partition to edit the files.
Quote: | I knew updating my Config files would mess up! Very Happy |
But it's very necessary after updating your software.
You could use colordiff to spice up your etc-update expirience.
https://forums.gentoo.org/viewtopic.php?t=207375
Type enter after executing etc-update to go through every file one @ time. (You can even merge line by line if you like) |
I guess in need to re-install my burner. I was trying to do it without having to tear apart my 2 machines
Thanks, Walter |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Sep 19, 2004 2:35 am Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Sun Sep 19, 2004 3:44 am Post subject: |
|
|
Might be a little late but, Code: | mount -o remount,rw $DEV $MOUNTPOINT |
|
|
Back to top |
|
|
whaase n00b
Joined: 20 Nov 2003 Posts: 69
|
Posted: Sun Sep 19, 2004 4:17 pm Post subject: |
|
|
Thanks! That worked for letting me edit the fstab. But I keep getting a error telling me that it would not mount /dev/ROOT at ext2. I changed the setting in the fstab to ext3. It is telling me the following:
"fsck.ext3: No such file or directory while trying to open /dev/ROOT
/dev/ROOT:
The Superblock could not be read or does not describe a correct ext2
file system. If the device is valid and it really contains a ext2 filesystem
(and not SWAP or UFS, or something else) then the superblock is corrupt, and you might try running e2fsck with a alternate superblock:
e2fsck -b 8193 <device>
*filesystem couldn't be fixed
Give root password for maintenance
(or press CTRL D for normal startup)"
If I press ctrl D it reboots, if I give a password, I can get in to a shell. I tried remounting the / partition and editing the fstab to reflect a ext3 partition and rebooted. I get the same thing. I tried running fsck.ext3 and it reported no errors. What am I missing? How can I get this running again?
Thanks, Walter |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Sun Sep 19, 2004 5:47 pm Post subject: |
|
|
Have you tried changing fstab to point to the actual device instead of /dev/ROOT? |
|
Back to top |
|
|
whaase n00b
Joined: 20 Nov 2003 Posts: 69
|
Posted: Sun Sep 19, 2004 5:54 pm Post subject: |
|
|
I just got it. Thanks for the help... just a few more things I need to figure out and I'm back to normal!
Walter |
|
Back to top |
|
|
|