Create Mount Point for External Drives?

Having an issue making this happen. I can see all my other drives are in /media and /mnt folders. The 2 drives I want to create new mount points for are in /run/media/username folder.
Want to create the new mount points so jellyfin can find the drives.
Tried the below but getting what I think is a permission error?

╰─ ❯ sudo mkdir /mnt/S8GB1
[sudo] password for vger:          
╭─ vger                                                      
╰─ ❯ UUID=2F8B39BE-793C-4A40-A314-679C61747044 /S8GB1 ext4 defaults 0 0
bash: /S8GB1: Is a directory
[exit=126]

You can’t run an fstab entry fron the command line.

You can add it to your fstab and the run sudo mount /mnt/S8GB1

Getting this error now…

 sudo mount /mnt/S8GB1
mount: /mnt/S8GB1: can't find in /etc/fstab.
mount: (hint) your fstab has been modified, but systemd still uses
       the old version; use 'systemctl daemon-reload' to reload.
[exit=1]

Can you share the contents of /etc/fstab

Sure…

# /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>
UUID=DC81-672C                            /boot/efi      vfat    defaults,umask=0077 0 2
UUID=9bd1c214-2180-47be-a7db-3e88abbc078c /              btrfs   subvol=/@,defaults,noatime,compress-force=zstd:5,autodefrag 0 0
UUID=9bd1c214-2180-47be-a7db-3e88abbc078c /home          btrfs   subvol=/@home,defaults,noatime,compress-force=zstd,autodefrag 0 0
UUID=9bd1c214-2180-47be-a7db-3e88abbc078c /var/cache     btrfs   subvol=/@cache,defaults,noatime,compress-force=zstd,autodefrag 0 0
UUID=9bd1c214-2180-47be-a7db-3e88abbc078c /var/log       btrfs   subvol=/@log,defaults,noatime,compress-force=zstd,autodefrag 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
UUID=9bd1c214-2180-47be-a7db-3e88abbc078c /swapfc btrfs subvol=/@swapfc,defaults 0 0
#s8gb1
UUID=2F8B39BE-793C-4A40-A314-679C61747044 mnt/S8GB1 ext4 defaults 0 0


You need a leading / on /mnt/S8GB1

1 Like

Added it and saved but same error, do I need to restart?

YesOops :point_down:

1 Like

No, never restart if your /etc/fstab is in an invalid state.

This is just a warning:

You should probably also replace with defaults with nofail if this is an external drive.

1 Like

Sorry to butt in, but I’m confused. By adding the “/” in front of “mnt/S8GB1” this would have changed it to a valid fstab would it not?

1 Like

Ok changed it to nofail, and ran system daemon reload and I believe that did it, no error messages now.

1 Like

I mean, hopefully, but never reboot after /etc/fstab changes unless you have successfully run mount <mountpoint> first. That is how you test them.

Also, adding a device in /etc/fstab under /mnt doesn’t require a reboot.

3 Likes

Thank you :+1:

2 Likes

Restarted but can’t see the folder on that drive in mnt/S8GB1.
It still shows in run/media/vger/09acb580-7204-42f5-9850-5757af303dfa, where I can see the folder on the drive.

I think I’ve been using the wrong identifier for the UUID, should be above number for sdc1…

EDIT:

 ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Sep  9 15:11 01D5AEF361D6CA10 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  9 15:11 024f3608-ffce-4a76-b445-94c18d64cdec -> ../../sde1
lrwxrwxrwx 1 root root 10 Sep  9 15:11 09acb580-7204-42f5-9850-5757af303dfa -> ../../sdc1

Used the correct UUID this time and following your instructions all is well now!
Thanks for your time and help!!! :+1: :+1: :+1:

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.