Advertisement
Home arrow Linux Guide
Linux Guide
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 )
 
Linux sub directory size info
Written by wiredgorilla   
Sunday, 20 July 2008

Need to know the exact size of your subdirectories in Linux?

Just go to the directory , like cd / and try this

du -cksh *

 

 
How to find MAC address in CentOS
Written by wiredgorilla   
Saturday, 19 July 2008

 Open SSH and type the following and press Enter:

/sbin/ifconfig | grep -i hwaddr

The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is your network card's MAC Address

 
Preparing server for bare metal restore using R1Soft Live Rescue CD
Written by wiredgorilla   
Saturday, 28 June 2008

Follow these steps to prepare a system for a bare metal restore. 

1. Put the R1Soft Live Rescue CD into the machine you are going to restore to, and boot.

    Press enter at the splash screen.

2. Once you are logged in, type

    netconfig

   and follow the prompts to configure the network settings. Start SSH if you need to access the machine remotely.

3. Type ping google.com to test the network connectivity.

Last Updated ( Sunday, 27 July 2008 )
Read more...
 
kernel yum upgrade
Written by wiredgorilla   
Saturday, 21 June 2008

check what kernel you are running at the moment

uname -a

and to upgrade your kernel

yum update \kernel*

check if your kernel is added to grub

cat /boot/grub/grub.conf

and then reboot

shutdown -rf now

Last Updated ( Sunday, 20 July 2008 )
 
Installing SSH public key for extra security on your Linux server
Written by wiredgorilla   
Saturday, 21 June 2008

Log into SSH

mkdir $HOME/.ssh
chmod -R og= $HOME/.ssh
cd .ssh
nano authorized_keys2

Add your key you created with PuttyGen , make absolutly sure you r key is in one line ONLY , otherwise it wont work!

Adjust your  sshd_config

nano /etc/ssh/sshd_config

to

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys2

Last Updated ( Sunday, 20 July 2008 )
 
Recover broken systems with SystemRescueCD
Written by andrew   
Tuesday, 17 June 2008

SystemRescueCD is a powerful, expansive live cd which is useful for recovering broken systems. This tutorial will guide you through how to get it up and running and how to perform some basic recovery procedures.

 

Last Updated ( Tuesday, 17 June 2008 )
Read more...
 
Installing and configuring Linux CDP Agents
Written by wiredgorilla   
Tuesday, 17 June 2008
R1Soft CDP is a easy to install and use continous data protection system, primarily targeted at the hosting market. It backups up multiple servers to a central backup server; multiple backup windows can be performed per day, and files or even the whole disk can be restored from the image. This tutorial will show you how to install the Linux Agent on a server which you want to be backed up, and how to configure it.
Last Updated ( Sunday, 20 July 2008 )
Read more...
 
Installing Cacti
Written by andrew   
Tuesday, 20 May 2008

Server monitoring is one of the most important aspects of managing a network. Cacti is a free PHP/MySQL script which can monitor everything from process counts to bandwidth, and is fairly easy to setup and use. If you have multiple clients you can even delegate specific access levels so that they can only view the graphs relevant to them.

This tutorial will guide you through setting up and configuring Cacti on a Linux server. 

Last Updated ( Wednesday, 21 May 2008 )
Read more...
 
Installing Webmin
Written by andrew   
Friday, 16 May 2008

While the big control panel suites you can install, like cPanel or Plesk, are excellent for large scale deployments or easy system administration, sometimes you just want an interface to quickly carry out complex tasks, which doesn't require a package as large as cPanel/Plesk.

Webmin, a free and powerful control panel, it easy to install and allows you to carry out administrative tasks in an easy to use browser based frontend. This tutorial will guide you through installing Webmin.

Last Updated ( Friday, 16 May 2008 )
Read more...