Re: Non working USB stick in FreeBSD.

2015-11-04 Thread Ranjan1018 .
2015-11-02 13:43 GMT+01:00 Hans Petter Selasky <h...@selasky.org>:

> On 10/29/15 10:29, Ranjan1018 . wrote:
>
>> 2015-10-27 17:14 GMT+01:00 Hans Petter Selasky <h...@selasky.org>:
>>
>> On 10/27/15 17:05, Ranjan1018 . wrote:
>>>
>>> I have a 64GB USB stick that works correctly in Windows and Linux but not
>>>> in FreeBSD. The problem is during the write.
>>>>
>>>> In FreeBSD I have tested the stick with the command:
>>>>
>>>> # dd if=/dev/zero of=/dev/daX bs=1m
>>>>
>>>> and, after some time, I received these errors in i386 and amd64:
>>>>
>>>>
>>>> Hi,
>>>
>>>
>> Hi Hans,
>> thank you for your answer.
>>
>>
>>> Are you sure the disk is of the size advertised?
>>>
>>>
>> In Linux I obtain:
>>
>> $ uname -a
>>
>> Linux phenom2 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux
>>
>> $ sudo dd if=/dev/zero of=/dev/sdf obs=1M seek=8100
>>
>> dd: writing to `/dev/sdf': No space left on device
>>
>> 114485248+0 records in
>>
>> 55900+0 records out
>>
>> 58615398400 bytes (59 GB) copied, 20869.4 s, 2.8 MB/s
>>
>>
>>
>> How many 512-byte blocks are successfully written?
>>>
>>> In FreeBSD :
>>>
>>
>> # uname -a
>>
>> FreeBSD microserver 10.2-STABLE FreeBSD 10.2-STABLE #4 r289314M: Wed Oct
>> 14
>> 15:38:08 CEST 2015 root@microserver:/usr/obj/usr/src/sys/GENERIC
>> amd64
>>
>> # dd if=/dev/zero of=/dev/da0 bs=1m
>>
>> dd: /dev/da0: Input/output error
>>
>> 8140+0 records in
>>
>> 8139+0 records out
>>
>> 8534360064 bytes transferred in 3013.528065 secs (2832016 bytes/sec)
>>
>> # uname -a
>>
>> FreeBSD qbic 10.1-STABLE FreeBSD 10.1-STABLE #0: Sat May  9 07:53:21 CEST
>> 2015 root@ativ
>> :/usr/obj/i386.i386/root/TEMP/i386_SRC/src/sys/KSTACK_PAGES_4
>>   i386
>>
>> [root@qbic ~]# dd if=/dev/zero of=/dev/da2 bs=1m
>>
>> dd: /dev/da2: Input/output error
>>
>> 8140+0 records in
>>
>> 8139+0 records out
>>
>> 8534360064 bytes transferred in 3011.855356 secs (2833589 bytes/sec)
>>
>> # uname -a
>>
>> FreeBSD ativ 11.0-CURRENT FreeBSD 11.0-CURRENT #10 r289378M: Thu Oct 15
>> 21:57:57 CEST 2015 root@ativ:/usr/obj/usr/src/sys/GENERIC  amd64
>>
>> [root@ativ ~]# dd if=/dev/zero of=/dev/da1 bs=1m
>>
>> dd: /dev/da1: Input/output error
>>
>> 8140+0 records in
>>
>> 8139+0 records out
>>
>> 8534360064 bytes transferred in 3041.663436 secs (2805820 bytes/sec)
>>
>> [root@ativ ~/bin]# dd if=/dev/zero of=/dev/da1 bs=1m seek=12140
>>
>> dd: /dev/da1: Input/output error
>>
>> 69+0 records in
>>
>> 68+0 records out
>>
>> 71303168 bytes transferred in 35.119861 secs (2030280 bytes/sec)
>>
>> [root@ativ ~/bin]# dd if=/dev/zero of=/dev/da1 bs=1m seek=12200
>>
>> dd: /dev/da1: Input/output error
>>
>> 9+0 records in
>>
>> 8+0 records out
>>
>> 8388608 bytes transferred in 13.562622 secs (618509 bytes/sec)
>>
>>
> Hi,
>
> What does "dmesg" say after these errors? Maybe you have a bad sector?
>
> Did you try to add "conv=noerror" to dd ?
>
> Did you try "bs=65536" or "bs=512" ?
>
>
Hi Hans,

I have tested the USB stick with 3 different hardware on 3 different
operating systems but is not possible to write, without errors, on it.
Sorry for the noise.

In FreeBSD 10.2-RELEASE with f3write:
# f3write /media/da0s1
Free space: 62.48 GB
Creating file 1.h2w ... OK!
Creating file 2.h2w ... OK!
Creating file 3.h2w ... OK!
Creating file 4.h2w ... 6.39% -- 1.00 KB/s -- 14:58:04
6.39% -- 1.00 KB/s -- 17:40:25Assertion failed: (!fdatasync(fd)), function
measure, file f3write.c, line 241.
Abort trap (core dumped)
dmesg output:
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 9d 49 00 00 40 00
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Retrying command
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 9d 49 00 00 40 00
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Retrying command
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 9d 49 00 00 40 00
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Retrying command
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 9d 49 00 00 40 00
(da0:umass-sim0:0:0:0): CAM stat

Re: Non working USB stick in FreeBSD.

2015-10-29 Thread Ranjan1018 .
2015-10-27 17:14 GMT+01:00 Hans Petter Selasky <h...@selasky.org>:

> On 10/27/15 17:05, Ranjan1018 . wrote:
>
>> I have a 64GB USB stick that works correctly in Windows and Linux but not
>> in FreeBSD. The problem is during the write.
>>
>> In FreeBSD I have tested the stick with the command:
>>
>> # dd if=/dev/zero of=/dev/daX bs=1m
>>
>> and, after some time, I received these errors in i386 and amd64:
>>
>>
> Hi,
>

Hi Hans,
thank you for your answer.

>
> Are you sure the disk is of the size advertised?
>

In Linux I obtain:

$ uname -a

Linux phenom2 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux

$ sudo dd if=/dev/zero of=/dev/sdf obs=1M seek=8100

dd: writing to `/dev/sdf': No space left on device

