How to change an USB stick from SCSI::0 to SCSI::4?
Thomas Milius (126) 44 posts |
How can I change an existing USB Stick which identifies itself as SCSI::0 in such a way that it is identifying itself as SCSI::4? Has it to do with the disc file type and if yes how can I change this without reformatting the stick. Many thanks in advance. |
Jeff Doggett (257) 234 posts |
I don’t think it’s possible. The drive will identify itself as either a “Hard disc” or a “removable disc”. The former gets drive number 4-7 and the latter 0-3. |
Chris Hall (132) 3554 posts |
On a Beagleboard XM I tried plugging into the micro USB socket (because a hard disc plugged in there identified as :4) but a pen drive will appear there as :0. |
Steffen Huber (91) 1953 posts |
As Jeff correctly says – it depends on the hardware. SCSIFS looks at the SCSI device type, and if it is 0 (fixed drive) it gets 4-7, if it is 1 (removable drive) it gets 0-3. It does not depend on the USB socket or anything. Thinking forward (supporting more (arbitrary?) numbers of devices per FS), we might have to implement some kind of device-drive mapping scheme, or at least we need a new method to specify the boot drive. |
Thomas Milius (126) 44 posts |
Sorry Steffen I have to disagree. There must be a trick but I don’t know which one. I have one USB Stick however formatted (I can’t renember hwo I manged it to do so) in such a way that is identifying itself as SCSI::4 independently whether I am pluging it into my BiKo or my regular BB xM. The other sticks I formatted will always identiy theirselves as SCSI::0. I have to setup Configure SCSIFSDrive either to 0 or to 4 accordingly to get a proper booting. The USB classes are the same for the devices. So there must be some Bits written by a tool or formatter which are controlling this however. |
Jeffrey Lee (213) 6048 posts |
Well like it or not, the code in SCSIFS (ScanDrives2 in SCSIFS.s.ScisFs05) is clearly checking the ‘removable’ bit in the SCSI INQUIRY response and using that to decide whether the drive should be treated as a floppy or hard disc. |
Thomas Milius (126) 44 posts |
Thanks for the remark. This means it is pure random and depends on the stick used. If this stick identifies itself not as removeable (which of course might cause trouble if used as a stick and not as a harddisc like in my cases) it is regarded as a harddisc. This leads to the interesting question whether removeable drives are internally handled in another way for I always had loss of data with the SCSI::4 stick even didn’t wrote anything or only very few temp files and closed the system correctly but not with the other ones. Many thanks for the replies. |
Chris Evans (457) 1614 posts |
The stick that is reporting as SCSI::4 (fixed) could incorrectly be reporting itself as ‘fixed’! I think I’ve heard of that before. |
Trevor Johnson (329) 1645 posts |
Don’t they need dismounting twice or something funny? |