-
Junior Member
registered user
rickenbacherus, you seem very knowledgable, please help
I have the exact same problem with my SOYO Cigar Thumb drive, it's a 64MB piece. My system picks up the drive but I don't think it loads the driver for it. If I cat /proc/bus/usb/drivers/0.. or /1.., it shows that the drive is indeed detected.. but system does not translate from there to a "sda" or "sdb" device. How do I go about manually mounting or translating from there to a "sda" or "sdb" device?
I have tried 'echo "add single-device 0 0 1 0" > /proc/scsi/scsi' to no avail. Please advise on correct usage. Normally if driver is loaded for a device, specifically an emulated device, you can 'cat /proc/scsi/scsi' and it would list all devices loaded, including any cd-rom drives.
Please help. I've been stuck on this for over half a year and no one is able to assist. I lost hope. I now find you and I believe you can shed some light into this.
Thanks in advance.
-
Senior Member
registered user
I'm flattered but probably not anywhere near as knowledgeable as you may hope.
First do this:
modprobe usb-storage
then do:
lsmod
You need to see three things-
-usbcore
-usbohci -OR- usbuhci
-usb-storage.
If you've got them then on we go. Post the output of:
cdrecord -scanbus
Post back with results and we'll go from there.
-
Junior Member
registered user
lsmod listing
Hi, this is my complete lsmod listing.
usb-storage 54460 0 (unused)
autofs4 8724 1 (autoclean)
cloop-mod 23716 1
af_packet 13480 0 (autoclean)
agpgart 34752 0 (unused)
i810_audio 23112 1
ac97_codec 9992 0 [i810_audio]
soundcore 3396 2 [i810_audio]
3c59x 25808 2
serial 51908 0 (autoclean)
usb-uhci 21868 0 (unused)
usbcore 57120 1 [usb-storage usb-uhci]
apm 9644 1
rtc 6940 0 (autoclean)
cloop 5456 1
-
Junior Member
registered user
Listing of 'cat /proc/bus/usb/devices'
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=a000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=a400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=0aec ProdID=5010 Rev= 1.00
S: Manufacturer=
S: Product= USB Storage Device
S: SerialNumber=0AEC301000001A00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
-
Senior Member
registered user
Re: lsmod listing
Originally Posted by
tsaelee
Hi, this is my complete lsmod listing.
usb-storage 54460 0 (unused)
usb-uhci 21868 0 (unused)
usbcore 57120 1 [usb-storage usb-uhci]
This looks good-everything as it should be.
usb-storage is your mass storage driver.
usb-uhci is your hub driver.
usbcore- pretty self explainatory.
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=
From this we see that the device is indeed recognized. EXCELLENT! In case you are curious here is a little info on what you are seeing:
Cls=08(stor) <-this is the CLASS and indicates a mass storage device.
Sub=06 <-this is the SUBCLASS and 06 indicates a SCSI device.
Prot=50 <-this is the PROTOCOL and indicates bulk.
I would do two things here:
Try adding the following to:
/usr/src/linux/drivers/usb/storage/unusual_devs.h
**this path may be wrong as I am not at my Linbox right now**
UNUSUAL_DEV( 0x0aec, 0x5010, 0x0100, 0x0100,
"Soyo Technologies Corp.",
"Soyo CigarPro Flash Memory Drive",
US_SC_SCSI, US_PR_BULK, NULL,
US_FL_FIX_INQUIRY),
Have you ever successfully connected this device to any other machine or have you only tried it on your Linbox?
If you've never connected it then surely it isn't formatted. If it isn't formatted then I don't think you could mount it.
Using sfdisk, you can find out which drive letter it's been assigned and get the info you need to format it all at the same time.
sfdisk -l /dev/sda
sfdisk -l /dev/sbd
sfdisk -l /dev/sdc
.....and so on. I have used '/dev/sda1' throughout so just be sure to insert your drive letter if it is different. AND if you have any other SCSI disks make sure you don't format the wrong one or - well you get the picture.
So go ahead and format it (I think FAT16 or FAT32 should be fine)but make note of this: DOS bites us in the arse. Quote from man sfdisk-"DOS FORMAT expects DOS FDISK to clear the first 512 bytes of the data area of a parti*tion whenever a size change occurs." I interpret this to mean that if you use DOS fdisk then you'll have no problems. If you don't have access to a DOS machine that you can use to partition the drive then partition with sfdisk, reboot so the partition table is written to the disk and then:
dd if=/dev/zero of=/dev/sda1 bs=512 count=1
That should zero out the first 512 sectors.
Next make a directory that you want to mount the drive to (if you haven't already).
mkdir -p /mnt/pendrive
then mount it
mount -t auto /dev/sda1 /mnt/pendrive
Note that I suggest the 'auto' flag instead of specifying a file system. Hopefully that does it. Then just do a:
cd /mnt/pendrive
If you need assistance with symlinks here is a really cool program called 'devlabel' It claims to be able to keep track of symlinks and drive letter assignments for you.
http://www.lerhaupt.com/linux.html
I might have a few more ideas if these don't do it for you. If you do need more assistance check your documentation and see if the Vendor I.D. and Product I.D. are listed. Good luck!
-
Junior Member
registered user
Thank you, thank you!
That's the step I was missing. I will add those lines to unusual_devs.h file. Do I need to recompile? (I'm totally clueless)
Yes, I am currently using this thumb drive on a Dell laptop with SuSE 8.1 - it detects and mounts drive correctly.
Again, thank you.
-
Senior Member
registered user
I don't see why you'd need to recompile but I'm wrong at least 3 or 4 times a day. If you're already using it then you shouldn't need to reformat either (of course you probably knew that). Lemme know how it goes.
-
Junior Member
registered user
Didn't work
Inserted and triple check, still no 'sda' device.
Here's the 'dmesg':
usb-storage: act_altsetting is 0
usb-storage: id_index calculated to be: 89
usb-storage: Array length appears to be: 91
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xc7f98e74 Out: 0xc7f98e60 int: 0x00000000 (Period 0)
usb-storage: Found existing GUID 0xaec50100aec301000001a00
WARNING: USB Mass Storage data integrity not assured
USB Mass Stroage device found at 7
Hmm, it is interesting. If you can give any pointers that'll be great, if not that's a big deal. I may have to just give up.
What do you think if I copy unusual_devs.h file from my SuSE 8.1 system to the KNOPPIX system? Would that work?
-
Junior Member
registered user
ID's
What does 0x0100, 0x0100 mean in 'UNUSUAL_DEVS( 0x0aec, 0x5010, 0x0100, 0x0100, ?
thanks
-
Senior Member
registered user
What do you think if I copy unusual_devs.h file from my SuSE 8.1 system to the KNOPPIX system? Would that work?
I suppose there's only one way to find out. It would be interesting to see the difference. Without any reference to go by I really just guessed at that one I posted.I don't know the first thing about SuSE. If it doesn't work post these outputs:
cat /proc/scsi/scsi
cdrecord -scanbus
dmesg | grep scsi
and your fstab please. I wish I had a pendrive to experiment with but I have no need for one.
Similar Threads
-
By Cuddles in forum General Support
Replies: 9
Last Post: 12-30-2003, 03:07 AM
-
By nachral in forum General Support
Replies: 3
Last Post: 12-18-2003, 12:01 AM
-
By Doc in forum The Lounge
Replies: 2
Last Post: 06-26-2003, 01:11 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Western Digital 1TB Caviar WD1002FBYS Enterprise SATA Hard Disk Drives
$24.99
Western Digital 1TB WD Blue PC Desktop 3.5'' Internal CMR Hard Drive - WD10EARZ
$44.99
Western Digital WD1003FBYX 3.5” 7200 RPM 1TB SATA Hard Drive
$29.99
Western Digital 1TB WD Blue SA510 SATA SSD Internal 2.5”/7mm Cased - WDS100T3B0A
$89.99
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$19.99
1000 GB HHD 2.5" 1TB Mixed Brands Samsung WD HGST TOSHIBA, Tested Formatted
$14.90
2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive
$26.85
Samsung - Geek Squad Certified Refurbished 980 PRO 1TB Internal SSD PCIe Gen ...
$71.99
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$580.99
Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot
$703.19