LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-07-2006, 09:40 PM   #1
ping2tariq
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
unable to run some commands


whenever i am running some comands , it displays error message

[root@ftp Delhi]# fdisk -l
-bash: /sbin/fdisk: Input/output error

[root@ftp Delhi]# last
-bash: /usr/bin/last: Input/output error

[root@ftp Delhi]# ls
01Dec2006 05Dec2006 09Nov2006 14Nov2006.test 20Nov2006 27Nov2006
02Dec2006 05Nov2006 10Nov2006 15Nov2006 21Nov2006 28Nov2006
02Nov2006 06Dec2006 11Nov2006 15Nov2006.test 22Nov2006 29Nov2006
03Dec2006 06Nov2006 12Nov2006 16Nov2006 23Nov2006 30Nov2006
03Nov2006 07Dec2006 13Nov2006 17Nov2006 24Nov2006 ip
04Dec2006 07Nov2006 13Nov2006.test 18Nov2006 25Nov2006 ip.org
04Nov2006 08Nov2006 14Nov2006 19Nov2006 26Nov2006

[root@ftp Delhi]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/hda2 ext3 4.9G 1.7G 3.0G 36% /
/dev/hda1 ext3 99M 8.3M 86M 9% /boot
none tmpfs 315M 0 315M 0% /dev/shm
/dev/hda6 ext3 27G 5.5G 20G 22% /home
/dev/hda3 ext3 4.9G 71M 4.5G 2% /var

how to troubleshoot this?
Plz guide me.......
 
Old 12-07-2006, 09:46 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Try explicitly telling fdisk which device to look at:
Code:
# fdisk -l /dev/hda
Do you get the same error?
Check the system log (/var/log/syslog, /var/log/messages), and dmesg output to see if there is any information there.
 
Old 12-07-2006, 09:56 PM   #3
GATTACA
Member
 
Registered: Feb 2002
Location: USA
Distribution: Fedora, CENTOS
Posts: 209

Rep: Reputation: 32
I've never seen this one before.

What distribution are you using?
Is this a new install?

Here's what I might try:
Boot your computer from a rescue disk (your install disk will do).
Mount the system drive using the rescue disk.
chroot to the system disk, then try executing the commands that give you the weird output.

If the commands still give strange output then I might suspect a hardware issue (perhaps a bad hard drive that's dying?).

If the problems go away then I would think you might have a bad install.

That's my suggestion. Hope it helps.
 
Old 12-08-2006, 05:07 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Could easily be that your disk is a damaged.
To check this , run a bad-blocks check
badblocks /dev/hda

Then it could be that only the filesystem is damaged (but I don't think you would get this Input/Output error, I may be wrong)
Code:
tune2fs -C 32 /dev/hda2
this will tell the system that /dev/hda2 (your / which includes your /bin) has been mounted 32 times without being checked. By default ext3 are checked after 30 mounts.

Code:
reboot
During the reboot /dev/hda2 will be checked.

Or my last idea would be that you are not using the correct harddisk driver. Is this installation new or is it a new problem?
 
  


Reply



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
no commands run astroboiii Linux - General 2 01-08-2005 07:40 PM
run 2 commands in a script ddpicard Linux - General 10 06-13-2003 04:50 PM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 07:29 PM
Cannot run commands after su bugsbunny Linux - Newbie 5 02-07-2003 11:25 AM
Scripts won't run commands Xyphoid Linux - General 4 08-08-2002 08:49 PM

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

All times are GMT -5. The time now is 07:29 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
Open Source Consulting | Domain Registration