LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2008, 02:54 AM   #1
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Rep: Reputation: 15
Not able to run any command


in my rhel 4.0 server i am not able to run nay command like ll,top,vmstat,rm,cat etc...
the error i am getting is
[root@vasdb ~]# top
-bash: /usr/bin/top: Input/output error


please tell me what should i do?...
 
Old 06-11-2008, 03:06 AM   #2
icecoolcorey
LQ Newbie
 
Registered: Jun 2008
Posts: 19

Rep: Reputation: 0
have you tryed using the makewhatis command or udatedb.
 
Old 06-11-2008, 03:17 AM   #3
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
i have tried bt the errors are as follows:-

[root@vasdb ~]# updatedb
-bash: /usr/bin/updatedb: Input/output error
[root@vasdb ~]# makewhatis
mktemp: cannot create temp file /tmp/whatis.Mz9828: Read-only file system
 
Old 06-11-2008, 03:36 AM   #4
iwasapenguin
Member
 
Registered: Jul 2007
Posts: 110

Rep: Reputation: 15
Check your physical devices.
 
Old 06-11-2008, 04:16 AM   #5
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
i have checked the drive...
no problem with it.
 
Old 06-11-2008, 04:35 AM   #6
mamtasahai1
Member
 
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52

Rep: Reputation: 15
U can try this -- remount the filesystem with rw permissions...
for ex. # mount -o remount rw /dev/sda1
Then clean tmp and again run makewhatis..
 
Old 06-11-2008, 05:16 AM   #7
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
i have tried to mount /
bt it gives me an error like:-

[root@vasdb ~]# mount -o remount -t ext3 rw /
mount: block device rw is write-protected, mounting read-only
 
Old 06-11-2008, 05:41 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What is your partitioning scheme?

Does dmesg produce any output (other than I/O error)?
 
Old 06-11-2008, 07:37 AM   #9
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
this is the o/p of the dmesg:-

EXT3-fs error (device cciss/c0d0p8) in start_transaction: Journal has aborted

now,please tell me what should i do?...
 
Old 06-11-2008, 09:58 AM   #10
sir_com
Member
 
Registered: Feb 2008
Posts: 31

Rep: Reputation: 15
Try rebooting your machine and see if it works. If not ... then log into single user mode using command "init 1"

and run fsck command as fsck -y.

Thanks,
sir_com
 
Old 06-11-2008, 10:26 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Quote:
mount -o remount -t ext3 rw /
That should be
mount <device> -t ext3 -o remount,rw

You don't have a device (which may be OK for the remount option) and the options aren't separated by comma's. So (rw) was taken as a device instead of an option.
 
  


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
Shell: command not found / Runs fine with "Run command" badbunny Linux - Newbie 1 01-22-2007 02:21 AM
Command to run another command against a list of files psweetma Linux - General 3 11-09-2005 06:29 PM
Cannot run CP command! hrudolph Linux - Newbie 12 05-14-2005 11:52 PM
Run a command from anywhere ToothlessRebel Linux - Newbie 4 03-05-2005 02:36 AM
Run Command csosa Linux - Software 1 09-27-2003 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration