You are not logged in.

#1 2008-02-07 02:26:53

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

[SOLVED] how to configure to show a icon when mount a device ?

Hi,

I installed autofs by wiki arch linux and when I plug my camera, dont shows a icon in desktop of device mounted, what I need setup to make it work like ubuntu ?

[solano@localhost ~]$ cat /etc/autofs/auto.master
/media2 /etc/autofs/auto.media
[solano@localhost ~]$ cat /etc/autofs/auto.media 
cdrom -fstype=auto,ro,nodev,nosuid :/dev/cdrom
floppy -fstype=auto,async,nodev,nosuid,umask=000 :/dev/fl
usbstick -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sdc1

Last edited by solanoalves (2008-02-13 21:53:47)


big_smile How did you know? I love this song! big_smile

Offline

#2 2008-02-07 02:38:05

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: [SOLVED] how to configure to show a icon when mount a device ?

What desktop environment are you using?


/path/to/Truth

Offline

#3 2008-02-07 03:18:07

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

Gnome, sorry I always forget.


big_smile How did you know? I love this song! big_smile

Offline

#4 2008-02-07 04:00:23

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

I think you have to run the HAL daemon.
http://wiki.archlinux.org/index.php/HAL

Not sure about autofs (since I've never used it), but AFAIK the desktop icons on gnome are created only when HAL is running.

Last edited by venox (2008-02-07 04:18:33)

Offline

#5 2008-02-07 20:28:42

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

I setup HAL through wiki however it mount all devices and in wiki dont works else the xml codes to mount only removable devices, can you help me?
I add my user to storage and optical groups but when i plug my digital camera shows me a window saying that I haven't privileges to mount it.

Last edited by solanoalves (2008-02-07 20:36:16)


big_smile How did you know? I love this song! big_smile

Offline

#6 2008-02-07 21:00:16

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

For cameras you need to be part of the "camera" group. I think you also need libgphoto2, but I could be wrong.

Offline

#7 2008-02-07 21:22:59

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

still show the privilege message when i plug my camera

Last edited by solanoalves (2008-02-07 21:24:42)


big_smile How did you know? I love this song! big_smile

Offline

#8 2008-02-07 21:43:57

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

What are the permission settings on the device you're trying to mount?
If they're wrong (you don't have read/write permission) you'll have to check your udev settings to fix them (my guess).
These wiki pages might be useful to help you creating new udev rules:
http://wiki.archlinux.org/index.php/Udev
http://wiki.archlinux.org/index.php/Usi … o_a_device

Also, you don't have to use autofs to automatically mount your USB devices, you can just create udev rules to mount/umount when you plug/unplug a device (and if you're using Gnome, you can just mount/umount the device with a few clicks [actually I'm not a big fan of "auto-stuff" or gnome]).

Offline

#9 2008-02-07 22:36:41

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

Its right my /etc/fstab ??

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /mnt/cdrom   iso9660   ro,user,noauto,unhide   0      0
/dev/dvd /mnt/dvd   udf   ro,user,noauto,unhide   0      0
/dev/fd0 /mnt/fd0   vfat   user,noauto   0      0
/dev/sda3 / ext3 defaults 0 1
/dev/sda5 swap swap defaults 0 0
/dev/sdc1 /media/device vfat defaults 0 1

I dont knew what I had to put in "pass" on line /dev/sdc1 then I put 1, and i dont know what had to put in dump..


big_smile How did you know? I love this song! big_smile

Offline

#10 2008-02-08 16:32:29

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

Why is your pass 1? You can just leave both dump and pass as 0. You should try something like this:

/dev/pendrive /mnt/pendrive vfat rw,user,noauto,noatime,utf8=true 0 0

Don't use devices like /dev/sdc1 on your fstab, these device names might vary depending on what (and how many) devices you have plugged. Try mapping a new entry to the device (like /dev/pendrive) following the instructions of the second link on my previous post ("Using udev to map multiple entries to a device").

Offline

#11 2008-02-08 16:52:26

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: [SOLVED] how to configure to show a icon when mount a device ?

If you want it done the ubuntu way;
http://bbs.archlinux.org/viewtopic.php?id=43384


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#12 2008-02-08 22:40:11

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

I havent /dev/pendrive, just:
[solano@localhost ~]$ ls /dev/p
parport0  port      ppp       psaux     ptmx      pts/


big_smile How did you know? I love this song! big_smile

Offline

#13 2008-02-08 22:48:06

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

Like I said, you have to map it via udev rules.

Offline

#14 2008-02-08 23:08:33

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

its done venox, now anybody knows how I make to mount when I plug my usb device? hal/dbus mount all devices in desktop sad

Thanks venox

My fstab now:

[solano@localhost ~]$ cat /etc/fstab 
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /mnt/cdrom   iso9660   ro,user,noauto,unhide   0      0
/dev/dvd /mnt/dvd   udf   ro,user,noauto,unhide   0      0
/dev/fd0 /mnt/fd0   vfat   user,noauto   0      0
/dev/sda3 / ext3 defaults 0 1
/dev/sda5 swap swap defaults 0 0
/dev/usbdrive   /mnt/usbdrive   vfat  rw,noauto,group,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111    0   0

Last edited by solanoalves (2008-02-08 23:12:28)


big_smile How did you know? I love this song! big_smile

Offline

#15 2008-02-08 23:21:10

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

Check the Udev Tricks section: http://wiki.archlinux.org/index.php/Udev#Udev_Tricks

ps.: dmask=000,fmask=111 is really evil.

Offline

#16 2008-02-08 23:22:29

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

Why venox?


big_smile How did you know? I love this song! big_smile

Offline

#17 2008-02-09 21:35:02

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

Because everyone will have permission to read/write any file (and directory).

Last edited by venox (2008-02-09 21:35:25)

Offline

#18 2008-02-13 21:53:29

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [SOLVED] how to configure to show a icon when mount a device ?

Worked! I dont know how but when I plug my camera it mounted in /mnt/. I guess that was the UDEV setup that I did.
Thanks for help guys!


big_smile How did you know? I love this song! big_smile

Offline

#19 2008-04-06 18:44:24

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

Re: [SOLVED] how to configure to show a icon when mount a device ?

venox wrote:

Because everyone will have permission to read/write any file (and directory).

I kind of want that on my usb pendrives.  It's worth noting that it's dangerous, but if the filesystem is vfat, what other options do you really have if you want transparent functionality?


fffft!

Offline

Board footer

Powered by FluxBB