LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 05-10-2010, 12:06 PM   #1
gdiza
LQ Newbie
 
Registered: May 2010
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 21

Rep: Reputation: 16
Question Adding new hard drive for share...


Hi guys,

Ok!

Here is my next big mission.

I need to add a 500GB drive to my linux box, basically, it'll be a '500GB' share.
Oh, the drive is a SATA drive, but my current drive is IDE.

However, I honestly have no idea what to do from the get go.
I'm scared just putting the drive in will mess things up.

Can someone guide me step by step on what to do - the HDD was used on a Windows PC so I'm guessing I'll probably have to format it.

Oh! Samba is already setup for a share, but I want to remove this share and replace it with 1 500GB share.

Thanks!

Last edited by gdiza; 05-10-2010 at 12:17 PM.
 
Old 05-10-2010, 12:14 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Plug the drive in and see what happens.

Some bios' do not support mixing IDE and SATA drives.
Once you boot to linux, open a terminal and enter

fdisk -l

(you'll need to be root)

this will show you the detected drives and how they are partitioned.
use gentoos partition tools to repartition and format the drive.

work out where you want the file system mounted, and edit /etc/fstab to put it there.
I don't know what you mean by "500GB share".
 
Old 05-10-2010, 12:35 PM   #3
gdiza
LQ Newbie
 
Registered: May 2010
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Simon Bridge View Post
I don't know what you mean by "500GB share".
Basically, it'll be 1 big share (500GB) on the linux box, I'll prob call it "public"
 
Old 05-10-2010, 12:49 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I don't know what you mean by "share" in this context.

Do you mean that you intend to put only one partition on the drive, format it, then mount the file-system on a mountpoint called "share" someplace, say /mnt/share, so that all users can access it? Do you mean that you want to make the drive contents available over a network? Both? Neither?

The usual method is to plug the drive in, work out its block special device and file system, mount the file system to a mount-point. At which point, the drive becomes a seamless part of the overall file system tree. Gnu/linux does not distinguish physical drives like windows does, so we don't use a lot of the odd concepts that windows users have to put up with.
 
Old 05-10-2010, 12:53 PM   #5
gdiza
LQ Newbie
 
Registered: May 2010
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 16
LOL @ Simon,

Just remember, I'm basically a Windows boy who has just recently come to Linux.
But yes, 1 partition, 1 share for that partition.
 
Old 05-10-2010, 01:02 PM   #6
gdiza
LQ Newbie
 
Registered: May 2010
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 16
Okay, so I put the drive in;

PC booted up and then when I typed "fdisk -l"

This is what I see:

Quote:
Disk /dev/hda: 40.0 GB, 40019582464 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb15f2db3

Device Boot Start End Blocks Id System
/dev/hda1 1 13 104391 83 Linux
/dev/hda2 14 2450 19575202+ 82 Linux swap / Solaris
/dev/hda3 2451 4865 19398487+ 83 Linux
Nothing about the other drive... ?
 
Old 05-10-2010, 01:11 PM   #7
gdiza
LQ Newbie
 
Registered: May 2010
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 21

Original Poster
Rep: Reputation: 16
The first big bump in the road is that I have no monitor attached to the PC.
I will bring one home tomorrow from work - will help a bit more.
 
Old 05-10-2010, 01:31 PM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
look in dmesg for references to a sata drive.

check your sata settings in bios - but it is possible you have one that won't do sata and pata together. you can try see if both drives get detected by a live disk.

Quote:
Just remember, I'm basically a Windows boy who has just recently come to Linux.
But yes, 1 partition, 1 share for that partition.
Still don't know what "share" means - you put file systems on partitions - you mount a file-system.

Microsoft is the software equivalent of the United States - "the rest of the World" does not exist. MS folks use non-standard language as part of the lockin... its all marketing.
 
  


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 second hard drive dude998866 Linux - Hardware 3 04-26-2007 05:25 AM
Adding a second hard drive AxXium Slackware 9 03-24-2006 02:27 AM
Adding Hard Drive Cynthia Blue Linux - Hardware 3 12-19-2004 01:06 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

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