๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux
Article #380

Re: Sharing Data on Linux Mint xfce

#380
From: Paul
Date: Thu, 03 Dec 2026 10:57
272 lines
9473 bytes
On Thu, 12/3/2026 5:31 AM, Jeff Gaines wrote:
> On 02/12/2026 in message <hft5um-0c8.ln1@spock.lan> dillinger wrote:
> 
>> On 02-12-2026 15:23, 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).
>>>
>>
>> So you skipped the fstab step, which makes me wonder where you've
>> mounted your drive.
>> Can you run "df -h" and post the output here?
>> It could be OK, there are always several ways to do things, but it isn't
>> very clear to me what you've done exactly.
> 
> It's not very clear to me what I have done exactly either :-)
> 
> Relevant lines form fstab:
> 
> /dev/disk/by-uuid/d8630cfc-01b3-4647-a38b-3ea4155245f5 /home/jeff/mnt/Media/ auto nosuid,nodev,nofail,x-gvfs-show 0 0
> 
> /dev/disk/by-uuid/949129ba-01a8-4804-93db-3161a2314ea9 /mnt/949129ba-01a8-4804-93db-3161a2314ea9 auto nosuid,nodev,nofail,x-gvfs-show 0 0
> 
> In the firstย  case I was following instructions step by step by creating a directory to use as a mount point then sharing that mount point in samba.
> 
> In the second I let Linux create a mount point then shared the directory I created on the drive.
> 
> Is there a proper or accepted way to do this so I can keep things standard?
> 
> PS I won't spell chek this....
> 

Purely for the Dick Tracy level of reasoning...
I didn't know gnome-disks was hiding such an option.

******* CoPilot question *******

A Linux Mint XFCE user finds the following lines in their /etc/fstab file.
is it possible to identify how these mounts ended up there ?

There may be some reference to a directory in smb.conf as well.

One of the mounts was made by actively interfering with a process.
The other looks more likely to be produced by automation.

/dev/disk/by-uuid/d8630cfc-01b3-4647-a38b-3ea4155245f5 /home/jeff/mnt/Media/ auto nosuid,nodev,nofail,x-gvfs-show 0 0

/dev/disk/by-uuid/949129ba-01a8-4804-93db-3161a2314ea9 /mnt/949129ba-01a8-4804-93db-3161a2314ea9 auto nosuid,nodev,nofail,x-gvfs-show 0 0

******* CoPilot answer *******

Those two lines are quite characteristic of desktop-initiated mount helpers
rather than something a system administrator would normally hand-edit into /etc/fstab.

Let's examine them individually.

/dev/disk/by-uuid/d8630cfc-01b3-4647-a38b-3ea4155245f5 /home/jeff/mnt/Media/ auto nosuid,nodev,nofail,x-gvfs-show 0 0

/dev/disk/by-uuid/949129ba-01a8-4804-93db-3161a2314ea9 /mnt/949129ba-01a8-4804-93db-3161a2314ea9 auto nosuid,nodev,nofail,x-gvfs-show 0 0

Important clue: x-gvfs-show

The option

   x-gvfs-show

is not a traditional Unix mount option. It is understood by GVFS
(GNOME Virtual File System), which is used by many desktop environments
including XFCE through the Thunar/GIO stack.

Its purpose is to make the filesystem appear in the graphical file manager.

That alone strongly suggests a desktop tool generated the entries.

Important clue: UUID path format

The second mountpoint:

   /mnt/949129ba-01a8-4804-93db-3161a2314ea9

is exactly the sort of mountpoint that automated tools create when
they don't have a user-supplied label.

A human almost never creates:

   /mnt/949129ba-01a8-4804-93db-3161a2314ea9

by hand.

It looks like:

   Detect filesystem UUID
   Create mountpoint named after UUID
   Add fstab entry

That is a very common automated workflow.

Likely source #1: GNOME Disks ("gnome-disk-utility")

One of the most common producers of entries like this is:

   gnome-disks

when the user selects:

   Edit Mount Options
or
   Mount at system startup

for a partition.

