You are not logged in.

#1 2004-10-20 20:24:21

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

tip: usb automount

1. dl and install http://ccomb.free.fr/wiki/wakka.php?wik … ageEnglish
2. to allow all users use the drive, add in /etc/dev.d/default/updfstab.dev before the last 'fi' :

mount $DEVNAME -o umask=0660

this is almost windows (yack yack tfu tfu) similar functionality, ie, a usb device is mounted automatically and appears in konqueror when i plug it. only difference is i still need to umount it before unplugging it. this behavior can be changed using autofs and configuring it to umount after 15 sec of idle, etc. i dont think this is a good way, so i stick to umount manually until i find a better solution.

have fun

Offline

#2 2004-12-22 10:39:03

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: tip: usb automount

can you supermount usb pen devices?  i'm guessing no...

Offline

#3 2004-12-22 12:57:33

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: tip: usb automount

you can submount usb

Offline

#4 2004-12-22 17:38:47

tmadhavan
Member
From: Wales :D
Registered: 2004-03-26
Posts: 441

Re: tip: usb automount

What's submount?

And I've tried using supermount to mount my usb mp3 player, but it doesn't always get assigned the same address, could be sda, sda2, whatever. Any ideas?

T

Offline

#5 2004-12-22 20:28:16

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: tip: usb automount

submount:
http://bbs.archlinux.org/viewtopic.php?t=5537
http://submount.sf.net

pacman -Ss submount
punkrockguy318/submount 0.9-3
    System for automatic mounting/unmounting of removable devices (Kernel 2.6.9).

Or you can build it yourself using abs (it might also be necessary if you are using different or customized kernel).

I think you can use udev rules to alias sda devices to some custom name (like /dev/usbpen).

http://www.reactivated.net/udevrules.php
http://forums.gentoo.org/viewtopic.php? … +sda1+sda2
http://gentoo-wiki.com/HOWTO_USB_Mass_Storage_Device

There are a lot more examples - just use google. BTW I don't have usbpen so I can't provide you with any ready configs.

All of this assuming you are running 2.6.9 with udev and you've already read arch wiki pages about udev and usb.

Offline

#6 2005-01-08 12:50:41

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: tip: usb automount

what fs= do you use with submount for a usb pen then?  I am baffled i looked everywhere!

what ever i try i get no medium found sad

Offline

#7 2005-01-08 14:42:01

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: tip: usb automount

I think this should be vfat. If you already tried this maybe it's not an fs type problem but it's about device name (sda vs sda1 etc.) or syntax error ?
http://forums.suselinuxsupport.de/index … topic=1882
http://www.linuxquestions.org/questions … did=227670

Offline

#8 2005-01-09 09:46:51

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: tip: usb automount

i have udev to always make the pen /dev/usbpen - which should avoid the probelm you have suggested right?

i'll post all my details later smile

Offline

#9 2005-01-09 12:46:14

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: tip: usb automount

dibblethewrecker wrote:

i have udev to always make the pen /dev/usbpen - which should avoid the probelm you have suggested right?

Right.

If you tried vfat then it's time for a stupid question:
Are you sure that your usbpen is already formated ? :-)
Can you use it with other computers/systems?

Offline

#10 2005-02-16 17:53:18

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: tip: usb automount

i still need to umount it before unplugging it

if you pass the sync parameter to the mount options you wont have to umount it as everything will get written when unplugging

Offline

Board footer

Powered by FluxBB