LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   RedHat 9 added Second Harddrive for use with Samba (https://www.linuxquestions.org/questions/linux-hardware-18/redhat-9-added-second-harddrive-for-use-with-samba-394368/)

tekyd 12-19-2005 12:03 AM

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

:newbie: :Pengy: :confused:

javiergt 12-20-2005 12:12 PM

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

tekyd 12-20-2005 12:36 PM

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.

:newbie:

phil.d.g 12-20-2005 12:45 PM

You need to create a partition on the drive first and format it before you can mount it

javiergt 12-20-2005 12:48 PM

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

tekyd 12-20-2005 01:59 PM

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.

javiergt 12-20-2005 02:07 PM

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

michaelk 12-20-2005 02:50 PM

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.

tekyd 12-20-2005 06:10 PM

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

tekyd 12-20-2005 06:47 PM

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.

tekyd 12-20-2005 06:53 PM

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

michaelk 12-20-2005 07:06 PM

Excellent.


All times are GMT -5. The time now is 12:53 PM.