GNOME Disks typically:

   creates persistent fstab entries
   uses UUID references
   adds nosuid,nodev,nofail
   may add GVFS-related visibility options

The second line has the appearance of something GNOME Disks could
generate automatically.

Why the first line looks different

The first mountpoint is:

   /home/jeff/mnt/Media/

which looks chosen by a person.

The options however:

   nosuid,nodev,nofail,x-gvfs-show

still look machine-generated.

That suggests one of two possibilities:

Scenario A

   A GUI tool was used, but the mountpoint was manually edited before accepting.

Scenario B

   An automated tool was interrupted or coerced into using a pre-existing directory.

You mentioned:

   One of the mounts was made by actively interfering with a process.

That description actually fits Scenario B rather well.

For example:

   tool proposes a mountpoint
   user changes it
   tool writes fstab using same template options

Result:

   /home/jeff/mnt/Media/

with otherwise machine-generated options.

Relation to Samba (smb.conf)
You mentioned a possible reference in smb.conf.

That could explain the custom mountpoint.

Suppose Samba exported:

   [Media]
   path = /home/jeff/mnt/Media

Then the user would have motivation to ensure the filesystem
always appears there.

In that case a user might deliberately redirect a mount to:

   /home/jeff/mnt/Media

rather than accept an automatically-generated mountpoint.

The Samba entry itself would not normally generate the
fstab line, but it could explain why that specific mountpoint
was chosen.

How to determine what created them
Several places may contain evidence.

   Check package history
   Debian/Mint systems:

      grep -i disks /var/log/apt/history.log*

to see whether gnome-disk-utility was installed around the time the entries appeared.

   Check shell history

   grep fstab ~/.bash_history
   grep mount ~/.bash_history

If the user edited /etc/fstab manually, traces may exist.

   Check file modification time
     stat /etc/fstab

Not definitive, but if the timestamp aligns with other logs it can help.

Check filesystem labels

   lsblk -f
or
   blkid

If one filesystem is labeled:

   Media

that strengthens the idea that the first mountpoint was intentionally selected.

My best guess
Of the two entries:

Second entry

   /mnt/949129ba-01a8-4804-93db-3161a2314ea9

looks overwhelmingly like it was created automatically by a GUI storage
tool such as GNOME Disks or a udisks-based utility.

First entry

   /home/jeff/mnt/Media

looks like the same basic template was used, but the mountpoint was
deliberately redirected to a user-chosen directory, possibly because
that directory was being shared through Samba or otherwise expected
by applications.

Because both entries have the same unusual option set, I would
suspect they originated from the same software mechanism, with
only the mountpoint differing. The custom Media path is the one
that most strongly suggests user intervention.

******* End: Copilot Answer *******

   Paul
Technical Details
Message-ID: <11erhu4$7iu7$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!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.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> <hft5um-0c8.ln1@spock.lan> <xn0py2pjx5nmela009@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!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.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: Thu, 3 Dec 2026 05:57:07 -0500
Organization: A noiseless patient Spider
Lines: 272
Message-ID: <11erhu4$7iu7$1@dont-email.me>
References: <xn0py1h4k4ghswj006@news.individual.net>
 <hft5um-0c8.ln1@spock.lan> <xn0py2pjx5nmela009@news.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 03 Dec 2026 10:57:09 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="248775"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/6xGm2aBi5dXOLPZL/vKHKohfiLcZ588M="; posting-host="5f123e588b0e69ae80c6eca3f0680862"
User-Agent: THIS SPACE FOR RENT
Cancel-Lock: sha1:QH6vhiRwV0iYjgVbLsE7WjoHuv4= sha256:PTV0HC5EEQ4GtCZs0bTCnaYpNMCQafVASjANFkHliWw=
	sha1:8DfQ0ke6Jq7Z7xr0so5AK/vbZq8= sha256:Z6m701F8t6NYkS5N1jO8ZJgQzL21bap7YkQ4xIPeIdk=
Content-Language: en-US
In-Reply-To: <xn0py2pjx5nmela009@news.individual.net>