SanDisk USB stick with FreeBSD 7

2009-03-13 Thread Polytropon
Hi,

I've gotten an USB stick with 8 GB which doesn not
work with FreeBSD 7-STABLE-20080811. I've googled
and found that this particular product might be
defective by factory.

Anyone has an idea how to make it accessible with
FreeBSD?

In order to have maximal abilities for data transfer,
this stick is msdosfs formatted. But no proper
device will occur if plugged in.

Some data here:

umass0: SanDisk Cruzer Micro, class 0/0, rev 2.00/2.00, addr 2 on uhub3
da0 at umass-sim0 bus 0 target 0 lun 0
da0: SanDisk Cruzer Micro 8.02 Removable Direct Access SCSI-0 device 
da0: 1.000MB/s transfers
da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present
umass0: at uhub3 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass0: detached

There is only /dev/da0.

% fdisk da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=977 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=977 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
start 44, size 15679396 (7655 Meg), flag 0
beg: cyl 0/ head 0/ sector 45;
end: cyl 975/ head 254/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

Sothe partition data can be read, why is there no
device file to access the partition? because of the
line da0: Attempt to query device size failed:
UNIT ATTENTION, Medium not present I think it's not
possible to get rid of this problem by reformatting
the stick.

I think about returning it to the vendor with a
hardcopy of dmesg which reveals that the stick is
defect. :-)


Thanks for any recommendations.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: SanDisk USB stick with FreeBSD 7

2009-03-13 Thread Polytropon
Oops, hit the wrong reply button...

On Fri, 13 Mar 2009 16:49:53 +0300, \Remorque\ odhia...@gmail.com wrote:
 On Fri, Mar 13, 2009 at 4:42 PM, Polytropon free...@edvax.de wrote:
 
  On Fri, 13 Mar 2009 16:33:23 +0300, \Remorque\ odhia...@gmail.com
  wrote:
   Sorry for top-posting!
 
  No problem.
 
 
 
   I used to have one of these and it worked with Windows, FreeBSD 6.x and
  even
   7.x until one day I broke it with my carelessness.
 
  When I got you correctly, this means that it *should* work with
  FreeBSD 7 without any magic done to the system? Please get me
  right: If I need some modification on my 7.x system to make it
  work, I still can't use the stick on my 6.x and 5.x systems, so
  it would be useless.
 
 
 It should (have) work(ed), yes, like this:
 
 mount_msdosfs /dev/da0s1 /mnt

Exactly, this is what I expected, and which worked with other
Windows formatted USB sticks in the past. But due to not
having /dev/da0s1... allthough fdisk da0 showed the partition...
no luck.



 But as you can see, yours has problems.. as appears in dmesg.

Okay, now I am sure to have something defective. I'll return it
with a dmesg hardcopy.





-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: SanDisk USB stick with FreeBSD 7

2009-03-13 Thread Wojciech Puchar

da0: SanDisk Cruzer Micro 8.02 Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present



this suggest defective device or USB controller/driver problems.

if you can - check it on another computer running other OS (linux, 
windoze)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: SanDisk USB stick with FreeBSD 7

2009-03-13 Thread Polytropon
On Fri, 13 Mar 2009 15:35:10 +0100 (CET), Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:
  da0: SanDisk Cruzer Micro 8.02 Removable Direct Access SCSI-0 device
  da0: 1.000MB/s transfers
  da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present
 
 
 this suggest defective device or USB controller/driver problems.

I think so, too. FreeBSD relies on correctly working devices,
and it checks for this. The strange thing was that I could
read the partition table via fdisk da0.

To be sure, I've tried the stick on the USB 1.0 controller
(message above) and on the USB 2.0 controller of the mainboard,
with similar result:

umass0: SanDisk Cruzer Micro, class 0/0, rev 2.00/2.00, addr 2 on 
uhub2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: SanDisk Cruzer Micro 8.02 Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: UNIT ATTENTION, Medium not 
present



 if you can - check it on another computer running other OS (linux, 
 windoze)

On Windows PC, the stick has been accessible, but Properties
showed a minimum disk space occupation (circa 300 kB) allthough
there was nothing on the stick.

Linux: Not invented here. :-)


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org