Mailinglist Archive: opensuse (924 mails)

< Previous Next >
[opensuse] Re: [opensuse-factory] How can external disk be mounted so a ordinary user can write to the disk.
Hash: SHA1

On 2012-10-06 09:49, doiggl@xxxxxxxxxxxxxxxxxx wrote:
Hello, I have an external drive formatted and attached at bootup. The
/etc/fstab entry is
this: /dev/sdb1 /media/disk reiserfs acl,user_xattr 1 2

The problem is that a ordinary user cannot write to the disk , only root can.
I am using
opensuse 12.1 on this machine.

Questions. -How can the disk be mounted so a ordinary user can write to the
disk ? -What
commands do I need to run to to do this, examples would be useful ?

Several things. As you are using fstab, change the mount point to
/mnt/myexternal or any
other place you like - but never /media. Leave /media for the automatic system.

Do not use device names as /dev/sdb1. Never. You can instead create a label on
that disk:

reiserfstune --label MyExternal /dev/sdb1

Then, 1st question. fstab line:

LABEL=MyExternal /mnt/myexternal reiserfs acl,user_xattr,user,nofail,noauto 1 2

noauto is optional.

2nd question:

· Chown the /mnt/myexternal to your user.
· Or create a subdirectory that belongs to your user
· Or instead of chowning, change the permission (chattr) so that
the group has rxw permissions, and then your user belongs to that group.

- --
Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 "Asparagus" at Telcontar)
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla -

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups