🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux
Article #377

Re: Sharing Data on Linux Mint xfce

#377
From: Paul
Date: Wed, 02 Dec 2026 16:07
65 lines
4564 bytes
On Wed, 12/2/2026 9:23 AM, Jeff Gaines wrote:
> 
> I have a Lenovo TS140 with a Xeon processor running Linux Mint xfce. It has been my media server and does that job so well I have today added a new drive that will enable me to use it to share data and my archive.
> 
> I physically added a 4TB SSD, used gparted to clean off the NTFS partition and added and formatted one big partition to ext4. I then added 2 x directories (Data and Archive), added them to smb.conf and re-started samba. Both are visible over the home network and I am copying data over at the moment.
> 
> Sitting here drinking a celebratory cuppa I have realised that when I set up my media shares I did the following:
> 
> Physically install the 2 x drives.
> Partitioned, formatted and added a directory to each.
> Ensured they were in fstab.
> Created 2 x mount points in home/mnt, linked them to the directories on the drives and shared those link points.
> 
> Strikes me I have added an unnecessary extra step there and could have just put the directories in smb.conf as I did today with the new drive.
> 
> I was following online instructions fairly blindly and it worked but seem it could be streamlined.
> 
> Am I right, can I take that extra step out? I am looking at 6 TB of data and would prefer not to lose it! (is is backed up twice).
> 

Are you perhaps implying that smb.conf doubles as an auto-mounter ?

There are a couple mount methods. There are static mounts (/etc/fstab)
and there is also the auto-mounter. On the automounter, first a
mount point is made dynamically in a fixed place, then the thing
to be auto-mounted, is put on top of the fixed place addition.
You can observe the auto-mounter, when you plug in a USB stick.

When you do a mount, usually the mount point is owned by root,
and when something is mounted on top, the thing mounted on top
can have its own permissions.

Static mounts, can have all manner of additional options after the -o
and the items are comma separated. I don't know if automounts have
some default arguments you can set or not.

If you are doing this via smb.conf, is there a requirement the
directory being shared, exist as the system comes up ? Is the smb.conf
scanned at regular intervals ? Maybe there is some temporal issue
you should consider here (just guessing).

Using systemd, you can start and stop smbd. Perhaps the
smb.conf configuration is re-read when smbd is started ?
Otherwise, you may want to static mount the devices in
/etc/fstab, and then when systemd brings up smbd, the
mounts are already stable and in place, allowing the
smb.conf to point to the "actual item".

Example of something doodled in my notes file.
Just to demonstrate whacking stuff.

   sudo systemctl restart smbd.service nmbd.service

*******

I can see scenarios on local mounts (things not shared), where
an operator accidentally writes on top of the mount point,
instead of to the thing to be mounted. I've done that a few times
on WSL for a particular thing I mount later. Your shared items,
I doubt the raw mount point has the necessary permissions to allow
writing to it, from a remote location. Only when the device is
mounted, and SMBD is offering it, would an incoming write be
in a position to do its thing.

     Paul
Technical Details
Message-ID: <11epfnt$37k8o$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <xn0py1h4k4ghswj006@news.individual.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Paul <nospam@needed.invalid>
Newsgroups: alt.os.linux
Subject: Re: Sharing Data on Linux Mint xfce
Date: Wed, 2 Dec 2026 11:07:26 -0500
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <11epfnt$37k8o$1@dont-email.me>
References: <xn0py1h4k4ghswj006@news.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 02 Dec 2026 16:07:26 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3395864"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+kgRxs7oSozVcfXgirEssarqPoG12XHrw="; posting-host="e95e3d7dc7065dcb600124c740ee8f1c"
User-Agent: THIS SPACE FOR RENT
Cancel-Lock: sha1:KNmvLnYU5BdAXWWDGzwwUrZBAHM= sha256:32l/xi4oCpLqbABPA3EuUuEUYYyCEsrW/Xt9fFLIC/w=
	sha1:d9L2DyHfESQMpacsebdScOHfyGc= sha256:K0FpOeaTbsWBx9Edb3IZt8IHoUiOUEnjIpUfldAkSns=
Content-Language: en-US
In-Reply-To: <xn0py1h4k4ghswj006@news.individual.net>