Download your favorite Linux distribution at LQ ISO.
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 10-23-2006, 03:08 AM   #1
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, 05:38 AM   #2
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,603

Rep: Reputation: 128Reputation: 128
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 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.


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

All times are GMT -5. The time now is 07:11 AM.

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