ENOTBLK
Block-special device requirement
On Solaris, ENOTBLK is errno value 15. The base message is Block device required
, but the useful diagnostic context is narrower than the short message: solaris expected a block-special device, usually in a mount or device-management path.
Use the Solaris-specific errno table first, then compare with POSIX only for portable behavior. Some Solaris values share names with other UNIX systems but have different numbers or more specific historical meanings.
What to check
- Verify that the pathname names a block device rather than a regular file, character device, directory, or symlink to the wrong object.
- For mount-style failures, compare the device node, filesystem type, and privileges used by the caller.
- Do not treat this as a media I/O failure; it is usually an object-type mismatch.
References
Looking for a different code? Search another status or error code.