LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-05-2005, 06:45 AM   #1
iscurrah
Member
 
Registered: Jan 2005
Location: Szeged, Hungary
Distribution: Slackware 10
Posts: 35

Rep: Reputation: 15
Repeat mounting a VFAT device fails


Hi,

I've got two digital cameras (one Olympus, one Casio) that I access without problems after a fresh reboot (Slackware 10 btw, but with home compiled 2.6.10 kernel). After mounting, and unmounting them both, I am then unable to remount the first :-(

If I connect the first, an Olympus 5050, I get the following in my /var/log/messages file:
Code:
Feb  5 13:10:47 bob kernel: usb 1-1.2: new full speed USB device using uhci_hcd and address 4
Feb  5 13:10:47 bob usb.agent[3037]: ... no modules for USB product 7b4/105/100
Feb  5 13:10:47 bob kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Feb  5 13:10:52 bob scsi.agent[3076]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1.2/1-1.2:1.0/host0/target0:0:0/0:0:0:0 ??
Feb  5 13:10:52 bob kernel:   Vendor: OLYMPUS   Model: C5050Z            Rev: 1.00
Feb  5 13:10:52 bob kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Feb  5 13:10:53 bob kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  5 13:10:53 bob kernel: sda: assuming Write Enabled
Feb  5 13:10:53 bob kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  5 13:10:53 bob kernel: sda: assuming Write Enabled
Feb  5 13:10:53 bob kernel:  sda: sda1
Feb  5 13:10:53 bob kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Feb  5 13:10:54 bob udev[3096]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, added symlink 'oly_5050'
Feb  5 13:10:54 bob udev[3096]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, 'sda' becomes '%k'
Feb  5 13:10:54 bob udev[3096]: creating device node '/dev/sda'
Feb  5 13:10:54 bob udev[3104]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, added symlink 'oly_5050'
Feb  5 13:10:54 bob udev[3104]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, 'sda1' becomes '%k'
Feb  5 13:10:54 bob udev[3104]: creating device node '/dev/sda1'
I mount it 'mount -t vfat /dev/oly_5050 /mnt/olympus' without a problem.

