Volume labels make it possible for partitions to retain a consistent name. Each can be a maximum of 16 characters long. There are three tools to make volume labels: mke2fs, tune2fs and e2label.
e2label /dev/hda1 omega
tune2fs -L omega /dev/hda1
The above 2 commands will label the first partition of the drive “omega”. That label stays with [...]
To Disable Ping
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
To Enable Ping
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Linux filesystem blocks
The blocks used for two different purpose:
1. Most blocks stores user data as files (user data).
2. Some blocks in every file system store the file system’s metadata.In simple words Metadata describes the structure of the file system. Most common metadata structure are superblock, inode and directories.
Superblock
Each file system is different and they have [...]
DNS Server Setup
A name server translates domain names into IP addresses. This makes it possible for a user to access a website by typing in the domain name instead of the website’s actual IP address.
In order to run a `name server’, named daemon is needed. The files needed for configuring and running DNS (master and [...]
Symptoms : All rpm commands ‘hang up’
Find and kill all process running rpm or up2date:
ps -aux |grep rpm
ps -aux |grep up2date
Remove all rpm database lock files.
rm -f /var/lib/rpm/__db*
This usually get things doing..
If its not working then first make a backup of the database:
cp -r /var/lib/rpm /var/lib/rpm.copy
then rebuild the database
rpm –rebuilddb