List of Linux Error Codes

Linux, the renowned open-source operating system, serves as the backbone for a wide range of applications and platforms. From the smallest Raspberry Pi systems to the most massive supercomputers, Linux is omnipresent. But as with all operating systems, encountering errors is part and parcel of the experience. What sets Linux apart, however, is the transparency it provides with its error codes. Instead of vague error messages, Linux provides specific codes that can help diagnose issues more precisely.

Examples of Linux Error Codes

Linux error codes aren’t just arbitrary numbers; they have significance. Each code corresponds to a specific type of error, which makes troubleshooting a more structured process. Whether you’re a newbie just dabbling in Linux or an expert managing servers, understanding these codes is invaluable.

  • Errno 1: EPERM: EPERM means that the operation isn’t permitted. This typically occurs when a user tries to perform an action without the required permissions. For instance, a regular user attempting to modify system files might face this error.
  • Errno 2: ENOENT: It signifies that a particular file or directory was not found. Whether you’re trying to access a file, execute a script, or launch an application, if the system can’t locate it, you’ll encounter this error.
  • Errno 4: EINTR: EINTR refers to the interruption of a system call. An operation was interrupted by a signal before it could be completed. This might not always be an issue, as some system calls might resume after a signal interruption.
  • Errno 9: EBADF: EBADF signifies an invalid file descriptor. If you attempt to perform an operation (like read or write) on an invalid or closed file descriptor, this error will pop up.
  • Errno 11: EAGAIN (or EWOULDBLOCK): This error indicates that an operation would block the ongoing process. For non-blocking operations, encountering EAGAIN or EWOULDBLOCK suggests that the operation should be tried again later.
  • Errno 13: EACCES: EACCES is the error code when permission to access a file or directory is denied. This could happen if you’re trying to read a file without read permissions or write to a file without write permissions.
  • Errno 14: EFAULT: EFAULT points to a bad address. Basically, this error tells you that the system encountered a bad memory address during its operations.
  • Errno 22: EINVAL: EINVAL implies an invalid argument. This means one of the parameters in a system call is not valid, which can be due to a range of reasons, like an out-of-range value.
  • Errno 28: ENOSPC: This error code stands for “No Space Left on Device.” It’s triggered when there’s insufficient space on a storage medium, often when trying to write to a full disk.
  • Errno 31: EMLINK: This error is about reaching the maximum number of links to a single file. When the filesystem can’t add another link because the limit is reached, EMLINK is raised.
  • Errno 32: EPIPE: This is the “Broken Pipe” error. If one end of a pipe is closed, and the other end still attempts to write to it, you’ll encounter EPIPE.

List of All Linux Error Codes

