Mount: only root can do that

I'm using SuSE 9. 0 and cannot mount a USB Flash Memory (thumb drive) from a console using using the command: mount -t auto /dev/sda1 /media/sda1. This command works fine as a root user. All my directories are owned by me (not root) with full privledges and I've got the owner set to 'user' in /etc/fstab.

Everything Linux 1798 This topic was started by ,


data/avatar/default/avatar16.webp

3 Posts
Location -
Joined 2005-06-08
I'm using SuSE 9.0 and cannot mount a USB Flash Memory (thumb drive) from a console using using the command: mount -t auto /dev/sda1 /media/sda1. This command works fine as a root user. All my directories are owned by me (not root) with full privledges and I've got the owner set to 'user' in /etc/fstab. Anybody know what I can do to fix this problem?

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar19.webp

23 Posts
Location -
Joined 2005-02-06
use the su command before mounting?

data/avatar/default/avatar04.webp

94 Posts
Location -
Joined 2003-12-30
What does your entry for this device in /etc/fstab look like? I suspect that it should look something like this:
 
/dev/sda1 /media/sda1 auto noauto,users 0 0
 
Then you should be able to mount it simply with the command:
mount /dev/sda1
 
Another possible problem is that the mount command may be set to run only for root. To set mount to run as user type( as root):
 
chmod +s /bin/mount
chmod +s /bin/umount
 
Then it should work as user.

data/avatar/default/avatar16.webp

3 Posts
Location -
Joined 2005-06-08
OP
Thanks taeuler, but I still cannot mount as a User, it only mounts as root.
 
My fstab line is:
/dev/sda1 /media/sda1 auto sync,noauto,user,exec 0 0 #HOTPLUG B3Fu.p1a3eP+6Hk5
 
I have tried this line in fstab and SuSE always adds back the original line anyway on boot-up when the thumb drive is plugged in. However, this line in fstab does NOT work as a user, but does works as root:
/dev/sda1 /media/sda1 auto rw,noauto,user 0 0
 
The mount command may still be the problem tho. Here is what happens with your change to mount priviledges:
ll /bin/mount (before change)
-rwsr-xr-x 1 root root 77488 2003-10-02 13:18 /bin/mount
chmod +s /bin/mount
ll /bin/mount (after change)
-rwsr-sr-x 1 root root 77488 2003-10-02 13:18 /bin/mount
 
How do I change the last 'x' to 's' for the world? When I'm a User my group is not root so that may still be the problem.