You are not logged in.

#1 2013-09-18 12:17:35

manypopes
Member
Registered: 2013-06-25
Posts: 33

[SOLVED] Mounting second HDD with Xfce and fstab

I'm trying to mount a secondary harddrive. I'm having trouble with both mounting from Xfce desktop and automounting with fstab.

Xfce:
If I click the unmounted volume on my Xfce desktop, I do not have permissions to mount it.
I am in the storage group, I have thunar-volman and udisks (and gvfs if that matters) installed.
Searching on google I keep finding instructions to add ck-launch-session before xfce4 in .xinitrc. The wiki says that I shouldn't be using consolekit now that systemd is being used.
How do I give my xfce4 user permissions to mount volumes?

fstab:
I've entered a new line for my second HDD which mounts fine, however when it mounts the directory is owned by root and I do not have permissions. Simply editing the permissions of /mnt/sdb1 didn't work so I'm obviously going about it in the wrong way.
What's the proper way to automount a second HDD for use as extra storage for my user? It contains a single ext4 partition.

Going to university in two days so I really need this extra storage.

EDIT:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda1
UUID=ce2c702b-ef88-4d0e-bc18-1a2354d48214       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sda3
UUID=54601733-0e16-4308-88b1-10ef4fdb03b5       /home           ext4            rw,relatime,data=ordered        0 2

/dev/sdb1                                       /mnt/sdb1       ext4            rw,relatime,data=ordered        0 2

# /dev/sda2
/dev/sda2                                       swap            swap            defaults                        0 0
#UUID=01c8e0d9-0b96-48d7-820c-a61905c994b6      swap            swap            defaults                        0 0

Last edited by manypopes (2013-09-18 13:56:24)

Offline

#2 2013-09-18 12:19:34

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: [SOLVED] Mounting second HDD with Xfce and fstab

It would really help if you posted the contents of your /etc/fstab file..

Offline

#3 2013-09-18 13:53:19

ploub
Member
Registered: 2007-05-16
Posts: 132

Re: [SOLVED] Mounting second HDD with Xfce and fstab

Try adding the user option:

man mount said
The non-superuser mounts.
              Normally, only the superuser can mount filesystems.   However,  when  fstab
              contains  the  user  option  on a line, anybody can mount the corresponding
              system.

Offline

#4 2013-09-18 13:55:24

manypopes
Member
Registered: 2013-06-25
Posts: 33

Re: [SOLVED] Mounting second HDD with Xfce and fstab

I've created a folder within my second harddrive called storage and have set its permissions appropriately (Can't believe I didn't just do this straight away).

Although the Xfce mounting still doesn't work I don't particularly mind so I'll mark this is solved.

Offline

#5 2013-09-18 13:58:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Mounting second HDD with Xfce and fstab

With 'user' option it should mount OK.

If you have gvfs installed, you have polkit, so check if the session is active: https://wiki.archlinux.org/index.php/Ge … ermissions
Not sure if https://wiki.archlinux.org/index.php/Xf … le_Devices has any useful info.

Offline

Board footer

Powered by FluxBB