114485248+0 records in

55900+0 records out

58615398400 bytes (59 GB) copied, 20869.4 s, 2.8 MB/s



> How many 512-byte blocks are successfully written?
>
> In FreeBSD :

# uname -a

FreeBSD microserver 10.2-STABLE FreeBSD 10.2-STABLE #4 r289314M: Wed Oct 14
15:38:08 CEST 2015 root@microserver:/usr/obj/usr/src/sys/GENERIC  amd64

# dd if=/dev/zero of=/dev/da0 bs=1m

dd: /dev/da0: Input/output error

8140+0 records in

8139+0 records out

8534360064 bytes transferred in 3013.528065 secs (2832016 bytes/sec)

# uname -a

FreeBSD qbic 10.1-STABLE FreeBSD 10.1-STABLE #0: Sat May  9 07:53:21 CEST
2015 root@ativ:/usr/obj/i386.i386/root/TEMP/i386_SRC/src/sys/KSTACK_PAGES_4
 i386

[root@qbic ~]# dd if=/dev/zero of=/dev/da2 bs=1m

dd: /dev/da2: Input/output error

8140+0 records in

8139+0 records out

8534360064 bytes transferred in 3011.855356 secs (2833589 bytes/sec)

# uname -a

FreeBSD ativ 11.0-CURRENT FreeBSD 11.0-CURRENT #10 r289378M: Thu Oct 15
21:57:57 CEST 2015 root@ativ:/usr/obj/usr/src/sys/GENERIC  amd64

[root@ativ ~]# dd if=/dev/zero of=/dev/da1 bs=1m

dd: /dev/da1: Input/output error

8140+0 records in

8139+0 records out

8534360064 bytes transferred in 3041.663436 secs (2805820 bytes/sec)

[root@ativ ~/bin]# dd if=/dev/zero of=/dev/da1 bs=1m seek=12140

dd: /dev/da1: Input/output error

69+0 records in

68+0 records out

71303168 bytes transferred in 35.119861 secs (2030280 bytes/sec)

