LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2006, 09:11 AM   #1
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Rep: Reputation: 15
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
 
Old 03-01-2006, 09:20 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 03-01-2006, 10:48 AM   #3
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
How can I find out where fsak is located so I can edit it?

Carl
 
Old 03-01-2006, 01:08 PM   #4
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
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.
 
Old 03-01-2006, 04:46 PM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
yes - I think you misread this:
fsak is (very probably) actually: fsck - which is short for filesystem-check
 
Old 03-02-2006, 08:28 AM   #6
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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? I have searched all over the web on this and nothing helped.

Last edited by cthomas; 03-02-2006 at 08:30 AM.
 
Old 03-02-2006, 08:45 AM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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.

Last edited by jomen; 03-02-2006 at 08:46 AM.
 
Old 03-02-2006, 09:04 AM   #8
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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" Can you give me details on how to do this?

Thanks.

Carl
 
Old 03-02-2006, 09:17 AM   #9
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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

Last edited by jomen; 03-02-2006 at 09:20 AM.
 
Old 03-02-2006, 10:35 AM   #10
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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

Last edited by cthomas; 03-02-2006 at 10:55 AM.
 
Old 03-02-2006, 11:02 AM   #11
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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?
 
Old 03-02-2006, 11:14 AM   #12
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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
 
Old 03-02-2006, 01:59 PM   #13
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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...
 
Old 03-02-2006, 03:33 PM   #14
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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.
 
Old 03-02-2006, 03:59 PM   #15
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: Print usage statement & exit; otherwise continue using Bash shorthand operators stefanlasiewski Programming 9 02-07-2006 05:20 PM
$LINENO can't be modified in bash 3.0, while it can be in bash 2.05b Darwish Linux - Software 1 11-07-2005 02:57 PM
bash + html + javascript or just bash ? rblampain Programming 4 12-01-2004 07:53 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM
Bash marco271 Programming 6 07-19-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration