A single inode number use to represent file in each file system. All hard links based upon inode number. So linking across file system will lead into confusing references for UNIX or Linux. For example, consider following scenario * File system: /home * Directory: /home/vivek * Hard link: /home/vivek/file2 * Original file: /home/vivek/file1 Now you [...]
You use DNS (domain name system) to translate between domain names and IP addresses. Similarly files are referred by file name, not by inode number. So what is the purpose of a directory? You can groups the files according to your usage. For example all configuration files are stored under /etc directory. So the purpose [...]
When you use term filesystem failure, you mean corrupted filesystem data structures (or objects such as inode, directories, superblock etc. This can be caused by any one of the following reason: * Mistakes by Linux/UNIX Sys admin * Buggy device driver or utilities (especially third party utilities) * Power outage (very rarer on production system) [...]
This is second part of “Understanding UNIX/Linux file system”, part I is here. Let us take an example of 20 GB hard disk. The entire disk space subdivided into multiple file system blocks. And blocks used for what? Unix / Linux filesystem blocks The blocks used for two different purpose: Most blocks stores user data [...]
An operating system like Windows / Linux can be installed on a single, unpartitioned hard disk. However, the ability to divide a hard disk into multiple partitions offers some important advantages. Explains the importance of Linux / UNIX partitions to improve security, stability and performance.