Bash Pormpt
I have a OES LINUX 9 server and when it starts up it says: "fsak failed. To remount it read-write do" bash# mount -a -o remount,rw /
How can I get to bash#? My current prompt is: (none):" # Carl |
It shouldn't be important if it says bash or not but if you really want it to, type export PS1='bash# '
This will do nothing but change the actual prompt. Håkan |
How can I find out where fsak is located so I can edit it?
Carl |
I think your file system is not getting correctly mounted and it is dropping you off to a minimum shell like interface
so that you can fix the problems. Please ensure that your machine is fully operational with all partitions correctly mounted. |
yes - I think you misread this:
fsak is (very probably) actually: fsck - which is short for filesystem-check |
:newbie: I worked on this all day yesterday and got no where. I did a man fsck and tried most of what it said but nothing worked. This is the message I keep getting: fsck failed. Please repair manually and reboot. The root file system is currenty mounted read-only. To remount it read-write do: mount -n -o remount,rw /.
Can my system be fixed? If so how? Or do I need to wipe it out and start over? :scratch: I have searched all over the web on this and nothing helped. |
pretty sure this can be fixed - no worries - not yet...
Do you have a rescue-disk or any other live-cd? Then use this to get to the filesystem from the outside and do the fschk - one should not run fsck on a mounted partition - not even ro. |
Quote:
"Then use this to get to the filesystem from the outside" :newbie: Can you give me details on how to do this? Thanks. Carl |
Yes it will work - what filesystem is on that disk? And what is the device-name ( /dev/hda1 or another )?
Make sure the filesystem is not mounted! If it is - unmount it first. mount -> will show you all mounted filesystems The command is fsck.ext2 -v -f /dev/hda1 - IF it is /dev/hda1 and IF the filesystem is ext2 With Knoppix you will better switch to a console (CTRL+ALT+F1 for instance) because you are root there - else: make sure you run as root |
Quote:
Here is the drive: IDE 19GB /dev/hda 203.9MB Linux native /dev/hda1 14.9GB Linux LVM /dev/hda2 3.7GB Linux native /dev/hda3 4.9MB Unassigned |
The filesystem on /dev/hda1 is reiserfs?
And you want to check this one? Then I'll quote the manual of reiserfsck Quote:
Stay away from --rebuild-tree! Or is it another you want to check? |
I have no idea. All I know is when I start this system it will only run to this point: fsck failed. Please repair manually and reboot. The root file system is currenty mounted read-only. To remount it read-write do: mount -n -o remount,rw /.
Carl |
I thought you were using knoppix already...
1. from your failing system if you can - run: Code:
mount post the name and number - all you see... if it is a reiserfs then try running: Code:
reiserfsck --check /dev/_the_name_ Code:
fsck.ext2 -v -f /dev/_the_name or fsck.ext3 -v -f /dev/_the_name If it complains about the partition still mounted - abort the procedure! Does it work? Can you get to the file /etc/fstab? If yes - post it! Code:
cat /etc/fstab |
Quote:
reiserfsck --check /dev/hda1 returned: No corruptions found. reiserfsck --fix-fixable /dev/hda1 returned: No corruptions found. I can cat /etc/fstab but I have no way to get on a system with internet connect. So here is a had copy of it: /dev/evms/lvm/system/root / reiserfsck acl,user_xattr 1 1 /dev/evms/hda1/boot / reiserfsck acl,user_xattr 1 2 /dev/evms/lvm/system/var / reiserfsck acl,user_xattr 1 2 /dev/evms/lvm/system/swap / swap pri=41 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/cdrom /media/cdrom The end. |
but /dev/hda1 is not the partition wich causes the error - correct?
...and I just looked over the whole thing and saw what I (and you) should have tried in the first place: Quote:
Code:
mount -n -o remount,rw / |
All times are GMT -5. The time now is 10:50 PM. |