LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-30-2004, 11:22 AM   #1
Jeeper
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
More trouble with certain usb flash drives...


I am having trouble with a sony 256mb flash drive. My other flash drive made by universal smart drive works flawlessly in linux, so I know all the usb modules are getting loaded. I am using redhat 9 with kernel 2.4.20-28.9smp. I have a feeling it's a file table problem. With my working stick my fdisk table looks like this.

Disk /dev/sdb: 65 MB, 65536000 bytes
8 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 256 * 512 = 131072 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 500 63972+ b Win95 FAT32

here is the kernel entry when I insert the working stick

Mar 30 16:58:07 ywgsnr09 kernel: hub.c: new USB device 00:1d.2-1, assigned address 14
Mar 30 16:58:10 ywgsnr09 /etc/hotplug/usb.agent: Setup usb-storage for USB product 483/1307/130
Mar 30 16:58:11 ywgsnr09 kernel: SCSI device sdb: 128000 512-byte hdwr sectors (66 MB)Mar 30 16:59:50 ywgsnr09 kernel: hub.c: new USB device 00:1d.7-5, assigned address 12
Mar 30 16:58:11 ywgsnr09 kernel: usb-uhci.c: interrupt, status 3, frame# 249
Mar 30 16:58:11 ywgsnr09 kernel: sdb: Write Protect is off
Mar 30 16:58:11 ywgsnr09 kernel: sdb: sdb1

Now for the non working card.

Mar 30 16:59:50 ywgsnr09 kernel: hub.c: USB hub found
Mar 30 16:59:50 ywgsnr09 kernel: hub.c: 1 port detected
Mar 30 16:59:53 ywgsnr09 /etc/hotplug/usb.agent: Setup usbcore for USB product 54c/105/1
Mar 30 16:59:53 ywgsnr09 /etc/hotplug/usb.agent: Setup usbcore for USB product 54c/105/1
Mar 30 16:59:54 ywgsnr09 kernel: sdb : READ CAPACITY failed.
Mar 30 16:59:54 ywgsnr09 kernel: sdb : status = 1, message = 00, host = 0, driver = 08
Mar 30 16:59:54 ywgsnr09 kernel: Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
Mar 30 16:59:54 ywgsnr09 kernel: sdb : block size assumed to be 512 bytes, disk size 1GB.
Mar 30 16:59:54 ywgsnr09 kernel: sdb: test WP failed, assume Write Enabled
Mar 30 16:59:54 ywgsnr09 kernel: sdb: I/O error: dev 08:10, sector 0
Mar 30 16:59:54 ywgsnr09 kernel: I/O error: dev 08:10, sector 0
Mar 30 16:59:54 ywgsnr09 kernel: unable to read partition table
Mar 30 16:59:54 ywgsnr09 kernel: Device not ready. Make sure there is a disc in the drive.
Mar 30 16:59:54 ywgsnr09 kernel: Device not ready. Make sure there is a disc in the drive.
Mar 30 16:59:55 ywgsnr09 kernel: sdc : READ CAPACITY failed.
Mar 30 16:59:55 ywgsnr09 kernel: sdc : status = 1, message = 00, host = 0, driver = 08
Mar 30 16:59:55 ywgsnr09 kernel: Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
Mar 30 16:59:55 ywgsnr09 kernel: sdc : block size assumed to be 512 bytes, disk size 1GB.
Mar 30 16:59:55 ywgsnr09 kernel: sdc: test WP failed, assume Write Enabled
Mar 30 16:59:55 ywgsnr09 kernel: sdc: I/O error: dev 08:20, sector 0
Mar 30 16:59:55 ywgsnr09 kernel: I/O error: dev 08:20, sector 0
Mar 30 16:59:55 ywgsnr09 kernel: unable to read partition table
Mar 30 16:59:55 ywgsnr09 devlabel: devlabel service started/restarted
Mar 30 16:59:55 ywgsnr09 kernel: hub.c: new USB device 00:1d.7-5.1, assigned address 13
Mar 30 16:59:58 ywgsnr09 /etc/hotplug/usb.agent: Setup usb-storage for USB product 54c/8b/1
Mar 30 17:00:00 ywgsnr09 kernel: sdb : READ CAPACITY failed.
Mar 30 17:00:00 ywgsnr09 kernel: sdb : status = 1, message = 00, host = 0, driver = 08
Mar 30 17:00:00 ywgsnr09 kernel: Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
Mar 30 17:00:00 ywgsnr09 kernel: sdb : block size assumed to be 512 bytes, disk size 1GB.
Mar 30 17:00:00 ywgsnr09 kernel: sdb: test WP failed, assume Write Enabled
Mar 30 17:00:00 ywgsnr09 kernel: sdb: I/O error: dev 08:10, sector 0
Mar 30 17:00:00 ywgsnr09 kernel: I/O error: dev 08:10, sector 0
Mar 30 17:00:00 ywgsnr09 kernel: unable to read partition table
Mar 30 17:00:00 ywgsnr09 kernel: Device not ready. Make sure there is a disc in the

