LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-02-2003, 11:08 PM   #1
AlThor880
Member
 
Registered: Jan 2003
Location: UNH
Distribution: Browsing them All
Posts: 32

Rep: Reputation: 15
installing second hard drive


hi, been using linux (mandrake 9.0) for a few days now, and I love it. The way I set it up was I took a spare (very small) hard drive that my father had lying around and installed onto that. Now however, I'm running into issues with not having enough space on the harddrive to do all I want to do. I've heard that you can somehow add a new harddrive onto your system and be able to use it So my plan is (after I througoly backup my stuff up from it) to take my other harddrive, with windohs on it, and get it working with my linux system. This isn't a particularly large harddrive either, and I dont' really have a problem with erasing stuff on it (as I'll have the important stuff backed up should I breakdown and flee back to windohs) and this is where yousins come in: I really have no idea how to go about doing this ( ) and I'm looknig for a pretty thorough HOWTO. Thanks in advance for your help =). Since it's gonna take a bit for me to check and doublecheck that I have everything backed up I'll have a little bit of time for this project to be completed, but I need more space!! =p Thanks in advance =)
-ALThor880
 
Old 01-02-2003, 11:11 PM   #2
AlThor880
Member
 
Registered: Jan 2003
Location: UNH
Distribution: Browsing them All
Posts: 32

Original Poster
Rep: Reputation: 15
oh, I forgot to mention, I'm still getting familiarized with commands and whatnot, so if there are any commands like something to see what hardware I have or whatever for instance that'd be helpful could you post them along with use? would be extremely helpful. thanks again =)
-AlThor880
 
Old 01-03-2003, 01:18 AM   #3
manpreetnehra
Member
 
Registered: Jan 2003
Distribution: Mandrake,Redhat,NetBSD
Posts: 34

Rep: Reputation: 15
Well shut down your mandrake system and add the spare drive (I assume you know how to do that) . Boot your system and let your bios detect it, once the drive tis detected boot your system into linux.

Enter the root login
Method 1) Graphical mode and from startup menu go to the configuration->Hardware and check your Hard Disk detection in disks . It will be listed as /dev/hd$ ($ can be b,c,d, depending the bus you used)
Close the Configurator
Press Alt+F2 and type diskdrake and partition your disk if you want but don't touch your first disk.
If you want to use it as your home use the mount option to giev a mount point as /home
after partitioning and formating close the diskdrake

Method 2) Text based
use
#fdisk /dev/hd$
partiton your disk

#mkfs.ext2 /dev/hd$(1-x)
x is the number of partiton

#mount /dev/hd$(1-x) /home (or whatever you like)
edit /etc/fstab

Add the following lines

/dev/hd$(1-x) /home ext2 defaults 1 2

After any of the above procedure mv your home directory from old home to new home.
 
Old 01-03-2003, 12:39 PM   #4
AlThor880
Member
 
Registered: Jan 2003
Location: UNH
Distribution: Browsing them All
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for the reply, I'll try this once I get home (in comp sci class). One question though, I'm not entirely sure how exactly I should partition the drive, rember newbie =p. I haven't seen how exactly the utilities work yet (as I'm not on my box), and maybe it's self explanatory, but if not any further suggestions? Also, this drive still has windows and a buncha files on it system and stuff... do I need to format or something?
-AlThor880
 
Old 01-03-2003, 10:01 PM   #5
manpreetnehra
Member
 
Registered: Jan 2003
Distribution: Mandrake,Redhat,NetBSD
Posts: 34

Rep: Reputation: 15
the Diskdrake will show you your windows partitions as blue. You should not do anything to them and everything will be allright.

When using fdisk
#fdisk /dev/hdc (second disk)
n add new parition
m help
p print partition table
t change partition Id

Just remember not to touch the Windows partition shown as HPFS/NTFS or Windows 95 unless you want to erase them completely

The translation goes as follows

C: /dev/hda1
D: /dev/hda2 or /dev/hda5 (depending on prmary or extended partiton)

and so on...
 
  


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 Off
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 09:48 AM
Installing New Hard Drive coopedw Mandriva 2 03-11-2004 07:15 PM
Installing third hard drive tomarsyd Linux - Hardware 1 03-26-2003 11:41 PM
Installing a new Hard Drive Witch-King Linux - Newbie 6 12-26-2002 03:23 AM
Installing 8.1 on second hard drive mjcalling Linux - Newbie 7 02-20-2002 12:11 PM


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