Here is the thread on this site that I was thinking of that mentions some things that may be involved with the automatic mounting of your device:
viewtopic.php?t=1912
To get a thumb drive to automatically mount it's more than just an entry in /etc/fstab. In fact you don't want an entry in the /etc/fstab for a few reasons that I can think of. 1) You are working with a USB device so when inserted it may not come up on the same device (/dev/sda1, /dev/sda2, etc) every time depending on if you have other devices plugged in when you plug that device in. So there has to be a daemon running that will detect when these things are plugged in, create the mount points and automatically mount the device.
On my system when I plug in a thumb drive or a camera or any other USB device that I can mount it will automatically create a mount point under "/media" and mount the device there. In order for this to happen there are several different pieces that work together on this. udev has to be properly configured to start with. The hal daemon is what will actually mount the device when it is inserted. If that is not running it will not get automatically mounted. Have you checked to see if it's running? On Fedora you would "chkconfig haldaemon on" and "service haldaemon start", not sure how it's started on Ubuntu. Finally once the device is mounted you may have some configuration in whatever desktop you are running as to whether or not something else happens after the mount (nautilus comes up in GNOME, etc). I would have thought that Ubuntu had all this configured properly out of the box unless you have some funky USB device. If you can mount it manually I would think hald should be able to detect and mount it automatically.
My suspicion is that your problem lies in the udev/hald area. After plugging the device in check the output of the "dmesg" command and look in /var/log/messages for any hints. When I stick my USB stick in I get this in /var/log/messages:
- Code: Select all
Apr 1 10:07:02 laplinux kernel: usb 4-3: new high speed USB device using ehci_hcd and address 2
Apr 1 10:07:02 laplinux kernel: usb 4-3: configuration #1 chosen from 1 choice
Apr 1 10:07:03 laplinux kernel: Initializing USB Mass Storage driver...
Apr 1 10:07:03 laplinux kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Apr 1 10:07:03 laplinux kernel: usbcore: registered new interface driver usb-storage
Apr 1 10:07:03 laplinux kernel: USB Mass Storage support registered.
Apr 1 10:07:08 laplinux kernel: scsi 0:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 2.16 PQ: 0 ANSI: 2
Apr 1 10:07:08 laplinux kernel: SCSI device sda: 2006673 512-byte hdwr sectors (1027 MB)
Apr 1 10:07:08 laplinux kernel: sda: Write Protect is off
Apr 1 10:07:08 laplinux kernel: sda: assuming drive cache: write through
Apr 1 10:07:08 laplinux kernel: SCSI device sda: 2006673 512-byte hdwr sectors (1027 MB)
Apr 1 10:07:08 laplinux kernel: sda: Write Protect is off
Apr 1 10:07:08 laplinux kernel: sda: assuming drive cache: write through
Apr 1 10:07:08 laplinux kernel: sda: sda1
Apr 1 10:07:08 laplinux kernel: sd 0:0:0:0: Attached scsi removable disk sda
Apr 1 10:07:08 laplinux kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Apr 1 10:07:08 laplinux hald: mounted /dev/sda1 on behalf of uid 500
Then Nautilus popped up to explore the newly mounted file system. When I selected "unmount" in Nautilus and pulled the stick back out I get this in my /var/log/messages:
- Code: Select all
Apr 1 10:10:10 laplinux hald: unmounted /dev/sda1 from '/media/disk-1' on behalf of uid 500
Apr 1 10:10:15 laplinux kernel: usb 4-3: USB disconnect, address 2
When normal local file systems are mounted via the normal fstab/mount method the mount information is entered in /etc/mtab. When something is mounted by the hal daemon the mount information is recorded in /media/.hal-mtab. In both cases the information is removed from the respective files when the file system is unmounted.