PDA

View Full Version : LinixMint/Samba/NewHardDrive


bobv13
03-23-2010, 03:18 PM
A few months back I decided to switch from a FreeBSD (FreeNAS) server to a LinuxMint/Samba server. After a couple quick searches I found out how to setup the samba share and even get the share available on my other linux, XP, Vista, and Win7 systems on boot. Everything was cool.

It didn't take long before I wanted to add an additional HD. Of course I want to make everything available just as my first samba share is. Furthermore I'd like all partitions (new and old) to be available under one share name (myshare). "MyShare" is the folder where my smb.conf points and because this share is on the same partition as the OS it's available at boot. Now for my new drives/partitions, Linux not being windows I have some things to do.

Stop me if I'm wrong but I want to mount the new local partitions within the samba folder. If that holds true I will not need to do anything in my smb.conf file. I will only need to add a line for each new partition in my fstab file.

The third parm of the line indicates file system type, I believe it should be "ext4", the same type I chose while creating the partitions. The other choice is "smbfs" but I think that only applies if I were mounting a share on a remote system.

My final concern is with user/password, or are they a concern? I don't plan on protecting them. Is setting their properties to share enough.

computoman
03-23-2010, 04:37 PM
just mount the the new drive as a sub directory on the old drive. You can do that with fstab When I used samba the "real fs type had nothing to with the "virtual" fs as being shared. One of the reasons I dumped samba and went to sshfs. You do not have to manage two systems and passwords. The server is more efficient and more secure now requiring less administration. With more and more servers going to linux, microsoft has to support sshfss sharing natively, there is always winssh for ms machines. Kudos to the samba team, but it's a hassle,unless you have to have ms active directory crap.

bobv13
03-24-2010, 01:08 PM
computoman, first let say that I appreciate your help, thanks

I did what I/you described above, that is, I mounted the new drives within the existing samba share folder and added entries for each partition in the fstab file. They are all visible and readable for my other OS however I can only write to the original partition and not the partitions mounted within its share. I specified the option "default" within fstab for the new partitions which I believe should make them read/write. Do I need to give a "chmod" command at startup? <btw I'm not given a user/password prompt when attempting write to these folders from windows, only a box telling me I do have permission.> believe it or not I do google before I post

bobv13
03-26-2010, 01:34 PM
good morning. Everything seems to be working fine now after a reboot.

computoman
03-31-2010, 06:05 AM
Cool!