LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Bash Pormpt (https://www.linuxquestions.org/questions/linux-software-2/bash-pormpt-420615/)

cthomas 03-01-2006 09:11 AM

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

hw-tph 03-01-2006 09:20 AM

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

cthomas 03-01-2006 10:48 AM

How can I find out where fsak is located so I can edit it?

Carl

abhijeetudas 03-01-2006 01:08 PM

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.

jomen 03-01-2006 04:46 PM

yes - I think you misread this:
fsak is (very probably) actually: fsck - which is short for filesystem-check

cthomas 03-02-2006 08:28 AM

: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.

jomen 03-02-2006 08:45 AM

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.

cthomas 03-02-2006 09:04 AM

Quote:

Originally Posted by jomen
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.

I have Knoppix 4.0 will that work?

"Then use this to get to the filesystem from the outside" :newbie: Can you give me details on how to do this?

Thanks.

Carl

jomen 03-02-2006 09:17 AM

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

cthomas 03-02-2006 10:35 AM

Quote:

Originally Posted by jomen
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

It has 0x8E Linux LVM, EVMS, and Reiser. The device-name is /dev/hda1.

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

jomen 03-02-2006 11:02 AM

The filesystem on /dev/hda1 is reiserfs?
And you want to check this one?

Then I'll quote the manual of reiserfsck
Quote:

1. You think something may be wrong with a reiserfs partition on /dev/hda1 or you would just like to perform a periodic disk check.

2. Run reiserfsck --check --logfile check.log /dev/hda1. If reiserfsck --check exits with status 0 it means no errors were discovered.

3. If reiserfsck --check exits with status 1 (and reports about fixable corruptions) it means that you should run reiserfsck --fix-
fixable --logfile fixable.log /dev/hda1.
You can omit the log-options if you want.
Stay away from --rebuild-tree!

Or is it another you want to check?

cthomas 03-02-2006 11:14 AM

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

jomen 03-02-2006 01:59 PM

I thought you were using knoppix already...

1. from your failing system if you can - run:
Code:

mount
and look for the partition's name it is complaining about - which one is it?
post the name and number - all you see...
if it is a reiserfs then try running:
Code:

reiserfsck --check /dev/_the_name_
if it is ext2 or ext3 run
Code:

fsck.ext2 -v -f /dev/_the_name or fsck.ext3 -v -f /dev/_the_name
respectively
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
until here for now...

cthomas 03-02-2006 03:33 PM

Quote:

Originally Posted by jomen
I thought you were using knoppix already...

1. from your failing system if you can - run:
Code:

mount
and look for the partition's name it is complaining about - which one is it?
post the name and number - all you see...
if it is a reiserfs then try running:
Code:

reiserfsck --check /dev/_the_name_
if it is ext2 or ext3 run
Code:

fsck.ext2 -v -f /dev/_the_name or fsck.ext3 -v -f /dev/_the_name
respectively
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
until here for now...

Mount shows /dev/hda1 is "reiserfs"
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.

jomen 03-02-2006 03:59 PM

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:

To remount it read-write do: mount -n -o remount,rw /
that is a command you should have tried first
Code:

mount -n -o remount,rw /
try it now!


All times are GMT -5. The time now is 10:50 PM.