LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-23-2006, 02:08 AM   #1
Kanly6486
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
adding a new hard drive


currently i have a SATA 80 GB hard drive and i wanted to add on another drive, i have some old 160 GB IDE hard drives i wanted to use, but i cant find anything on how to install a SATA and IDE hard drive on the same computer, ive even tried just puting the hard drive in and when i go to boot it gives me a bunch of errors before linux fully loads =/ any help would be usefull
 
Old 10-23-2006, 04:38 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Hi Kanly6486,

how to do it may slightly vary with your distribution.
A general purpose instruction: First you will have to know which name your IDE drive is assigned. You can tell it either from the way you plugged it in (hda is usually primary master, hdb primary slave, hdc secondary master, hdd secondary slave). Another way is to view the output of dmesg to get the name. For example "dmesg | grep hda" will show you the boot up messages that hda gave. Try it also for hdb, hdc or whatever to get the name, I guess you will recognize your ide model.
That you get "a bunch of errors" gives me the idea that by plugging the harddisk in you might have changed for example the name of your cdrom drive, but that's just a wild guess. Use "dmesg | less" to view all error messages and eventually post them.

After you know the name you will most often create partitions, format them and append a line for it in /etc/fstab so that it gets mounted at boot time.
Use cfdisk as root to partition your disk. Just type "cfdisk /dev/hdc" to partition the hdc device.
You should reboot at that point after you created the partitions.
After that use mkfs.whatever to create a file system on any of the partitions. Let's assume you created hdc1 (primary partition) and hdc5 and hdc6 (two logical partitions), than you could for example create an reiserfs file system on hdc5 with "mkfs.reiserfs /dev/hdc5". Please take care to point mkfs.xxx to the right partition.
Then edit your /etc/fstab. You will probably be able to copy and modify an existing entry, hm, from any /home /var etc. partition. Fill in the right filesystem type (in this example "reiserfs") in the third column of /etc/fstab.

That should do it. I hope there aren't any errors, but you should get the idea.
 
  


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
Adding a Hard Drive texmansru47 Slackware 2 12-13-2004 11:19 AM
Adding a hard drive Mack_T Linux - Hardware 10 09-21-2003 11:46 AM
Adding a Hard drive jfisk Linux - General 3 08-08-2003 12:42 AM
adding a hard drive Serena Linux - General 2 07-19-2003 05:39 PM
adding hard drive jmarsh Linux - Hardware 3 02-27-2003 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 AM.

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