Hey,
Recently I bought myself a USB stick.
I was browsing the forums and read something about magicdev.
Emerged it, and it works for my cdrom, but is there a way it automounts
my usbstick (/dev/sda1) whenever I plug it in?
Thx!


Code: Select all
# $Id: auto.master,v 1.1 2000/08/08 17:53:33 achim Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/auto/short /etc/autofs/auto.short --timeout 1
/auto/long /etc/autofs/auto.long --timeout 30
Code: Select all
# $Id: auto.misc,v 1.2 2002/10/27 05:21:15 bcowan Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
floppy -fstype=auto :/dev/fd0
boot -fstype=ext2 :/dev/hda4
Code: Select all
# $Id: auto.misc,v 1.2 2002/10/27 05:21:15 bcowan Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=auto,ro :/dev/hdc
files -fstype=smbfs,username=XXX,password=XXX ://server/full
print -fstype=nfs print:/

No, but if you'll buy me one, ill be glad to test itvhkristof wrote:Are you positive this will work with a USB memory stick?
With magicdev my cdrom get automounted when I pop a cd in my drive,RedBeard0531 wrote:No, but if you'll buy me one, ill be glad to test itvhkristof wrote:Are you positive this will work with a USB memory stick?![]()
Seriosly though I think it will b/c it is designed to be a universal tool. note that mounts and unmouns are based on accessing the directory, not on plugging and unpluging,

There is something called supermount that would work with cd's, but it is considered by some to be a bad thing. The reson these wont work with the usb keychain is that a device is being created and destroyed. IIRC supermount never really mounts the disc, it accesses it seporately each time. magic dev apearently checks the status of the cdrom frequently, and doesnt cleanly unmount but that isnt nessesary with a ro cdrom.vhkristof wrote: With magicdev my cdrom get automounted when I pop a cd in my drive,
without having to access it.
Appreciate your help
Greetz kristof