You are not logged in.

#1 2006-05-25 19:55:52

DBerest
Member
Registered: 2006-02-15
Posts: 46

[Solved] Mounting USB stick as user (fstab seems correct)

HI

When trying to mount a usb stick as user, I get the meesage:
"Mount: only root can do that

according to the wiki, my fstab entry is correct:

/dev/sda               /mnt/usb  vfat      noauto,user             0  0
/dev/sda1              /mnt/usb  vfat      noauto,user             0  0

This leads me to believe that the mount command itself needs its permissions modified. I understand that I could set sudo and go that way, but at the moment, I'd rather not as I would still not understand what is happening, and would feel to me like sticking a plaster over it to make it work.

On a side note, I installed xfce as my DE. I don't have a GUI text editor (beside OOo) how can I select and copy some text staright from the Terminal into a browser? at the moment, I have to open the file in the browser and copy from there.

Thx.
Damien

Offline

#2 2006-05-25 20:39:45

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [Solved] Mounting USB stick as user (fstab seems correct)

try adding umask=0000 before the 0 0.

You may also want to look into pmount.

pmount /dev/sda1 usb

will dynamically create the folder `usb' in /media and then mount it. To umount use pumount /dev/sda1

Offline

#3 2006-05-25 22:57:30

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 287

Re: [Solved] Mounting USB stick as user (fstab seems correct)

I guess that you try to mount with the command

mount /dev/sda1 /mnt/usb

But you should only specify the device or the mountpoint, or else the mount command woun't look at fstab at all, so:

mount /mnt/usb

or

mount /dev/hda1

should work.

Offline

#4 2006-05-26 16:30:13

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: [Solved] Mounting USB stick as user (fstab seems correct)

man pmount

[edit]
oh duuuuuuuuuuh, only just seen penguins post.
sorry Mr Pingu, plagiarism unintended smile

Offline

#5 2006-05-26 20:30:35

DBerest
Member
Registered: 2006-02-15
Posts: 46

Re: [Solved] Mounting USB stick as user (fstab seems correct)

filoktetes and Penguin
Thanx, both pmount and shortening the mount command to mount /mnt/usb work.

Kern, Thanx, will do that now that I know abour pmount.

Damien

Offline

Board footer

Powered by FluxBB