LinuxQuestions.org
Visit Jeremy's Blog.
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 12-29-2004, 01:59 PM   #1
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Rep: Reputation: 15
installing 2nd hard drive


I have trustix running on an old Dell GX1 and I would like to add another hard drive.

I have done this before on Windows, but I imagine that the process will be different in linux.

Thanks guys!
 
Old 12-29-2004, 03:55 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
No it's not all that different.
1. Set the jumper so the new drive is a slave and the first one is the master drive.
2. Boot up into the bios and make sure your hard drives are there.
3. Boot into Linux and use a command line tool such as fdisk, cfdisk, parted or use the GUI tool called qtparted to create the partitions on the new drive.
4. If you used a command line tool to create the partitions, then you will need to format them also. If you used qtparted, format is included.
5. Make a directory in the mnt folder such as /mnt/stuff
6. Mount the new partition in the new folder. For example ....
mount /dev/hdb1 /mnt/stuff -t ext3
7. Put an entry in the /etc/fstab so your new partition will be available every time you reboot ....
/dev/hdb1 /mnt/stuff ext3 defaults 0 0
Note: if that is the last line in your fstab file, be sure to press enter to go to a new line so you don't get an error.
 
Old 01-03-2005, 10:55 AM   #3
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15
ok, now I have installed the new drive, but I have a really silly question...

How do I tell which hard drive I need to format?

It shows that there is a hda and a hdb.

I assumed that hda would be the original hard drive, but do I need to be sure?

I also only have shell, no GUI at all.
 
Old 01-03-2005, 11:10 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hda is *always* the primary master. you can rely on that 100%

and all the above instuctions are for a console. it's much easier than using a gui really.
 
Old 01-03-2005, 11:23 AM   #5
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15
if I have a directory called /data and I want to extend that directory with the new hardrive, how would I do that or is that possible?
 
Old 01-03-2005, 11:28 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that's not as nice... you'd need to look into either software raid or Logical Volume Management (LVM) there are howto's on both these subjects at tldp.org, but generally it's a substantial amount harder than it is to have a seperate mount point for it.
 
Old 01-03-2005, 11:29 AM   #7
IchBin
Member
 
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Rep: Reputation: 15
What do you mean by extend?
 
Old 01-03-2005, 11:32 AM   #8
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15
well I seen an article here that talked about (in point 0) that seemed to extend that directory.

I may be misunderstanding the meaning of this.
 
Old 01-03-2005, 11:37 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, that just adds subdirectories to it. the data is still totally locked away within a particular directory, on a particular drive. if you have a certain volume of data that is always going to be very different from the other, then you could move that to the new partition, but it's not like it's all one big usable space, they will just appear close to each other within the filesystem. If that's posible... then sure go for that, but if it's logically inconsistent to split the data into two halves (/var/data and /var/more_data_that_didnt_fit_on_the_other_drive) then it's not really a nice way to go around it. mind you... it'll still work of course...
 
Old 01-03-2005, 11:42 AM   #10
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15
I think I understand what you are saying.

I can split the data with no problem.

Sorry for the misunderstanding.
 
Old 01-03-2005, 11:51 AM   #11
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15
hate to bother you guys again, but should I use ext2 or ext3 filesystem? Above has ext3, but a lot of tutorials have ext2.
 
Old 01-03-2005, 11:57 AM   #12
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I use ext3 but that's mostly a personal preference type of thing.
 
Old 01-03-2005, 12:13 PM   #13
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
Remember, you can put a symbolic link in your directory structure, pointing to the new drive... I've done so in my one user account, giving me access to my 2ndary hard drive for storage purposes. You just name the symbolic link whatever you want, and it will appear in konqueror (for example) as a folder with a little arrow hanging on it. Other file managers will also treat it just like a sub-folder...
 
Old 01-03-2005, 12:18 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
use either ext3 or reiserfs, either will do you fine.
 
Old 01-03-2005, 01:25 PM   #15
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15
could I 'ctrl-c' to get out of the check for bad blocks in the mkfs?
 
  


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
2nd hard Drive grabro Linux - Hardware 1 02-05-2005 05:49 AM
2nd Hard Drive snutz411 Linux - Hardware 3 03-24-2004 12:52 PM
2nd hard drive neo.sarcastic Linux - Hardware 4 09-22-2003 11:22 PM
2nd Hard Drive Tad Linux - Hardware 6 05-22-2003 12:47 PM
2nd hard drive jarrodatt Linux - Hardware 1 11-12-2002 02:31 AM

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

All times are GMT -5. The time now is 06:45 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