≡ Menu

error message

Could not chdir to home directory /root: No such file or directory Error and Solution

When I ssh into my server and login as t root user and I’m getting the following error on screen:

Could not chdir to home directory /root: No such file or directory

How do I fix this error under CentOS or Debian Linux server?
[click to continue…]

Sysadmin because even developers need heroes!!!

JBD: Barrier-based Sync Failed On md0-8 – Disabling Barriers Error and Solution

I‘ve used the mdadm command line utility to setup and manage software RAID 6 under Debian Linux server. However, I get the following message in /var/log/messages file:
[ 14.003707] JBD: barrier-based sync failed on md0-8 – disabling barriers

How do I fix the message ‘JBD error message “barrier-based sync failed”‘?
[click to continue…]

Backtrack 5 KDE startx Failed To Load Error and Solution

I‘ve downloaded Backtrack Linux version 5 KDE desktop 64 bit. To start a graphical interface I’ typed startx command. But it failed with the following error message:

BackTrack Linux 5 64bits Vmware Workstation Installation

BackTrack Linux 5 64bits Vmware Workstation Installation

How do I fix this problem and install Backtrack Linux version 5 KDE desktop on my hard disk?
[click to continue…]

Nginx: Custom Error 403 Page Not Working with IP Deny Configuration

I block or deny access based on the host name or IP address of the client visiting website under nginx web server. I want to display customized e403.html error page, but it doesn’t appear to be working. Nginx always displays the built-in, hardcoded “403 Forbidden” error message. Here is my configuration:

.....
  ...
 deny 1.2.3.4;
 deny 91.212.45.0/24;
 deny 91.212.65.0/24;
 .....
 ...
 error_page 403 /e403.html;
        location = /e403.html {
           root   html;
       }

How do I fix this problem and display custom error 403 page under nginx server?
Answer to “Nginx: Custom Error 403 Page Not Working with IP Deny Configuration”

Bash Shell Find Out If A Command Exists On UNIX / Linux System ($PATH) OR Not

I want find out if a command exists on UNIX from a bash shell script. If command does not exists in $PATH, then I would like to display an error message on screen. How do I find out if a command exists on Posix system or not?
[click to continue…]

hdparm: HDIO_DRIVE_CMD(identify) Failed: Inappropriate Ioctl For Device

When I run hdparm -tT /dev/sda command under CentOS / RHEL I get the following error on screen:

/dev/sda:
Timing buffered disk reads: 908 MB in 3.00 seconds = 302.39 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device

How do I fix this problem?
[click to continue…]

Bourne Shell Exit Status Examples

Can you explains and provide us “Bourne Shell Exit Status Code” examples?
[click to continue…]

Troubleshooting: Apache Webserver Will Not Restart / Start

My CentOS Apache 2 (httpd) webserver will not start. It was working fine but I made few changes to httpd.conf and it is not restarting. What are some things to check in order to solve my issues?
[click to continue…]

/bin/bash: bad interpreter: Text file busy Error and Solution

Q. I’m getting an error as follows while trying to run a shell script over remote ssh session:

./myscript.sh
/bin/bash: bad interpreter: Text file busy

How do I fix this error message and run the script?
[click to continue…]

Linux Error: Page Allocation Failure and Solution

Q. How do I get rid of an error message that read as – “Page allocation failure“?
[click to continue…]