Mar 30 17:00:00 ywgsnr09 kernel: Device not ready. Make sure there is a disc in the drive.
Mar 30 17:00:00 ywgsnr09 kernel: SCSI device sdc: 512000 512-byte hdwr sectors (262 MB)
Mar 30 17:00:00 ywgsnr09 kernel: sdc: Write Protect is off
Mar 30 17:00:00 ywgsnr09 kernel: sdc: sdc1 sdc2 sdc4
Mar 30 17:00:00 ywgsnr09 devlabel: devlabel service started/restarted

So it looks like it scans the bus for the first card, then kicks the new card to the sdc bus. now have a look at the fdisk entry for the non working card


drive.Disk /dev/sdc: 262 MB, 262144000 bytes
9 heads, 56 sectors/track, 1015 cylinders
Units = cylinders of 504 * 512 = 258048 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 ? 3709864 4044566 84344761 69 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(68, 13, 10) logical=(3709863, 7, 22)
Partition 1 has different physical/logical endings:
phys=(288, 115, 43) logical=(4044565, 2, 15)
Partition 1 does not end on cylinder boundary.
/dev/sdc2 ? 3376031 7086113 934940732+ 73 Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(371, 114, 37) logical=(3376030, 6, 26)
Partition 2 has different physical/logical endings:
phys=(366, 32, 33) logical=(7086112, 8, 50)
Partition 2 does not end on cylinder boundary.
/dev/sdc3 ? 6 6 0 74 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(371, 114, 37) logical=(5, 0, 54)
Partition 3 has different physical/logical endings:
phys=(372, 97, 50) logical=(5, 0, 53)
Partition 3 does not end on cylinder boundary.
/dev/sdc4 5725558 5725662 26207+ 0 Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 0) logical=(5725557, 7, 33)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(5725661, 7, 31)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

Before all this I formatted the stick in win2k to use fat32. It shows up fine in 2k and is readable/writeable fine. Is there a way to force this device to only have 1 partition? whenever I try to mkfs -t vfat /dev/sdc it says

mkfs.vfat 2.8 (28 Feb 2001)
mkfs.vfat: Will not try to make filesystem on '/dev/sdc'

So I am not sure whats going on with this card. Any one have any ideas?

Ryan
 
Old 03-30-2004, 11:44 AM   #2
Jeeper
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
oh yeah forgot to say that the non working card is a sony USM256U2

Ryan
 
Old 04-01-2004, 12:11 AM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
Most of the error messages you are seeing are normal for an operational sony microvault, including the abnormal looking fdisk output. Though I do find it curious that hotplug tries to use usbcore first rather than usb-storage. Couple of things, first:

Can you mount the drive? Like this:

mount /dev/sdc /mnt

If you can mount it, then cd into the /mnt directory and see if you can see the microvault's files.

if not, what modules do you have loaded? After a reboot, use the lsmod command to give you a listing of your loaded modules before you insert the sony microdrive and then run it again afterwards. Also what distribution and version of linux are you using?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cutting power to usb flash drives hobylinux Linux - Hardware 5 08-09-2007 09:14 PM
Both USB Flash Drives already fried digiplaya Linux - Hardware 7 06-02-2006 05:22 PM
usb flash drives Mandrake 10.0 kostial Mandriva 2 06-19-2005 07:50 PM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 12:15 PM
USB Flash Drives Last Attacker Linux - Hardware 3 06-11-2004 03:36 PM


All times are GMT -5. The time now is 06:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration