Mounting an internal hard drive in Linux is not quite as simple as installing a hard drive on a Windows machine. After installing the hard drive, there are only a few steps that I will cover below. First, before this will work, you need to make sure the motherboard recognizes there is a new hard drive. Many of the SATA driven computers require entering the BIOS and Enabling the particular SATA port number.
- Run fdisk -l to list all the disk, their capacity, and their space available. There may be many more drives listed than you actual have running, so you will need to identify which drive is new. The best way to do this is to look at the drive capacity. Remember thatt 1024 MB = 1 GB. In the example below, we will assume that /dev/sdb1 is our new drive.
- Next, we add the following command to our fstab file located in the /etc directory. Edit the fstab file with your favorite editor and add /dev/sdb1 /mnt/hd1 ext3 defaults 0 0. Save and Close the file. Not that /mnt/hd1 can be any directory in the machine that you want.
- At the prompt, type mount -a to remount all the locations listed in the /etc/fstab file. You can now see a drive called hd1 in the /mnt directory.
RSS Feed
Posted in
Tags: 