hexsymboldescription
0x01EPERMOperation not permitted
0x02ENOENTNo such file or directory
0x03ESRCHNo such process
0x04EINTRInterrupted system call
0x05EIOInput/output error
0x06ENXIONo such device or address
0x07E2BIGArgument list is too long
0x08ENOEXECExec format error
0x09EBADFBad file descriptor
0x0aECHILDNo child processes
0x0bEAGAINResource temporarily unavailable
0x0bEWOULDBLOCKResource temporarily unavailable
0x0cENOMEMCannot allocate memory
0x0dEACCESPermission denied
0x0eEFAULTBad address
0x0fENOTBLKBlock device required
0x10EBUSYDevice or resource busy
0x11EEXISTFile exists
0x12EXDEVInvalid cross-device link
0x13ENODEVNo such device
0x14ENOTDIRNot a directory
0x15EISDIRIs a directory
0x16EINVALInvalid argument
0x17ENFILEToo many open files in the system
0x18EMFILEToo many open files
0x19ENOTTYInappropriate ioctl for device
0x1aETXTBSYText file busy
0x1bEFBIGFile too large
0x1cENOSPCNo space left on the device
0x1dESPIPEIllegal seek
0x1eEROFSRead-only file system
0x1fEMLINKToo many links
0x20EPIPEBroken pipe
0x21EDOMNumerical argument out of domain
0x22ERANGENumerical result out of range
0x23EDEADLKResource deadlock avoided
0x23EDEADLOCKResource deadlock avoided
0x24ENAMETOOLONGFile name is too long
0x25ENOLCKNo locks available
0x26ENOSYSFunction not implemented
0x27ENOTEMPTYDirectory not empty
0x28ELOOPToo many levels of symbolic links
0x29  
0x2aENOMSGNo message of the desired type
0x2bEIDRMIdentifier removed
0x2cECHRNGChannel number out of range
0x2dEL2NSYNCLevel 2 not synchronized
0x2eEL3HLTLevel 3 halted
0x2fEL3RSTLevel 3 reset
0x30ELNRNGLink number out of range
0x31EUNATCHThe protocol driver not attached
0x32ENOCSINo CSI structure is available
0x33EL2HLTLevel 2 halted
0x34EBADEInvalid exchange
0x35EBADRInvalid request descriptor
0x36EXFULLExchange full
0x37ENOANONo anode
0x38EBADRQCInvalid request code
0x39EBADSLTInvalid slot
0x3a 
0x3bEBFONTBad font file format
0x3cENOSTRDevice is not a stream
0x3dENODATANo data available
0x3eETIMETimer expired
0x3fENOSROut of streams resources
0x40ENONETThe machine is not on the network
0x41ENOPKGPackage not installed
0x42EREMOTEObject is remote
0x43ENOLINKThe link has been severed
0x44EADVAdvertise error
0x45ESRMNTSrmount error
0x46ECOMMCommunication error on send
0x47EPROTOProtocol error
0x48EMULTIHOPMultihop attempted
0x49EDOTDOTRFS specific error
0x4aEBADMSGBad message
0x4bEOVERFLOWValue too large for defined data type
0x4cENOTUNIQName not unique on the network
0x4dEBADFDFile descriptor in a bad state
0x4eEREMCHGRemote address changed
0x4fELIBACCCan not access a needed shared library
0x50ELIBBADAccessing a corrupted shared library
0x51ELIBSCN.lib section in a.out corrupted
0x52ELIBMAXAttempting to link in too many shared libraries
0x53ELIBEXECCannot exec a shared library directly
0x54EILSEQInvalid or incomplete multibyte or wide-character
0x55ERESTARTInterrupted system calls should be restarted
0x56ESTRPIPEStreams pipe error
0x57EUSERSToo many users
0x58ENOTSOCKSocket operation on non-socket
0x59EDESTADDRREQDestination address required
0x5aEMSGSIZEMessage too long
0x5bEPROTOTYPEProtocol wrong type for socket
0x5cENOPROTOOPTProtocol not available
0x5dEPROTONOSUPPORTProtocol not supported
0x5eESOCKTNOSUPPORTSocket type not supported
0x5fEOPNOTSUPPOperation not supported
0x5fENOTSUPOperation not supported
0x60EPFNOSUPPORTProtocol family not supported
0x61EAFNOSUPPORTAddress family not supported by protocol
0x62EADDRINUSEAddress already in use
0x63EADDRNOTAVAILCannot assign requested address
0x64ENETDOWNNetwork is down
0x65ENETUNREACHNetwork is unreachable
0x66ENETRESETThe network dropped connection on reset
0x67ECONNABORTEDSoftware caused connection abort
0x68ECONNRESETConnection reset by peer
0x69ENOBUFSNo buffer space is available
0x6aEISCONNThe transport endpoint is already connected
0x6bENOTCONNThe transport endpoint is not connected
0x6cESHUTDOWNCannot send after transport endpoint shutdown
0x6dETOOMANYREFSToo many references: cannot splice
0x6eETIMEDOUTConnection timed out
0x6fECONNREFUSEDConnection refused
0x70EHOSTDOWNHost is down
0x71EHOSTUNREACHNo route to host
0x72EALREADYOperation already in progress
0x73EINPROGRESSOperation now in progress
0x74ESTALEStale file handle
0x75EUCLEANStructure needs cleaning
0x76ENOTNAMNot a XENIX-named type file
0x77ENAVAILNo XENIX semaphores available
0x78EISNAMIs a named type file
0x79EREMOTEIORemote I/O error
0x7aEDQUOTDisk quota exceeded
0x7bENOMEDIUMNo medium found
0x7cEMEDIUMTYPEWrong medium type
0x7dECANCELEDOperation canceled
0x7eENOKEYThe required key is not available
0x7fEKEYEXPIREDKey has expired
0x80EKEYREVOKEDThe key has been revoked
0x81EKEYREJECTEDThe key was rejected by the service
0x82EOWNERDEADOwner died
0x83ENOTRECOVERABLEState not recoverable
0x84ERFKILLOperation is not possible due to RF-kill
0x85EHWPOISONThe memory page has a hardware error

Leave a Comment

Your email address will not be published. Required fields are marked *


Scroll to Top

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close