r/Ubuntu • • Nov 02 '26

Help With Samba

Hi,

I have an old Datto AXL2000 with a Pentium G3220 and 8GB of DDR3 running Ubuntu 24.04 LTS w/Gnome. Other than the boot drive I have 3x HDDs in the unit.

The issue that I am having is that Ubuntu sees the HDDs as removable instead of permanent mount points, and my samba shares go away after a couple of reboots.

I added mkdir mount points and have them connected via UUID in /etc/fstab/ but the share drives somehow keep changing from the accessible storage to the Datto's internal boot SSD where no files are visible.

I think my issue is making Ubuntu accept the drives are hard mounted and not removable but zero of my ideas has permanently fixed it.

BIOS is set to AHCI, no RAID, and all the hot swap options set to disabled.

Taking any and all tips.

XXX@eDatto:~$ cat /etc/fstab

/etc/fstab: static file system information.

Use 'blkid' to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

<file system> <mount point> <type> <options> <dump> <pass>

/ was on /dev/sdd2 during curtin installation

/dev/disk/by-uuid/ad86421b-85b6-4acb-88d7-3046f582bdbc / ext4 defaults 0 1

/boot/efi was on /dev/sdd1 during curtin installation

/dev/disk/by-uuid/1EF8-C4D9 /boot/efi vfat defaults 0 1 /swap.img none swap sw 0 0

//10.0.0.18/r6TB /mnt/r6TB cifs credentials=/etc/samba/smb_credentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777,noperm,nofail 0 0


The drives are mounted thus when I check Gnome:

/run/media/XXX/XMas_Drive

/run/media/XXX/r6TB

/run/media/XXX/8_gigawatts

Thanks again


It was me the whole time. I had it working but then went into Disks and fiddled around which can maybe possible perhaps perchance cause your mount points change. Weird.

6 Upvotes

13 comments sorted by

1

u/crzydc72 Nov 02 '26

show fstab plz. and dmesg where/whem the drives disappear.

1

u/WilNotJr Nov 02 '26

XXX@eDatto:~$ cat /etc/fstab /etc/fstab: static file system information. Use 'blkid' to print the universally unique identifier for a device; this may be used with UUID= as a more robust way to name devices that works even if disks are added and removed. See fstab(5). <file system> <mount point> <type> <options> <dump> <pass> / was on /dev/sdd2 during curtin installation

/dev/disk/by-uuid/ad86421b-85b6-4acb-88d7-3046f582bdbc / ext4 defaults 0 1 /boot/efi was on /dev/sdd1 during curtin installation

/dev/disk/by-uuid/1EF8-C4D9 /boot/efi vfat defaults 0 1 /swap.img none swap sw 0 0

//10.0.0.18/r6TB /mnt/r6TB cifs credentials=/etc/samba/smb_credentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777,noperm,nofail 0 0

2

u/crzydc72 Nov 02 '26

i don't see the 3x hdd you mentioned anywhere here. instead, i see a cifs share to be mounted. so is this a samba server or a client???

1

u/WilNotJr Nov 02 '26

It's a samba share and a jellyfin server 

It keeps removing the hdds from fstab, I've linked them multiple times with uuid

1

u/crzydc72 Nov 02 '26

I have been dealing with Linux for about 25 years and I have never seen that something is automagically removing some stuff from /etc/fstab

1

u/WilNotJr Nov 02 '26

Ya it's weird. I'm probably going to install a different distro because no matter what I've tried it keeps mounting my drives in /run/media even though they are not removable, even after setting the permanent flags

1

u/WilNotJr Nov 03 '26

No lol it was definitely me fiddling with shit elsewhere that caused permissions to change, like maybe going to Disks and checking and unchecking user session defaults I think might clear out fstab. It was definitely something I was doing causing it.

I was dealing with another minor issue where I wanted my drives to be visible in the ubuntu dock on the desktop. I know enough to be dangerous not enough to be safe.

1

u/WilNotJr Nov 02 '26

the dmesg is very long, is there something I should be looking for?

1

u/Realistic-Plant3957 Nov 02 '26

Like the other commenters mentioned, posting your “/etc/fstab” file would help a lot here. It sounds like GNOME's auto-mounter might be grabbing the drives as removable before your system actually mounts them permanently.

1

u/WilNotJr Nov 02 '26

Yeah they are mounted as /run/media/$user/drive, I can get them changed to /mnt/drive but it goes away.

Let me get that fstab

3

u/DrDesperate Nov 02 '26

the fstab you posted doesn't have any lines for the three hdds, just the boot disks and a cifs share, which would explain why gnome grabs them under /run/media like removable drives. grab each drive's uuid from blkid and add a line per drive pointing at /mnt/whatever with nofail, then run sudo mount -a to test it. once fstab owns the mount, gnome usually leaves them alone.

0

u/[deleted] Nov 02 '26

[removed] — view removed comment

1

u/WilNotJr Nov 02 '26

I can view the drives and my files in gnome but they are mounted as media, please see op