You are not logged in.

#1 2010-07-25 04:18:13

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

[Solved] pcmanfm mount puts an "_" after the directory

My external drive gets plugged and unplugged a lot.  I always "mount /dev/sdb1 /media/book", but sometimes it is simpler/faster to just click on it in pcmanfm.  It displays it as "book" in the left pane and mounts fine w/proper permissions (strangely enough), but it mounts it to "/media/book_" so mpd, rtorrent can't see it.  Is there a way to change that?  It's not exactly pressing, but it is annoying

Last edited by pw_f100_220 (2010-07-26 04:08:34)


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#2 2010-07-25 04:21:33

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: [Solved] pcmanfm mount puts an "_" after the directory

If you usually mount manually to /media/book, you probably created that directory manually yourself. Now PCmanFM comes along and tries to mount your drive at /media/book, but finds that there is already a directory of that name -> hence the "_" at the end.

Offline

#3 2010-07-25 04:30:20

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

Re: [Solved] pcmanfm mount puts an "_" after the directory

good point...(and quick reply)

so if/when i delete the directory /media/book, i will then be unable to mount manually without recreating it...which won't work because I don't always startx...

any compromise here?  i could live without it if pcmanfm didn't display it so eagerly waiting for me to click on it....blasted options.


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#4 2010-07-25 04:33:14

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

Re: [Solved] pcmanfm mount puts an "_" after the directory

i suppose there are ways to automount, but i have always preferred doing it myself just so i know it worked...instead of fdisk -l everytime or opening pcmanfm and clicking on the thing anyway!

(and last time I tried automounting was in my ubuntu days...without much luck)

Last edited by pw_f100_220 (2010-07-25 04:34:08)


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#5 2010-07-25 04:42:09

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: [Solved] pcmanfm mount puts an "_" after the directory

Automounting is really easy and works great.
Have a look at http://wiki.archlinux.org/index.php/Ude … SB_devices

Offline

#6 2010-07-25 05:22:09

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved] pcmanfm mount puts an "_" after the directory

When I pull the plug on my usb drive, the udev rules take care of removing the directories. That way I don't have to worry about any kluge


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2010-07-25 09:10:11

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [Solved] pcmanfm mount puts an "_" after the directory

Have a fstab entry for that disk. Pcmanfm will use it.

Offline

#8 2010-07-26 03:49:38

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

Re: [Solved] pcmanfm mount puts an "_" after the directory

I tried fstab:

LABEL=book  /media/book ext3  defaults  0 0

it mounted fine if i plugged it in before boot (as expected), but if I plug it in after boot (which will happen often), pcmanfm can no longer mount it giving the root privileges excuse. 

I'll look into it further, but ideas are appreciated.  I may just take this as a sign telling me to keep mounting with "mount"....which I can live with

Thanks for all the help so far, but I'm still digging


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#9 2010-07-26 04:08:02

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

Re: [Solved] pcmanfm mount puts an "_" after the directory

looks like adding the file "/etc/udev/rules.d/11-media-by-label-auto-mount.rules" as per the Udev wiki (thanks JackH79) worked like a charm.  It's just checking to make sure it mounted...which isn't bad.  I might change it to make xterm pop up and ask for the "passcode"

Thanks everyone!


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#10 2010-07-26 10:22:51

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [Solved] pcmanfm mount puts an "_" after the directory

pw_f100_220 wrote:

I tried fstab:

LABEL=book  /media/book ext3  defaults  0 0

it mounted fine if i plugged it in before boot (as expected), but if I plug it in after boot (which will happen often), pcmanfm can no longer mount it giving the root privileges excuse.

It's not an excuse, you need to tell the system that users are allowed to mount:

LABEL=book  /media/book ext3  defaults,users  0 0

"man mount" is your friend smile

Last edited by Gusar (2010-07-26 10:24:05)

Offline

Board footer

Powered by FluxBB