[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: usbmount: works partially



* Nyizsnyik Ferenc (2007-05-22):
> On Tue, 22 May 2007 14:45:56 +0200
> Andre Berger <andre.berger@web.de> wrote:
> > * Kushal Kumaran (2007-05-22):
> > >  On 5/21/07, Andre Berger <andre.berger@web.de> wrote:
> > > > I'm on a near-vanilla 2.6.21.1 (usb-storage compiled-in), etch,
> > > > udev/usbmount. When the system is up and running, hotplugging of
> > > > my external USB disk and USB thumb drive works as expected. But
> > > > the device are not mounted automatically when the systems is
> > > > started and they are plugged in/powered on. Can anyone shed a
> > > > light on that? What would I have to change to have my USB
> > > > peripherals mounted automatically reliably, as they did on sarge?
> > > 
> > >  Add an entry to /etc/fstab?
> > 
> > I was thinking of something dynamic... 
> 
> Of course you were, but how is the system supposed to know where to
> mount your USB device? My fstab looks like this:
> 
> /dev/sda1	/media/usbdisk	vfat
> rw,user,noauto,noexec,nosuid,nodev,quiet,umask=077	0	0
> 
> And hotplugging works perfectly.

usbmount mounts the first available disk to /media/usb0, the second
to /media/usb1, etc. It offers "fixed" addresses like
/var/run/usbmount/TOSHIBA_TransMemory_1 aswell. 

I can't say for sure what devices are plugged in at startup, they're
well removable media. 

dmesg shows there's no /dev/sd* at startup, so usbmount doesn't know
there's a device to mount. So it looks like a kernel-related issue. I
don't want to give up my compiled-in usb-storage tough. Could this
possibly be related to my SCSI .config? (see below)

# dmesg
eth0: Setting full-duplex based on MII#1 link partner capability of 45e1.
eth0: no IPv6 routers present
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
# then I plugitin
usb 1-1: new high speed USB device using ehci_hcd and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver ub
usb-storage: device scan complete
scsi 0:0:0:0: Direct-Access     TOSHIBA  TransMemory      1.04 PQ: 0 ANSI: 0 CCS
SCSI device sda: 1001472 512-byte hdwr sectors (513 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00

# mount
/dev/sda1 on /media/usb0 type vfat (rw,noexec,nodev,noatime,gid=25,dmask=0007,fmask=0117)

# .config -- I just need SCSI emulation
CONFIG_BLK_DEV_IDESCSI=m
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=m
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=m
CONFIG_CHR_DEV_SCH=m
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_SCSI_HPTIOP=m


-André

-- 
May as well be hung for a sheep as a lamb
Linux Kernel 2.6/PPC for Linkstation/KuroBox/HG/HS from http://hvkls.dyndns.org



Reply to: