Bash Etc Init.d Httpd Input Output Error
Contents |
LINUX HOWTO | 2 Replies More Bad Disk This article I am trying to explain how to deal with "
Linux Bash: Input/output Error
Input/output error " when you initiate any commands in Linux. I have pointed reading directory input output error linux some examples that reports similar error. # du -bash: /usr/bin/du: Input/output error #mkdir sampledir mkdir: cannot create directory `sampledir': Input/output
Input/output Error Kali Linux
error Input/output error while running the command mostly due to two reason. Either it could be bad blocks on the disk or someone hacked your machine. In this situation first suggestion would input/output error centos be to check /var/log/messages for any disk related alerts (might see some sense key alerts). 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 input/output error ubuntu immediate action would be take backup of your system. Good if you already have it :-). If you have good backup its safe 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 De
sorted by: [
Mkdir: Cannot Create Directory : Input/output Error
date ] [ thread ] [ subject -bash: /root/.bash_profile: input/output error ] [ author ] I tried to restart my apache
.bashrc Input/output Error
web server this morning, but the system reported: httpd: unrecognized service It restarted well yesterday. Everything on http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ the server is running well. The only directory I can find with any problems is /etc/init.d. The directory won't list and I can't move into it. When I try, I get: bash: cd: http://linux-sxs.org/pipermail/linux-users/2004-May/122916.html /etc/init.d: Input/output error but the rest of the disc seems fine, and it is not very old. Can the system be recovered? Could it be anything other than a bad drive? Any advice or suggestions are welcomed. Please keep any unkind comments to yourself. Fedora Core 1 Thank You. Shannon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.linux-sxs.org/pipermail/linux-users/attachments/20040413/a49fdcda/attachment.htm Previous message: anyone used convertfs (Bandel maybe)? Next message: Your document (SpamEnder: BLOCKED 5PYN-SE21739-linux-users at linux-sxs.org) Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the Linux-users mailing list
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://unix.stackexchange.com/questions/9314/no-such-file-or-directory-etc-init-d-functions about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top No such file or directory /etc/init.d/functions output error up vote 16 down vote favorite 2 I created a startup script to start/restart/stop a group of applications. I used the lib /etc/init.d/functions in my script. It is working well on my system, but it not working for my client; he is getting the error: No such file or directory /etc/init.d/functions Right now I don't know which linux distro my client uses. Is the init.d/functions file different for different Linux distros? If so, how can I find it? init-script : input/output error share|improve this question edited Mar 15 '11 at 20:15 Michael Mrozek♦ 44.9k19144179 asked Mar 15 '11 at 20:05 tecman 83115 Note that this error can also be caused by Windows line endings. –Emerson Rocha Luiz Aug 4 '13 at 18:47 add a comment| 3 Answers 3 active oldest votes up vote 18 down vote accepted It's specific to whatever distribution you're running. Debian and Ubuntu have /lib/lsb/init-functions; SuSE has /etc/rc.status; none of them are compatible with the others. In fact, some distributions don't use /etc/init.d at all, or use it in an incompatible way (Slackware and Arch occur to me off the top of my head; there are others). share|improve this answer answered Mar 15 '11 at 20:18 geekosaur 16.7k24146 can i know which is the file and where is it located for Redhat 5.5? –tecman Mar 15 '11 at 20:52 Also, how can i find those file name and path? is there any way to do that or is it that we can only find it from the documentation? –tecman Mar 15 '11 at 20:54 I did it by looking, as I have both of those available; I don't have a Red Hat install. But you may have missed the importance of what I said in bold above: the functions in your /etc/init.d/functions don't exist on other distributions. Every distribution has its own rules for /etc/init.d