linux file system

I‘ve configured and mounted /var for squid caching and other purposes under Linux. I’ve noticed that the Linux file system keeps records of when files are created, updated, and accessed. My /var is exclusively used for caching purpose and I do not want to waste disk I/O while updating last-time-read attribute during reads and writes to files. How do I disable access time updates for /var partition?

{ 3 comments }

Q. How can I Recover a bad superblock from a corrupted ext3 partition to get back my data? I’m getting following error:

/dev/sda2: Input/output error
mount: /dev/sda2: can’t read superblock

How do I fix this error?

{ 30 comments }

Q. I’m using CentOS Linux. I’m getting an error – Cannot Preserve Ownership, when I try to copy files from Linux ext3 to FAT32 or files moved to an NFS NAS server mount point. How do I fix this error and copy / move files? A. Generally you use command like cp or my to […]

{ 0 comments }

Q. How do I display file inode number using command line? A. An inode is a data structure on a Unix / Linux file system. An inode stores basic information about a regular file, directory, or other file system object. You can use following two commands to display an inode: [a] ls command : list […]

{ 2 comments }

Q. Can I run fsck or e2fsck command when Linux file system is mounted? Do you advice to run fsck on a live file system? I am using Cent OS. A. No. Do not run fsck on a live or mounted file system. fsck is used to check and optionally repair one or more Linux […]

{ 36 comments }