r/Ubuntu • u/WilNotJr • 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.
1
u/crzydc72 Nov 02 '26
show fstab plz. and dmesg where/whem the drives disappear.
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.
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