You are not logged in.

#1 2008-11-04 06:49:16

jcs
Member
Registered: 2008-10-08
Posts: 29

autofs: automount usb key in fluxbox

I've been following the wiki and here is my /etc/autofs/auto.media

cdrom -fstype=iso9660,ro,nodev,nosuid :/dev/cdrom
windows -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sda1
ubuntu -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sda5

cdrom and windows work fine on boot. i can't access ubuntu, not sure why? i would appreciate any input on that if i've made an obvious mistake.

but my main question is: i'm not sure how to automount my usb key. when i plus it into a usb slot on the front of my computer...

demsg gives:

usb 2-4: new high speed USB device using ehci_hcd and address 7
usb 2-4: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
scsi 6:0:0:0: Direct-Access     SanDisk  Cruzer Micro     0.4  PQ: 0 ANSI: 2
sd 6:0:0:0: [sdf] 1000944 512-byte hardware sectors (512 MB)
sd 6:0:0:0: [sdf] Write Protect is off
sd 6:0:0:0: [sdf] Mode Sense: 03 00 00 00
sd 6:0:0:0: [sdf] Assuming drive cache: write through
sd 6:0:0:0: [sdf] 1000944 512-byte hardware sectors (512 MB)
sd 6:0:0:0: [sdf] Write Protect is off
sd 6:0:0:0: [sdf] Mode Sense: 03 00 00 00
sd 6:0:0:0: [sdf] Assuming drive cache: write through
 sdf: sdf1
sd 6:0:0:0: [sdf] Attached SCSI removable disk
sd 6:0:0:0: Attached scsi generic sg6 type 0
usb-storage: device scan complete

Offline

#2 2008-11-15 15:01:31

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: autofs: automount usb key in fluxbox

It seems that your usbkey is the sdf device. So if you e.g. want to automount the first partition in it, add the follwing line to /etc7autofs/auto.media:

usbstick -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sdf1

Now you need to run the autofs service (add it in rc.conf, pr start it manually with '/etc/rc.d/autofs start'). Now the usbkey will be automounted to /media/usbstick each time you access it (through the shell or through a filemanager), and autounmounted after a short timeout when you stoop to access it.


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB