Re: Overriding sector size on disks?

From: Allan Jude <freebsd_at_allanjude.com>
Date: Fri, 01 Nov 2013 23:12:22 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
On 2013-11-01 22:45, Adrian Chadd wrote:
> Hi!
>
> I have an odd problem. That, honestly, can't be that odd.
>
> I have a bunch of SATA disks that when plugged into the laptop
> directly, show up as 512 byte sectors. But if I plug it in via this
> iomega USB caddy, they show up as 4k sector devices.
>
> Because of this, partitions just plainly don't work.
>
> Has anyone faced this? Is there some trick to do to get these things
> to go back to being 512 byte sector devices so one can use them?
>
> Similarly, because they show up as 512 byte sector devices on
> macosx/linux, they can read/write NTFS/MSDOS partitions on the thing.
> But if I plug it into freebsd, it shows up as a 4k sector device and
> things plainly don't work.
>
> Thanks!
>
>
>
> -adrian
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
I use gnop -S 4096 to force 4k sectors when creating ZFS pools

I imagine you might be able to do gnop -S 512 to go the other way,
although I am not sure how to handle that for constant use.

- -- 
Allan Jude
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
iQIcBAEBAgAGBQJSdG2VAAoJEJrBFpNRJZKfGn0QAKcMLkJnLO9p+F8X0a443EaW
jWTZAMgkP8Uo/VwLCCqHBBtZxk5pyviEdqcTJvzVYv2x6FE/WE8HlyIXjbyzZNoa
zCU50plfSsxnk/G02TAuFRNmKPWvSw0oZVwvHC6+jwo0G9WIoVwupwNYdWLnfGCw
MuwysQi7MqlSqnDmx2naEPbbiNyPW0pWDnjHHy5bf01Jqao9uPtdGgG48/fGhYxb
+ViWGCVS+A5isMqDjVuW1QUetazu/1Kd1uycdWDGqTXfuzQ9/XBpubw7itYV9fn2
HL8ksQoEIye4516jEP/VLCGyElI9BJxW6QOxPGibpxZkyHV0DiMlR1yfLdV5rChb
1jTXwGYqfOtORKVCWOOUhoXeOvdZFnOLt8Lb7ckhoyNh2lh0v/pbuVAXC3KE0vSt
BwpgHYqATdlZrF2G5RmIWykxUgEVt4KJ2Fn0/Q6ZMB9nTMhnEGafhMOYd2xgi474
Z82y79c95wb07dchrWCNeBQydw/paNqR4BjN6toS7OvFRipf4IcjuaFeLGWAY0GW
jN6gTZXRLzpnYxgSqKVaNcaPces8tdestfzrfKn3E4+iuurrs/aerdsv6YsagV36
Poi2dPv4bWd7s26uK2YvBVTtGADydDHHSDd1J2BGJPooY2i2blfWsZ8gNDIzp1KV
WXPfz6tWcHifrUl/SGfZ
=lHXF
-----END PGP SIGNATURE-----
Received on Sat Nov 02 2013 - 02:12:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC