Aligning MBR for ZFS boot help

Cody Ritts cr at caltel.com
Mon Mar 11 17:19:22 UTC 2013


Update --

fdisk WILL allow you to align without regards to drive geometry

It can only be done in interactive mode:
http://lists.freebsd.org/pipermail/freebsd-geom/2011-May/004780.html

> fdisk -i /dev/ada0
> Do you want to change our idea of what BIOS thinks ? [n]
> The data for partition 1 is:
> Do you want to change it? [n] y
> Supply a decimal value for "sysid (165=FreeBSD)" [165]
> Supply a decimal value for "start" [63] 2048
> Supply a decimal value for "size" [125045361] 125043376
> Correct this automatically? [n]
> Explicitly specify beg/end address ? [n]
> Are we happy with this entry? [n] y
> Do you want to change the active partition? [n]
> Should we write new partition table? [n] y
>
> gpart show ada0
> =>       63  125045361  ada0  MBR  (59G)
>          63       1985        - free -  (992k)
>        2048  125043376     1  freebsd  [active]  (59G)

Thanks,

Cody



On 3/10/13 9:19 PM, J David wrote:
> On Sun, Mar 10, 2013 at 8:39 PM, Warren Block <wblock at wonkity.com> wrote:
>
>> If FreeBSD had a way to turn off the strict enforcement of CHS values for
>> MBR, it would make that unnecessary.
>>
>
> The solution to that for a drive of this size *might* be to use fdisk
> instead of gpart to do the partitioning, and just flat out lie to it about
> the geometry when it asks you if you want to use something other than what
> it read.  (Which was also a lie anyway.)
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>


More information about the freebsd-fs mailing list