Unmounting it and disconnecting, I get :
Code:
Feb  5 13:11:52 bob kernel: usb 1-1.2: USB disconnect, address 4
Feb  5 13:11:52 bob udev[3139]: removing device node '/dev/sda1'
Feb  5 13:11:52 bob udev[3147]: removing device node '/dev/sda'
This sequence I can perform several times without problems. When I then mount the second camera (Casio 100S) there are still no problems. After unmounting and disconnecting the Casio, I cannot mount the Olympus again (connection and device creating is fine):
Code:
Feb  5 13:12:04 bob kernel: usb 1-1.2: new full speed USB device using uhci_hcd and address 5
Feb  5 13:12:04 bob usb.agent[3204]: ... no modules for USB product 7b4/105/100
Feb  5 13:12:04 bob kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Feb  5 13:12:10 bob scsi.agent[3243]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1.2/1-1.2:1.0/host1/target1:0:0/1:0:0:0 ??
Feb  5 13:12:10 bob kernel:   Vendor: OLYMPUS   Model: C5050Z            Rev: 1.00
Feb  5 13:12:10 bob kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Feb  5 13:12:10 bob kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  5 13:12:10 bob kernel: sda: assuming Write Enabled
Feb  5 13:12:10 bob kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  5 13:12:10 bob kernel: sda: assuming Write Enabled
Feb  5 13:12:10 bob kernel:  sda: sda1
Feb  5 13:12:10 bob kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Feb  5 13:12:11 bob udev[3263]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, added symlink 'oly_5050'
Feb  5 13:12:11 bob udev[3263]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, 'sda' becomes '%k'
Feb  5 13:12:11 bob udev[3263]: creating device node '/dev/sda'
Feb  5 13:12:11 bob udev[3271]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, added symlink 'oly_5050'
Feb  5 13:12:11 bob udev[3271]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, 'sda1' becomes '%k'
Feb  5 13:12:11 bob udev[3271]: creating device node '/dev/sda1'
Feb  5 13:12:20 bob kernel: usb 1-1.1: new full speed USB device using uhci_hcd and address 6
Feb  5 13:12:20 bob kernel: usb 1-1.1: configuration #1 chosen from 2 choices
Feb  5 13:12:20 bob usb.agent[3283]: Keeping default configuration with /sys//devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1.1
Feb  5 13:12:20 bob usb.agent[3289]: ... no modules for USB product 7cf/1001/1000
Feb  5 13:12:20 bob kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Feb  5 13:12:25 bob scsi.agent[3333]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1.1/1-1.1:1.0/host2/target2:0:0/2:0:0:0 ??
Feb  5 13:12:25 bob kernel:   Vendor: Casio     Model: QV DigitalCamera  Rev: 1000
Feb  5 13:12:25 bob kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Feb  5 13:12:25 bob kernel: SCSI device sdb: 1030144 512-byte hdwr sectors (527 MB)
Feb  5 13:12:25 bob kernel: sdb: assuming Write Enabled
Feb  5 13:12:25 bob kernel: SCSI device sdb: 1030144 512-byte hdwr sectors (527 MB)
Feb  5 13:12:25 bob kernel: sdb: assuming Write Enabled
Feb  5 13:12:25 bob kernel:  sdb: sdb1
Feb  5 13:12:25 bob kernel: Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
Feb  5 13:12:26 bob udev[3353]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 2 applied, added symlink 'casio_100'
Feb  5 13:12:26 bob udev[3353]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 2 applied, 'sdb' becomes '%k'
Feb  5 13:12:26 bob udev[3353]: creating device node '/dev/sdb'
Feb  5 13:12:26 bob udev[3361]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 2 applied, added symlink 'casio_100'
Feb  5 13:12:26 bob udev[3361]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 2 applied, 'sdb1' becomes '%k'
Feb  5 13:12:26 bob udev[3361]: creating device node '/dev/sdb1'
Feb  5 13:12:47 bob udev[3389]: removing device node '/dev/sdb1'
Feb  5 13:12:47 bob udev[3397]: removing device node '/dev/sdb'
Feb  5 13:12:47 bob kernel: usb 1-1.1: USB disconnect, address 6
Feb  5 13:12:47 bob udev[3458]: removing device node '/dev/sda1'
Feb  5 13:12:47 bob kernel: usb 1-1.2: USB disconnect, address 5
Feb  5 13:12:47 bob udev[3466]: removing device node '/dev/sda'
Feb  5 13:12:56 bob kernel: usb 1-1.2: new full speed USB device using uhci_hcd and address 7
Feb  5 13:12:56 bob usb.agent[3525]: ... no modules for USB product 7b4/105/100
Feb  5 13:12:56 bob kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Feb  5 13:13:01 bob scsi.agent[3561]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1.2/1-1.2:1.0/host3/target3:0:0/3:0:0:0 ??
Feb  5 13:13:01 bob kernel:   Vendor: OLYMPUS   Model: C5050Z            Rev: 1.00
Feb  5 13:13:01 bob kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Feb  5 13:13:01 bob kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  5 13:13:01 bob kernel: sda: assuming Write Enabled
Feb  5 13:13:01 bob kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  5 13:13:01 bob kernel: sda: assuming Write Enabled
Feb  5 13:13:01 bob kernel:  sda: sda1
Feb  5 13:13:01 bob kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Feb  5 13:13:02 bob udev[3589]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, added symlink 'oly_5050'
Feb  5 13:13:02 bob udev[3589]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, 'sda1' becomes '%k'
Feb  5 13:13:02 bob udev[3589]: creating device node '/dev/sda1'
Feb  5 13:13:02 bob udev[3581]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, added symlink 'oly_5050'
Feb  5 13:13:02 bob udev[3581]: configured rule in '/etc/udev/rules.d/000-userdefined.rules' at line 1 applied, 'sda' becomes '%k'
Feb  5 13:13:02 bob udev[3581]: creating device node '/dev/sda'
Feb  5 13:13:06 bob kernel: VFS: Can't find a valid FAT filesystem on dev sda.
That last line occurs when I manually try to mount the Olympus camera. The Casio mounts and unmounts with no problems...

The /var/log/syslog file contains the following when the error occurs :
Code:
Feb  5 13:13:06 bob kernel: FAT: bogus number of reserved sectors
And 'dmesg' gives me a summary :
Code:
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda.
So the devices are correctly created and removed by Udev. The system works the first time, any ideas what I should be looking at ? I cannot mount the Olympus camera again until I've rebooted the PC, no matter what the status of the Casio is :-(

Hope you can help...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vfat mounting problem lamiczka Linux - Software 2 05-09-2005 01:30 PM
Need help mounting a VFat partition r/w frandres Linux - Newbie 7 01-17-2005 07:31 AM
mounting vfat fs mcd Linux - Newbie 11 08-25-2003 09:51 PM
Mounting Vfat paradoxlight Linux - Software 4 01-15-2002 06:29 PM
Mounting with Vfat garr71 Linux - General 4 11-29-2001 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration