[SOLVED] Problem at Mounting FlashDisk/External Drive

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Rayaldi
Level 1
Level 1
Posts: 6
Joined: Tue Oct 16, 2012 9:16 am
Location: Bandung, Indonesia

[SOLVED] Problem at Mounting FlashDisk/External Drive

Post by Rayaldi »

Hello, I really a newbie here, so I still don't know what to do if I have a problem on Linux, normally I can solve it by googling, but this time is different, and here is my problem?

After I Installed linux I can Mount FlashDisk/External Drive normally, but for some reason that I don't know why, I had an error:

Code: Select all

Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sdc1 on /media/sdc1
can someone please help me?
Last edited by Rayaldi on Wed Nov 07, 2012 9:05 am, edited 1 time in total.

stratus_ss
Level 4
Level 4
Posts: 270
Joined: Fri May 25, 2012 5:22 pm

Re: Problem at Mounting FlashDisk/External Drive

Post by stratus_ss »

it sounds like /media has improper permissions

This is what the permissions look like for me and I mount fine:

Code: Select all

stratus@stratus-laptop ~ $ ls -ld /media/
drwxr-xr-x 2 root root 4096 Oct 23 14:28 /media/
You can see that it is set 775 (or read, write excute for the owner, read and execute for the group and read and execute for the world)

Rayaldi
Level 1
Level 1
Posts: 6
Joined: Tue Oct 16, 2012 9:16 am
Location: Bandung, Indonesia

Re: Problem at Mounting FlashDisk/External Drive

Post by Rayaldi »

stratus_ss wrote:it sounds like /media has improper permissions

This is what the permissions look like for me and I mount fine:

Code: Select all

stratus@stratus-laptop ~ $ ls -ld /media/
drwxr-xr-x 2 root root 4096 Oct 23 14:28 /media/
You can see that it is set 775 (or read, write excute for the owner, read and execute for the group and read and execute for the world)
I got this output

Code: Select all

drwxr-xr-x 7 root root 4096 Oct 24 12:27 /media/
I actually can use

Code: Select all

sudo mount /dev/sdc1 /media/sdc1
and

Code: Select all

sudo umount /dev/sdc1 /media/sdc1
to mount and unmount, but it's uncomfortable have to use that command every I plug External Drive, is there any solution to fix it?

stratus_ss
Level 4
Level 4
Posts: 270
Joined: Fri May 25, 2012 5:22 pm

Re: Problem at Mounting FlashDisk/External Drive

Post by stratus_ss »

you can try a couple of work arounds

You can either open the permissions up (777)

Or you can make your user "own" the folder.

So here is how to do both:

In order to own the folder yourself instead of root:

Code: Select all

sudo chown stratus:stratus /media
Substitute your own user for stratus (thats me :D )

Why do this method: Because it is technically a better fix than opening up that directory to be world writeable. You wouldn't want some stray process to cause you issues.

I have noted that there are others with your Error which may be caused by the Files (Nautilus) and not the actual folder itself

Rayaldi
Level 1
Level 1
Posts: 6
Joined: Tue Oct 16, 2012 9:16 am
Location: Bandung, Indonesia

Re: Problem at Mounting FlashDisk/External Drive

Post by Rayaldi »

thanks for your answer, I've done your command like:

Code: Select all

sudo chown rayaldi:rayaldi /media
but nothing happened in the terminal nor the File Manager, am I miss some step or something like that? Or this problem come because my laptop is strange? :|

Rayaldi
Level 1
Level 1
Posts: 6
Joined: Tue Oct 16, 2012 9:16 am
Location: Bandung, Indonesia

Re: Problem at Mounting FlashDisk/External Drive

Post by Rayaldi »

Thanks for causing trouble, I finally solved it by editing the fstab

Code: Select all

gksu gedit /etc/fstab
I mentioned that I used psydm to managing my HardDrive mounting, but that's my problem start, I finally uninstall it and removing

Code: Select all

/dev/sdc1 0 0 /media/sdc1 ntfs defaults
from fstab and the problem solved, thanks again for your answer :D

Post Reply

Return to “Newbie Questions”