LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-19-2005, 12:03 AM   #1
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Rep: Reputation: 15
Unhappy RedHat 9 added Second Harddrive for use with Samba


Im using Redhat 9 with the GUI and just added a Maxtor 160Gb hard drive that i want Samba to have directories in the big drive not my small 6 gb drive. how do i make directories that are located on the big hard disk instead of the small drive. The OS is installed on the smaller drive and would like to keep it there if possible. also wanted to mention that the smaller drive is id as dev/hdc and the larger oen is id as /dev/hdd.


thanks in advance,

tekyd

p.s if you need more info i tell me and i will try to find it and add it to this


Last edited by tekyd; 12-19-2005 at 01:12 AM.
 
Old 12-20-2005, 12:12 PM   #2
javiergt
LQ Newbie
 
Registered: Aug 2004
Posts: 25

Rep: Reputation: 15
Is your new hard drive mounted?
Make sure your new hard drive is mounted and then you need to create new directories in the new hard drive.
After that you need to add those directories in your samba configuration file.
Let me know if that helps at all in your problem.

javiergt
 
Old 12-20-2005, 12:36 PM   #3
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by javiergt
Is your new hard drive mounted?
Make sure your new hard drive is mounted and then you need to create new directories in the new hard drive.
After that you need to add those directories in your samba configuration file.
Let me know if that helps at all in your problem.

javiergt
the only way i see the hard drive is in the hardware utility. in the mount utility i cant see it. if you could tell me how to mount it that mould be most helpful. thanks.

 
Old 12-20-2005, 12:45 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
You need to create a partition on the drive first and format it before you can mount it
 
Old 12-20-2005, 12:48 PM   #5
javiergt
LQ Newbie
 
Registered: Aug 2004
Posts: 25

Rep: Reputation: 15
Could you post your /etc/fstab file.
I just want to see if when you added the new hard drive with the GUI, if it was included in that file also.

javiergt
 
Old 12-20-2005, 01:59 PM   #6
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
my computer tells me " permission denied" when trying to veiw the fstab file while loged in as root. also i did format the hard disk and i did format it but im not sure what directory leads to the hard disk.

thanks for helping me.
 
Old 12-20-2005, 02:07 PM   #7
javiergt
LQ Newbie
 
Registered: Aug 2004
Posts: 25

Rep: Reputation: 15
Ok, try logging in as root like this:
# su -
Then is going to ask you for the password for root, put it in and then try to read the /etc/fstab

Looks like you might swith to root by doing this
# su
That way you don't inherit root's profile, you keep the previous users profile.
Let me know,

javiergt
 
Old 12-20-2005, 02:50 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
RH9 will not automatically create a diretory to use as mount point nor an entry in the /etc/fstab file.

You can create a directory using the console command mkdir. i.e. (non GUI method)
mkdir /shares (creates the mount point)
chmod 777 /shares (to make it world read/writable)

Add to /etc/fstab
mount -t fstype /dev/hddx /shares defaults 1 2 (enter correct filesystem type and partition id)

mount /shares (to mount the filesystem)
Once you get the filesystem mounted we can help you setup samba.

Last edited by michaelk; 12-20-2005 at 02:51 PM.
 
Old 12-20-2005, 06:10 PM   #9
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
im realy confused. i have the disk partioned but not usre how to mount and format and whatever else people have sugested. also trying console commands is something i think my comp doesnt like. and i dont trust myself with completely text interface.

the drive is labled hdd
the partition is hdd1
thats about it
 
Old 12-20-2005, 06:47 PM   #10
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
i jsut tried uyour segestions again and i think i got it mounted and i added it to samba but other computers cant access it yet and i dont know why. i added it the same way i added the otehr dir on the smaller drive but it wont alow access to the dir from other computers on the network.
 
Old 12-20-2005, 06:53 PM   #11
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
i kept at it anmd finaly got it to work it was the fact that i looked in the root sub dir instead of the main dir and i finaly got it to work.
thanks a bunch for your help everyone.
dan
 
Old 12-20-2005, 07:06 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Excellent.
 
  


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
Problem with second harddrive on Slack 10.2/Samba g3m1n12281 Linux - Hardware 2 10-10-2005 10:15 AM
Added second harddrive as a partition, but now the partition size is wrong.. mlsbraves Linux - General 5 08-17-2005 08:10 PM
Can't mount harddrive on Redhat 9 collinz340 Linux - Hardware 1 09-02-2004 09:21 PM
Want to install redhat 7.3 on second harddrive smoorhea Linux - Newbie 1 06-15-2004 04:09 PM
newly added harddrive not showing.... pdmackenzie Linux - Hardware 4 03-02-2003 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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