You are not logged in.
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)
How did you know? I love this song!
Offline
What desktop environment are you using?
/path/to/Truth
Offline
Gnome, sorry I always forget.
How did you know? I love this song!
Offline
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
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)
How did you know? I love this song!
Offline
still show the privilege message when i plug my camera
Last edited by solanoalves (2008-02-07 21:24:42)
How did you know? I love this song!
Offline
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
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..
How did you know? I love this song!
Offline
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
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
I havent /dev/pendrive, just:
[solano@localhost ~]$ ls /dev/p
parport0 port ppp psaux ptmx pts/
How did you know? I love this song!
Offline
its done venox, now anybody knows how I make to mount when I plug my usb device? hal/dbus mount all devices in desktop
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)
How did you know? I love this song!
Offline
Check the Udev Tricks section: http://wiki.archlinux.org/index.php/Udev#Udev_Tricks
ps.: dmask=000,fmask=111 is really evil.
Offline
Why venox?
How did you know? I love this song!
Offline
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!
How did you know? I love this song!
Offline
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