You are not logged in.

#1 2015-01-07 10:11:51

eyefox
Member
Registered: 2011-06-02
Posts: 8

[Solved] Can't mount partition with exec option

Hi there,

I just re-installed Arch. After the installation I mounted a non-root partition like so:

/dev/mapper/datenspeicher /run/media/lucas/datenspeicher ext4 rw,relatime,data=ordered 0 2

I now want to add exec as an option but for some reason it gets ignored. My new fstab looks like this:

/dev/mapper/datenspeicher /run/media/lucas/datenspeicher ext4 rw,relatime,data=ordered,exec,noauto,x-systemd.automount 0 2

mount still shows me the old options:

/dev/mapper/datenspeicher on /run/media/lucas/datenspeicher type ext4 (rw,relatime,data=ordered)

The x-systemd.automount gets honoured by systemd and it runs the right command:

● run-media-lucas-datenspeicher.mount - /run/media/lucas/datenspeicher
   Loaded: loaded (/etc/fstab)
   Active: active (mounted) since Wed 2015-01-07 11:36:46 CET; 7min ago
    Where: /run/media/lucas/datenspeicher
     What: /dev/mapper/datenspeicher
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 901 ExecMount=/bin/mount -n /dev/mapper/datenspeicher /run/media/lucas/datenspeicher -t ext4 -o rw,relatime,data=ordered,exec,noauto,x-systemd.automount (code=exited, status=0/SUCCESS)

I really hope someone can help me with this smile

Last edited by eyefox (2015-01-07 10:56:44)

Offline

#2 2015-01-07 10:25:40

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: [Solved] Can't mount partition with exec option

i'd say "exec" is the default option, hence it doesn't get shown.

Last edited by lucke (2015-01-07 10:26:50)

Offline

#3 2015-01-07 10:40:20

eyefox
Member
Registered: 2011-06-02
Posts: 8

Re: [Solved] Can't mount partition with exec option

exec is part of defaults, yes. But I didn't use defaults and even if I do, I still get the same problem.

I want to put my steam library on this partition and Steam complains that it needs to be mounted with execute permissions.

Offline

#4 2015-01-07 10:52:53

eyefox
Member
Registered: 2011-06-02
Posts: 8

Re: [Solved] Can't mount partition with exec option

Ok, I was wrong, it always was mounted with "exec" but the permissions on the Steam folder where wrong. Solved.

Offline

Board footer

Powered by FluxBB