---

LinuxNewbie.org: Adding a Hard drive in Linux — In five steps

[ Thanks to Sensei for this link.
]

“This NHF assumes that you have already physically installed
your hard drive in your computer and configured it in your
computer’s bios.

1. Type “dmesg | more” to find out what the drive is called. If
this will be the second drive in your system…it will probably be
something like “/dev/hdb” (while the first drive is hda). Once you
have found this in dmesg…make a note of it as you will need it
later. For this NHF, we will assume that the new drive is
/dev/hdb.”

“2. You must now partition your new disk. In your shell
type:

fdisk /dev/hdb2

This will take you to a prompt that says “Command (m for
help):”. At the prompt, type “p” to display the existing
partitions. If you have partitions that you need to delete, type
“d”, then at the prompt, type the # of the partition that you wish
to delete. Next, type “n” to create new.”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis