LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2001, 12:45 PM   #1
dtsfanatic
Member
 
Registered: Jul 2001
Location: Virginia
Distribution: SuSE 7.3
Posts: 34

Rep: Reputation: 15
Installing a second hard drive


I want to run Linux and Windows. How would I set up a second hard drive to run Linux. Is it a hard install? Thanks for the help.
 
Old 07-12-2001, 12:58 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Your current hard disk is /dev/hda right? Well if you put a second hard disk as a primary slave it will be /dev/hdb if you put if on as a secondary master then it will bevome /dev/hdc and so on.

You then just use fdisk (or cfdisk) to partition the drive, then mke2fs to make your file system (akin to formatting a hard disk under Dos/Windows). Once you have you partitions created with your file systems on them you just use the mount command to make it avaiable some where. So you might do mount /dev/hdc1 /someDir then your would use /someDir to store the files on your new hard disk.

Does that make sense?

HTH

Jamie...
 
Old 07-12-2001, 01:05 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
It shouln't be too difficult, but it depends on your experience. You need to install the second hdd and then install your distribution.

What device name your hard drive will be depends on where you put it. The 'master' drive on the primary controller is /dev/hda and the slave is /dev/hdb. The 'master' on the secondary conroller is /dev/hdc and the slave is /dev/hdd. It wuld help if you know which drive is which.


All but one of the references to linux in your lilo.conf file should point to /dev/hdc (if you placed the new drive as the master on the secondary controller); the 'boot=' should be something like 'boot=/dev/hda' so that lilo can install on the master boot record of your first (hda) hard disk. The only thing that you should change on your primary disk is the MBR (if you want to use lilo - the linux loader). You will also need to add an option to boot your windows partition as well.

A really quickie partition...

/dev/hdb1 /boot 24MB
/dev/hdb2 swap <your RAM size or more>
/dev/hdb3 / <the rest of your disk>

I always put the /boot first on the platters as lilo has some 'issues' with cylinders over 1024. There's a workaround, but this way is easier for me to manage.


A lot of how the installation will go for you depends on your choice of distribution, your hardware setup, and your experience.

For more detailed help you will need to supply some more information.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Installing New Hard Drive coopedw Mandriva 2 03-11-2004 06:15 PM
Installing third hard drive tomarsyd Linux - Hardware 1 03-26-2003 10:41 PM
Installing a new Hard Drive Witch-King Linux - Newbie 6 12-26-2002 02:23 AM
Installing 8.1 on second hard drive mjcalling Linux - Newbie 7 02-20-2002 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration