LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-12-2007, 03:52 PM   #1
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Rep: Reputation: 0
Add second hard drive question


Hello everyone,

I have FC5 on a IBM machine that runs as a dedicated file server. It's got a 300GB IDE hard drive that stores everything, including backups. I want to add a new 40GB IDE hard drive so I can move the backups to that drive and keep it isolated.

I have absolutely no idea how to add the new drive, mount it to either home or home2, anything for that matter, as long as I can create a share using SMB.

I know how to physically add the drive though.

One more thing, as it stands, the drive is currently formatted in NTFS, was a windows hard drive so I'll need to know how to format it as well.

I have no GUI on my box.

I always appreciate the great help that people get on this site, it's priceless.

Regards,
genesis

Last edited by fmcgenesis; 11-12-2007 at 04:03 PM.
 
Old 11-12-2007, 04:15 PM   #2
DropSig
Member
 
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
well first you need to find out where it is in /dev.
that can vary a bit, if this is your second hard drive and if its not sata (from what you said its not)
its more than likely /dev/hdb
to be sure you can do #cfdisk /dev/hdb (MAKE SUR YOU DONT MODIFY ANYTHING UNLESS YOU WANT TO) this is the partition table,
Im sure there is an easier way but that the one i used.
usualy /dev/hda is primary disk, hdb slave, hdc CDROM, hdd cdrom slave but this can vary depending of your system.

now to format
mkfs.*fstype (mkfs.ext2, mkfs.ext3, mkfs.reiserfs)
so if you want a ext3 filesystem on that drive
mkfs.ext2 /dev/hdb (or whichever it is)

to mount:
mount *dev *mount point
eg:
mount /dev/hdb /mnt
will mount /dev/hdb to /mnt directory


just be carefull when using cfdisk and mkfs, cfdisk you can use to create partition but make sure you have the right drive
and mkfs well, dont do it on the wrong disk

hope this helps
 
Old 11-12-2007, 04:20 PM   #3
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks, sounds simple assuming there's no detection process, I just turn the machine off, plug the drive on slave, boot it up and format, mount the right drive. I haven't done this and I can't till the end of the day, where would I find the contents of this drive, like /home - where would I move my files to?

EDIT: Doing a #cfdisk /dev/hdb or hda just returns to prompt.

Last edited by fmcgenesis; 11-12-2007 at 04:25 PM.
 
Old 11-12-2007, 04:33 PM   #4
DropSig
Member
 
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
yes, but make sure you find the right drive, it shoudl be two hard, if you have one 300gb and one 40gb
where its going to be mounted is your choice. this is done with mount /dev... /....
let say your drive is /dev/hdb, you format with:
sudo mkfs.ext3 /dev/hdb
and you want that drive for backup, so you create a backup directory in /home/BAK like this:
sudo mkdir /home/BAK

then you would mount it like this:
sudo mount /dev/hdb1 /home/BAK
*notice the "1" this is the partition number

then change the permission on that directory:
sudo chmod +w /home/BAK

now you can move your file into that disk like this
cp (file) /home/BAK
 
Old 11-12-2007, 05:05 PM   #5
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Original Poster
Rep: Reputation: 0
That sounds ok to me, think i'll have no problems. But, is there a way to see my current list of devices? Currently I don't have the second HD plugged in.
 
Old 11-13-2007, 03:06 PM   #6
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks a lot for the help, it was a piece of cake. This was the first time I've ever added a harddrive to an existing linux installation and it's apparently just as easy as adding a harddrive in windows.
 
Old 11-14-2007, 09:06 AM   #7
DropSig
Member
 
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
try lshw this will give you a lot of info
you may want to pipe it to less: lshw | less
glad i could help
 
  


Reply



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
Add New Hard Drive L1nuxbug Linux - Hardware 5 06-14-2007 02:55 AM
How to Add a Hard Drive? notooth Linux - Newbie 12 10-26-2005 04:16 PM
Add hard drive Wardy Linux - Newbie 3 01-19-2005 05:34 PM
How to add a hard drive vicvac Linux - Hardware 9 03-18-2004 02:17 PM
add hard drive mnauta Linux - Hardware 1 01-09-2004 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:35 PM.

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