[root@ativ ~/bin]# dd if=/dev/zero of=/dev/da1 bs=1m seek=12200

dd: /dev/da1: Input/output error

9+0 records in

8+0 records out

8388608 bytes transferred in 13.562622 secs (618509 bytes/sec)

Regards,
Maurizio
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Non working USB stick in FreeBSD.

2015-10-27 Thread Ranjan1018 .
I have a 64GB USB stick that works correctly in Windows and Linux but not
in FreeBSD. The problem is during the write.

In FreeBSD I have tested the stick with the command:

# dd if=/dev/zero of=/dev/daX bs=1m

and, after some time, I received these errors in i386 and amd64:

# uname -a

FreeBSD qbic 10.1-STABLE FreeBSD 10.1-STABLE #0: Sat May  9 07:53:21 CEST
2015 root@ativ:/usr/obj/i386.i386/root/TEMP/i386_SRC/src/sys/KSTACK_PAGES_4
 i386

dmesg output:

ugen2.4:  at usbus2

umass2:  on usbus2

umass2:  SCSI over Bulk-Only; quirks = 0xc100

umass2:4:2:-1: Attached to scbus4

da2 at umass-sim2 bus 2 scbus4 target 0 lun 0

da2:  Removable Direct Access SPC-4 SCSI device

da2: Serial Number ABCDEF001B61

da2: 40.000MB/s transfers

da2: 64000MB (131072000 512 byte sectors: 255H 63S/T 8158C)

da2: quirks=0x2

(da2:umass-sim2:2:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da2:umass-sim2:2:0:0): CAM status: CCB request completed with an error

(da2:umass-sim2:2:0:0): Retrying command

(da2:umass-sim2:2:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da2:umass-sim2:2:0:0): CAM status: CCB request completed with an error

(da2:umass-sim2:2:0:0): Retrying command

(da2:umass-sim2:2:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da2:umass-sim2:2:0:0): CAM status: CCB request completed with an error

(da2:umass-sim2:2:0:0): Retrying command

(da2:umass-sim2:2:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da2:umass-sim2:2:0:0): CAM status: CCB request completed with an error

(da2:umass-sim2:2:0:0): Retrying command

(da2:umass-sim2:2:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da2:umass-sim2:2:0:0): CAM status: CCB request completed with an error

(da2:umass-sim2:2:0:0): Error 5, Retries exhausted

# uname -a

FreeBSD microserver 10.2-STABLE FreeBSD 10.2-STABLE #4 r289314M: Wed Oct 14
15:38:08 CEST 2015 root@microserver:/usr/obj/usr/src/sys/GENERIC  amd64

dmesg output:

ugen0.4:  at usbus0

umass0:  on usbus0

umass0:  SCSI over Bulk-Only; quirks = 0xc100

umass0:7:0:-1: Attached to scbus7

da0 at umass-sim0 bus 0 scbus7 target 0 lun 0

da0:  Removable Direct Access SPC-4 SCSI device

da0: Serial Number ABCDEF001B61

da0: 40.000MB/s transfers

da0: 64000MB (131072000 512 byte sectors: 255H 63S/T 8158C)

da0: quirks=0x2

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Error 5, Retries exhausted

# uname -a

FreeBSD ativ 11.0-CURRENT FreeBSD 11.0-CURRENT #10 r289378M: Thu Oct 15
21:57:57 CEST 2015 root@ativ:/usr/obj/usr/src/sys/GENERIC  amd64

dmesg output:

ugen1.3:  at usbus1

umass0:  on usbus1

umass0:  SCSI over Bulk-Only; quirks = 0xc100

umass0:3:0: Attached to scbus3

da0 at umass-sim0 bus 0 scbus3 target 0 lun 0

da0:  Removable Direct Access SPC-4 SCSI device

da0: Serial Number ABCDEF001B61

da0: 40.000MB/s transfers

da0: 64000MB (131072000 512 byte sectors)

da0: quirks=0x2

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Retrying command

(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 fe 58 80 00 00 80 00

(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error

(da0:umass-sim0:0:0:0): Error 5, Retries exhausted

What can I do ?


Thanks in advance,

Maurizio
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"