Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-03-2008, 01:47 AM   #1
Registered: Jan 2008
Posts: 51

Rep: Reputation: 15


I want to connect sata harddrive means 2nd hard drive in my fedora box already having the 1 sata hard drive please tell me about the procedure from scratch.

Old 02-03-2008, 04:39 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Shut down your machine, take power cords off, ground the machine (there are some fancy ways of doing that, but it should do if you touch the ground yourself and touch the metal cage of the computer) and don't wear clothes that could cause static electicity shocks. Shortly said, open your machine in a "safe" way so that you don't get lightning. Then install the harddisk to the cage, with all the screws that hold it in place, connect the cables and put back the cover of the machine.

Once the harddisk is physically connected, boot the machine. Fedora should pick it up all by itself. Then you can use (install trough package management, if needed) GParted to partition and format the disk - create one or more partitions on it if there are not already, and format it (ext3 is a good filesystem if you only intend to use it with Linux). After that it should be at your use.

The command-line way is to (as root - first command 'su -' to become root) use cfdisk (or fdisk, if you feel so, but cfdisk might be easier) to make some partitions on the device:
cfdisk /dev/sdb
Then you could use mkfs.ext3 program to make ext3 partitions (if you want them) onto the partitions you created. Something like
mkfs.ext3 /dev/sdb1
for the 1st partition of sdb, your secondary harddisk. sdb2 for the second partition, and so on. Read
man mkfs.ext3
for more options of that program.

Once it's partitioned and formatted, you can mount it with 'mount': first make a directory where you mount the harddisk's contents (where ever you like; here I show how to make it to /media/):
mkdir /media/my_new_harddisk
Then mount it:
mount /dev/sdb1 /media/my_new_harddisk
And there you go. Again sdb1 is for the first partition...

umount /media/my_new_partition
If you want to automate mounting it, add a new line to /etc/fstab - for example
/dev/sdb1   /media/my_new_partition   auto   defaults,auto   0   0
again read more about fstab to know the options.
Old 02-03-2008, 09:36 AM   #3
LQ Newbie
Registered: Feb 2008
Location: Philadelphia, PA
Distribution: Slackware, Kubuntu, BackTrack, Slax, LFS
Posts: 10

Rep: Reputation: 0
Thumbs up Quick guide

Hi, the above post is right on. Don't have too much more to add but if you wish to get some information on FSTAB so you can have your drive mounted on reboot automatically, you can check out a guide we have up on adding a new hard drive. The guide is for Slackware Linux, but is essentially the same process. You can view it here at Mutaku. Hope that helps you out!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting a mount (recursive mounting?) fudam Linux - General 6 10-16-2006 05:50 PM
mounting digital camera, mounting in general? lugoteehalt Linux - Hardware 6 08-29-2006 12:52 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 07:34 AM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 11:00 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration