Mount partition with fstab not working

Forum rules
Before you post please read this
Liquid Divide
Level 1
Level 1
Posts: 13
Joined: Sat Apr 01, 2017 11:25 am

Mount partition with fstab not working

Postby Liquid Divide » Fri Jul 14, 2017 1:46 pm

I get different results when I mount a partition using a line in the fstab file versus running a

Code: Select all

sudo mount
command.

here is the line from my fstab file.

Code: Select all

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /my/mount/path ext4    defaults        0       1


when this is run on boot or with

Code: Select all

sudo mount -a
the drive appears on the desktop, but the contents of the folder it is mounted to are empty.

This partition is /dev/sdb1. When I mount the drive using

Code: Select all

sudo mount /dev/sdb1 /my/mount/path
then the drive appears and all the contents appear in the mounted folder location. I've tried modifying my fstab line to use /dev/sdb1 instead of the UUID of the partition, but I get the same result as using the UUID.

User avatar
MintBean
Level 8
Level 8
Posts: 2426
Joined: Fri Aug 07, 2015 6:54 am
Location: Blighty

Re: Mount partition with fstab not working

Postby MintBean » Fri Jul 14, 2017 2:02 pm

Try that. That's what I use in fstab for a data disc.

Code: Select all

UUID=*whatever* /mnt/Data auto noatime,nosuid,nodev,nofail,x-gvfs-show 0 0

User avatar
austin.texas
Level 20
Level 20
Posts: 11696
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Mount partition with fstab not working

Postby austin.texas » Fri Jul 14, 2017 2:10 pm

Liquid Divide wrote:here is the line from my fstab file.

Code: Select all

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /my/mount/path ext4    defaults        0       1

when this is run on boot or with

Code: Select all

sudo mount -a
the drive appears on the desktop, but the contents of the folder it is mounted to are empty.

Then where is it mounted?

Code: Select all

inxi -p
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

Liquid Divide
Level 1
Level 1
Posts: 13
Joined: Sat Apr 01, 2017 11:25 am

Re: Mount partition with fstab not working

Postby Liquid Divide » Sat Jul 15, 2017 12:34 am

austin.texas wrote:
Liquid Divide wrote:here is the line from my fstab file.

Code: Select all

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /my/mount/path ext4    defaults        0       1

when this is run on boot or with

Code: Select all

sudo mount -a
the drive appears on the desktop, but the contents of the folder it is mounted to are empty.

Then where is it mounted?

Code: Select all

inxi -p


It's being mounted to the correct location, but nothing shows up in that location. inxi -p gives the expected output.


Return to “Mounting Partitions”

Who is online

Users browsing this forum: No registered users and 2 guests