Bash /bin/netstat Input/output Error
Contents |
LINUX HOWTO | 2 Replies More Bad Disk This article I am trying to explain how to deal with " Input/output error " when you initiate any commands -bash: /root/.bash_profile: input/output error in Linux. I have pointed some examples that reports similar error. # du -bash: reading directory input output error linux /usr/bin/du: Input/output error #mkdir sampledir mkdir: cannot create directory `sampledir': Input/output error Input/output error while running the command mostly due to two bashrc input/output error reason. Either it could be bad blocks on the disk or someone hacked your machine. In this situation first suggestion would be to check /var/log/messages for any disk related alerts (might see some sense key alerts).
Centos Input/output Error
tail -n 100 /var/log/messages tail -f /var/log/messages If you notice any disk issues , try any disk utility to confirm this. One option would be use smarttools. You can check smartool option to fix bad blocks. If you already installed it you can take the advantage of that. Next immediate action would be take backup of your system. Good if you already have it :-). If you have good backup its safe reboot input/output error to reboot.If your system was hacked there are chances they might messed up your file and system would not work after reboot. You can also try fsck but it really dont fix most time if it bad block issue. Fsck can fix only if it related to any filesystem related issues. Usually fsck will fail in between as when it try to read the file at bad block. Now if try to reboot , it can also give the same output. You can try init 6. # reboot bash: /sbin/reboot: Input/output error # shutdown -r now bash: /sbin/shutdown: Input/output error If the above reboot commands doesnot work try either forced reboot or shutdown . Forced Reboot echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger Forced Shutdown echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger You might also likeHow To Fix / Repair Bad Blocks In LinuxHow To Backup LVM Configuration On Linux (vgcfgbackup & vgcfgrestore)Linux Crontab : How To Configure Cron With Best ExamplesHow To List Linux Pci Devices Using lspci CommandSet Date And Time In Linux And Sync With Hardware (CMOS)Linux Hdparm Command: Display Hard Disk Model and Serial NumberLinux: Manage Spaces And Special Characters In File NameUnderstand Linux Su Command Function With ExampleHow To Create / Remove Swap Partition In LinuxHow To Us
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie Input/output error User Name Remember Me? Password Linux - Newbie This Linux forum is for members that are new bash /root/.bashrc input/output error to Linux. Just starting out and have a question? If it is not in the
Mkdir: Cannot Create Directory : Input/output Error
man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently
Ssh Input/output Error
viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? http://www.linuxquestions.org/questions/linux-newbie-8/input-output-error-222152/ Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 08-25-2004, 06:19 AM #1 rob19 Member Registered: Mar 2003 Location: New Zealand Distribution: Red Hat Linux 8 & 9 Posts: 32 Rep: Input/output error I have been running a Web server with RH9 for about six months now. Everything has been going fine and I have not made any changes for a while. However, I have just noticed that Webalizer is no longer producing reports properly (they seem garbled) and now I cannot even copy files via FTP o
Input/output error on 'cat'? If this is your first visit, be sure to check out the FAQ by clicking the link above. You may http://forums.justlinux.com/showthread.php?140924-Input-output-error-on-cat have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 http://lists.us.dell.com/pipermail/linux-poweredge/2003-January/005639.html to 4 of 4 Thread: Input/output error on 'cat'? Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to output error Threaded Mode 06-12-2005,10:09 PM #1 pushback View Profile View Forum Posts Visit Homepage Registered User Join Date Jun 2002 Location Livermore, CA Posts 190 Input/output error on 'cat'? I just installed Fedora 3 core and am running into a problem. On many system binaries (not all) I am getting 'Input/output error'. [root@athena etc]# vim inittab -bash: /usr/bin/vim: Input/output error [root@athena etc]# find bashrc input/output error / -name vim -print /usr/bin/vim /usr/share/vim [root@athena etc]# echo $PATH /bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin [root@athena etc]# cat inittab cat: inittab: Input/output error [root@athena etc]# find / -name cat -print /bin/cat What am I missing? Visit America's Aviation Forum IFR USA on www.ifr.us Reply With Quote 06-13-2005,01:43 AM #2 JohnT View Profile View Forum Posts Visit Homepage Registered User Join Date Jul 2002 Location Vladivostok, Russia Posts 9,054 You could try supplying the complete path to your objective, such as "cat /etc/inittab"....if I'm reading you right. "I was pulled over for speeding today. The officer said, "Don't you know the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going to be out that long." How To Ask Questions The Smart Way COME VISIT ME IN RUSSIA NOW!! Reply With Quote 06-13-2005,01:51 AM #3 pushback View Profile View Forum Posts Visit Homepage Registered User Join Date Jun 2002 Location Livermore, CA Posts 190 Yeah, that doesn't do it. A lot of commands (not all) are doing it. Weirdest thing. [root@athena bin]# ls *sh ash bash bsh csh ksh sh tcsh zsh [root@athena bin]# ./ksh -bas
subject ] [ author ] I don't believe this to be related to xinetd. This really looks like some kind of disk error. What does syslog give you? Any strange device errors by any chance? << ryan On Fri, 3 Jan 2003, Barton, Christopher wrote: > Netstat listed 7 connections. Other than forwarding traffic (routing), > the kernel wasn't doing anything at all. > > The xinetd errata package was applied, and running. Ultimately I killed > xinetd, but that didn't help. > > On Fri, 3 Jan 2003, Michael Redinger wrote: > > > > > > After running without incident for 10 days or so, my system now enters a > > > strange state each day where new processes cannot be created. Every > > > command results in the error message "Input/output error". > > > > Any chance this is RHAT Linux and you didn't apply the latest xinetd > > Update? See: > > http://rhn.redhat.com/errata/RHSA-2002-196.html > > > > Even if you did, is xinetd allowing "time" connections? > > Check netstat -an output and check if there are lots of > > connections in CLOSE_WAIT state. > > > > See: > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=77781 > > > > > > Michael > > > > > > > > _______________________________________________ > Linux-PowerEdge mailing list > Linux-PowerEdge at dell.com > http://lists.us.dell.com/mailman/listinfo/linux-poweredge > Please read the FAQ at http://lists.us.dell.com/faq or search the list archives at http://lists.us.dell.com/htdig/ > Previous message: -bash: /bin/ls: Input/output error Next message: -bash: /bin/ls: Input/output error Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the Linux-PowerEdge mailing list