Solved

Adding Hard Disk to Linux

Posted on 1997-09-07
1
213 Views
Last Modified: 2013-12-15
I have used up all the space on my existing HD, and have added another to my system.  I have partitioned with Linux
Fdisk.  I need to format it and get my system(slackware 3) to recognize it.  What are the steps, and how do I complete them...also, does it require rebuilding the kernel?
0
Comment
Question by:racy
1 Comment
 

Accepted Solution

by:
asmodean earned 50 total points
ID: 1629704
It is very easy to add a second hard disk to linux.
You have performed the first step. I assume you partitioned
the disk as type "Linux native".

Next, you need to frmat the disk. This is done using the
"mke2fs" command.

You can type "mke2fs /dev/hdX" to format an ide hard disk.
X is "a" for the first drive, "b" for the second, and so on.
type "man mke2fs" to see some options you can give it, but it
should do a good job in its default configuration. Be warned that
ALL data on the disk you are formating will be lost.

Lastly, you need to modify the /ets/fstab file to tell linux to
mount your disk when it starts up. You need to add a line
of this form to it:

/dev/hdb2       /        ext2        defaults   1   1

The above line means
mount /dev/hdb2 (the second partition of drive 2) in the
directory / using the ext2fs filesystem. Dont worry about the
last three parameters, they are ok being set to "defaults 1 1"

The above line means that drive hdb2 will contain everything
starting with the directory "/" and going deeper. You will need
to choose a directory to mount your new drive on. A good thing
to do is to move the /home directory to your new disk.


k
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 43
Issue with SFTP on non-root account using Guacamole  / GUAC 2 61
Access_log 17 97
route 2 traffic streams on single NIC 6 34
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now