Skip to main content


Showing posts from June, 2010

How to mount and unmount a hard drive in Linux?

I lease multiple Linux servers. One of them has multiple hard drives installed in it. After asking the data center to reload the OS on it, the staff did not mounted the second drive. Surprisingly it is extremely easy for anyone with a root access to mount a hard drive on a Linux-based system. Here I will show you the very basic ways to mount and unmount a hard drive. This particular server is running CentOS 5.

Determine available drives and partitionsTo star, you should first find out what hard drives and partitions are available. A quick way to show available hard drives in your system is to run the command fdisk -l. The results will give you some helpful information about the connected drive(s), as well as information on the partitions, and their size.

Fdisk is a partition manipulating program. The letter "l" attribute stand for list, causing fdisk to list the system partitions. You can read more in the fdisk man pages.

[caption id="attachment_1059" align="al…