[TriLUG] Samba on a RPi

Pete Soper via TriLUG trilug at trilug.org
Mon Sep 14 11:06:36 EDT 2020


I cut my house Samba server over from an Odroid C4 to an RPI4 a few 
months ago and so far, so good. Once in a while one of my dev tools will 
momentarily fail to see a file I've modified, but for my situation it's 
harmless and I just "do it again" to compile the file but this might be 
a serious hangup for others. With the RPI on a gigabit switch with my 
main and second dev systems the performance has been excellent (new 
server has USB3 vs Odroid USB2, so that was huge also). However, one 
symptom I seem to have that is simply obnoxious is having git on the dev 
system see boatloads of uncommitted mods to files that aren't real. On 
the Samba server system git has an accurate view. Not sure this is the 
server though: might be something dumb I'm doing but it is as if the dev 
system view git has shows the file dates different or something. BUT 
it's also very possible I'm doing this with some tool that shouldn't be 
messing with the files but is. Overall I'm very pleased. The RPI is 
about two feet from my face and I can't hear it's little fan. Since 
giving my daughter my killer I7 system and switching to an ASRock 
industrial box about 4x4x3" everything except the monitors can stay up 
for a good while with a UPS when I unlazy and set that up (second dev 
system is a laptop and I can vnc into the main system to shut down or 
whatever during a failure here in the Wake nether regions where electric 
service is casual).

-Pete

On 9/14/20 6:39 AM, Ken Mink via TriLUG wrote:
> I tried creating a RPi3 based TimeCapsule using an external drive. The 
> common USB bus for the drive and NIC creates more than just a 
> bottleneck. The kernel just collapses under load and panics. I have 
> not tried it with an RPi4, but assume the design change has removed 
> this issue. I ended up using a BananaPi that had a SATA port. It has 
> worked out well.
>
> Ken
>
>
> On 9/14/20 02:43, Hrivnak, Michael via TriLUG wrote:
>> In case you're doing this with a pi 3, keep in mind that the ethernet 
>> and
>> USB ports are on the same bus, so creating a NAS that utilizes both can
>> create a bottleneck. It may or may not be noticeable for your use 
>> case, but
>> it's worth being aware of in case you do notice slower than expected 
>> speeds.
>>
>> The design changed with the pi 4 and is no longer an issue.
>>
>> On Sun, Sep 6, 2020 at 6:51 PM Matthew Glassman via TriLUG <
>> trilug at trilug.org> wrote:
>>
>>> Hello folks,
>>>
>>> I have what I'm sure is a simple question and answer, but I may be
>>> overthinking it.  I have a Raspberry Pi running Pi OS (formerly
>>> Raspian) and have installed Samba on it.  I have an external USB Hard
>>> Drive that I want to use as a remote storage device.
>>>
>>> I have hooked up the USB drive, formatted it with an NTFS system, and
>>> created a mount point on the raspberry Pi.
>>>
>>> I have created shares in Samba (one for myself and one for my wife)
>>> and created the required share folder location (in relation to the
>>> path designated in smb.conf).  I can mount the samba share with my
>>> samba credentials.  The issue I have is that everything on the mounted
>>> share is designated as root as user and group.  I can't chmod my own
>>> folder that I created even with a sudo issuance.   So is this
>>> happening at the mounting of the share (which I believe it is)?  If
>>> so, can I still mount the hard drive and still have it give my perms
>>> and ownership for my share and my wife's perms and ownership for her
>>> share?
>>>
>>> So in short..
>>> 1. External drive /dev/sda1 is mounted to raspberry Pi at 
>>> /media/external
>>> 2. /media/external has samba shares /media/external/myshare and
>>> /media/external/hershare
>>> 3. I want to be able to have myshare have me as owner and samba group
>>> as group and similar for my wife's share.  Currently everything is
>>> root:root 777.
>>>
>>> Regards,
>>> Matthew
>>> -- 
>>> This message was sent to: Michael Hrivnak <mhrivnak at hrivnak.org>
>>> To unsubscribe, send a blank message to trilug-leave at trilug.org from 
>>> that
>>> address.
>>> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
>>> Unsubscribe or edit options on the web  :
>>> https://www.trilug.org/mailman/options/trilug/mhrivnak%40hrivnak.org
>>> Welcome to TriLUG: https://trilug.org/welcome
>


More information about the TriLUG mailing list