LinuxNewbie.org: Adding a Hard drive in Linux -- In five steps | Linux Today

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

Written By
Web Webster
Web Webster
Jun 27, 2000

[ 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

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.