I'm currently knee deep in Ubuntu Server. I'm building a new file server for home and have decided to make a serious effort to stick with Linux so hopefully I can get some guidance. I'm currently using a laptop as a practice machine for learning the ropes. My hardware should be shipping soon.
I have a few questions so if anyone has answers I would appreciate them. For our purposes, just assume a standard Samba file server without raid. Also, I want everyone who can see my shares to have the option to read/write to all directories within them.
1. When I create my mount points and mount my storage drives, is there anything I need to do up front with chmod to keep from having big issues with permissions later?
2. I plan to have four 4TB hard drives mounted, each drive as it's own share. Each drive has a matching external drive for backup which will be rsync-ed with its corresponding internet drive at least once per week. These drives will stay disconnected the rest of the time. Is there a way to plug these drives in and have Linux not on recognize which drive it is, but also mount each in a predetermined mount point? Currently they keep coming up as different device numbers which makes it far harder to do all this than it should be. Juggling four external drives from a command line is not my idea of fun. I'm confident that one of you has a nice elegant solution to this, because if not it is enough to push me over WS2012E.
3. Where should I be mounting my permanent drives? It's hard finding a straight answer. According to my findings, /mnt is for temporary mounts and /media is a for removable media in general but I just wanted clarification. My current plans are to mount the hard drives under /media and have the externals also mount there as needed for scripted rsync.
i.e.
/media/drive1
/media/drive2
/media/drive3
/media/drive4
/media/drive1ext
/media/drive2ext
/media/drive3ext
/media/drive4ext
I'm open to suggestions for a more optimal layout.
Thanks in advance.
I have a few questions so if anyone has answers I would appreciate them. For our purposes, just assume a standard Samba file server without raid. Also, I want everyone who can see my shares to have the option to read/write to all directories within them.
1. When I create my mount points and mount my storage drives, is there anything I need to do up front with chmod to keep from having big issues with permissions later?
2. I plan to have four 4TB hard drives mounted, each drive as it's own share. Each drive has a matching external drive for backup which will be rsync-ed with its corresponding internet drive at least once per week. These drives will stay disconnected the rest of the time. Is there a way to plug these drives in and have Linux not on recognize which drive it is, but also mount each in a predetermined mount point? Currently they keep coming up as different device numbers which makes it far harder to do all this than it should be. Juggling four external drives from a command line is not my idea of fun. I'm confident that one of you has a nice elegant solution to this, because if not it is enough to push me over WS2012E.
3. Where should I be mounting my permanent drives? It's hard finding a straight answer. According to my findings, /mnt is for temporary mounts and /media is a for removable media in general but I just wanted clarification. My current plans are to mount the hard drives under /media and have the externals also mount there as needed for scripted rsync.
i.e.
/media/drive1
/media/drive2
/media/drive3
/media/drive4
/media/drive1ext
/media/drive2ext
/media/drive3ext
/media/drive4ext
I'm open to suggestions for a more optimal layout.
Thanks in advance.
