<div dir="ltr">I've never seen a regular usb stick report a 4KB logical sector size.  I can see an external hard drive connected via usb potentially reporting it because there's usually a usb/sata mux chip in those devices, and sometimes they even use a RAID mux in a degenerate configuration which might report a 4KB logical sector size (even if the HDD is 512 logical / 4KB physical).  But I've never seen a normal usb stick report a 4KB logical sector size.<div><br></div><div>-Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 9:38 AM, Tomohiro Kusumi <span dir="ltr"><<a href="mailto:kusumi.tomohiro@gmail.com" target="_blank">kusumi.tomohiro@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can see this with other fs too.<br>
I saw this with ext2 (I mean ext2 on dfly) on usb stick.<br>
<div class="HOEnZb"><div class="h5"><br>
2017-05-02 19:23 GMT+03:00 Matthew Dillon <<a href="mailto:dillon@backplane.com">dillon@backplane.com</a>>:<br>
> Interesting. The usb block device is actually reporting a sector size of<br>
> 4KB.  If you want to experiment a little, try changing the BBSIZE macro in<br>
> the ntfs module from 1024 to 4096 and recompiling it.  The BBSIZE macro is<br>
> in /usr/src/sys/vfs/ntfs/ntfs.h (in DragonFlyBSD).  If you are unsure how to<br>
> just recompile one module, then just recompile the whole kernel.<br>
><br>
> I think the other block operations in ntfs are based on a block size defined<br>
> in the filesystem volume header so there's a chance that this might solve<br>
> the issue.<br>
><br>
> -Matt<br>
><br>
> On Tue, May 2, 2017 at 7:36 AM, Rod Person <<a href="mailto:rodperson@rodperson.com">rodperson@rodperson.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I'm attempting to mount and external usb ntfs hard drive:<br>
>>   <Seagate Backup+  Desk 0406> Fixed Direct Access SCSI-6 device<br>
>><br>
>> In FreeBSD I mount it using the fuse driver, but being it isn't<br>
>> available in DragonFly, I'm just attempting with mount_ntfs. I get<br>
>> Invalid argument not matter how I try and mount it. I noticed the error:<br>
>><br>
>> dscheck(da8): b_bcount 1024 is not on a sector boundary (ssize 4096)<br>
>><br>
>> showing up in the dmesg and once when attempting to mount in the<br>
>> console before starting X. That error doesn't show if I try and mount<br>
>> in xterm, only writes to dmesg. I assume the the sector boundary is why<br>
>> I can't mount it, but is there any way around this?<br>
>><br>
>><br>
>> atomizer-dfly# mount_ntfs /dev/da8 /mnt/usb<br>
>> mount_ntfs: /dev/da8: Invalid argument<br>
>><br>
>> also tried /dev/da8s1 same result<br>
>><br>
>> atomizer-dfly# dmesg | grep dscheck<br>
>> dscheck(da8): b_bcount 1024 is not on a sector boundary (ssize 4096)<br>
>> dscheck(da8s1): b_bcount 1024 is not on a sector boundary (ssize 4096)<br>
>><br>
>><br>
>> atomizer-dfly# fdisk da8s1<br>
>> ******* Working on device /dev/da8s1 *******<br>
>> parameters extracted from device are:<br>
>> cylinders=45600 heads=255 sectors/track=63 (16065 blks/cyl)<br>
>><br>
>> Figures below won't work with BIOS for partitions not in cyl 1<br>
>> parameters to be used for BIOS calculations are:<br>
>> cylinders=45600 heads=255 sectors/track=63 (16065 blks/cyl)<br>
>><br>
>> Media sector size is 4096<br>
>> Warning: BIOS sector numbering starts with sector 1<br>
>> Information from DOS bootblock is:<br>
>> The data for partition 1 is:<br>
>> sysid 79,(QNX 4.2 Tertiary)<br>
>>     start 1936269394, size 1836016416 (7171939 Meg), flag d<br>
>>         beg: cyl 335/ head 10/ sector 2;<br>
>>         end: cyl 327/ head 84/ sector 13<br>
>> The data for partition 2 is:<br>
>> sysid 115,(unknown)<br>
>>     start 1917848077, size 544437093 (2126707 Meg), flag 70<br>
>>         beg: cyl 371/ head 114/ sector 37;<br>
>>         end: cyl 256/ head 101/ sector 36<br>
>> The data for partition 3 is:<br>
>> sysid 43,(unknown)<br>
>>     start 1818575915, size 544175136 (2125684 Meg), flag 43<br>
>>         beg: cyl 364/ head 116/ sector 50;<br>
>>         end: cyl 372/ head 65/ sector 44<br>
>> The data for partition 4 is:<br>
>> sysid 97,(Speed)<br>
>>     start 2844524554, size 54974 (214 Meg), flag 72<br>
>>         beg: cyl 372/ head 101/ sector 51;<br>
>>         end: cyl 269/ head 114/ sector 52<br>
>> --<br>
>> Rod<br>
>><br>
>> <a href="http://www.rodperson.com" rel="noreferrer" target="_blank">http://www.rodperson.com</a><br>
>><br>
>> He who knows himself to be one way and pretends it is another way is a<br>
>> thief who robs his own soul.<br>
>><br>
>>   The Mahabharata<br>
>>      Sakuntala 25<br>
><br>
><br>
</div></div></blockquote></div><br></div>