Advertisement
Home arrow Linux Guide
Linux Guide
Fix corrupted RPM database on CentOS 5
Written by wiredgorilla   
Wednesday, 28 October 2009

If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:

Command to rebuild rpm database

rm -f /var/lib/rpm/__db*
rpm --rebuilddb -v -v

 

Read rpm / yum man pages for more information

 
How can I repair corrupt MySQL tables?
Written by wiredgorilla   
Friday, 12 September 2008
How can I repair corrupt MySQL tables?
Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables.
Read more...
 
Changing hostname and IP on a CentOS server
Written by wiredgorilla   
Friday, 12 September 2008

OK, so you are ready to move your server to a different datacenter with a different IP C class.

Here are a few things you need to change

Last Updated ( Friday, 30 January 2009 )
Read more...
 
CentOS - what happened to netconfig in 5.1
Written by wiredgorilla   
Wednesday, 10 September 2008

For whatever reason CentOS decided to drop netconfig and renamed it to

system-config-network

 

 
How to mount and unmount a drive in linux
Written by wiredgorilla   
Tuesday, 26 August 2008

How To Mount A Drive In Linux

Initially you wanna check the hard drives on your system

fdisk -l

so now you now whats being seen by the system
 

Command Line

mount /dev/partitionId /some/mounting/point
 
for example
mount /dev/sdb /backup

The mounting point path must already be created with proper permissions. So a more likely flow of commands would be below:

Command Line

mkdir /some/mounting/point
chmod 777 /some/mounting/point
mount /dev/partitionId /some/mounting/point
 
for example:
mkdir /backup
chmod 777 /backup
mount /dev/sdb /backup
 
Now you just need to add the addon hard drive into fstab to be booted on startup as well
 
nano /etc/fstab
 

How To Unmount A Drive In Linux

Command Line

umount /dev/partitionId

This command is very easy to type wrong. It is NOT unmount. Take another closer look if thats what you saw at first. It is umount -- no n here!

Last Updated ( Tuesday, 26 August 2008 )
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Results 1 - 9 of 323