Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2012 20:02:53 +0200
From:      rank1seeker@gmail.com
To:        "John Baldwin" <jhb@freebsd.org>, hackers@freebsd.org
Subject:   Re: BUG: REL 9.0 - 'boot0cfg' fails with providers of non 512 byte sectorsize
Message-ID:  <20120326.180253.607.2@DOMY-PC>
In-Reply-To: <201203261017.41420.jhb@freebsd.org>
References:  <20120325.150506.135.2@DOMY-PC> <201203261017.41420.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----=0D=0AFrom: John Baldwin =
<jhb@freebsd.org>=0D=0ATo: freebsd-hackers@freebsd.org=0D=0ACc: =
rank1seeker@gmail.com, hackers@freebsd.org=0D=0ADate: Mon, 26 Mar 2012 =
10:17:41 -0400=0D=0ASubject: Re: BUG: REL 9.0 - 'boot0cfg' fails with =
providers of non 512 byte sectorsize=0D=0A=0D=0A> On Sunday, March 25, =
2012 11:05:06 am rank1seeker@gmail.com wrote:=0D=0A> > I've created a =
vnode image (md0) with sectorsizes of 8192 and 4096=0D=0A> > =0D=0A> > =
After installing MBR's bootcode '/boot/boot0', in provider 'md0' I =
did:=0D=0A> > # boot0cfg -o noupdate -m 0xc md0=0D=0A> > boot0cfg: read =
/dev/md0: Invalid argument=0D=0A> > # boot0cfg -v md0=0D=0A> > boot0cfg: =
read /dev/md0: Invalid argument=0D=0A> > =0D=0A> > If custom sectorsize =
isn't specifed(512 bytes), then both above CMDs will =0D=0A> work.=0D=0A> =
=0D=0A> MBR bootstraps (such as boot0) assume a 512 byte sector.  They =
won't boot =0D=0A> correctly on media with a different sector size.  So =
even if you "fixed" =0D=0A> boot0cfg, you wouldn't have a bootable =
system.=0D=0A> =0D=0A> -- =0D=0A> John Baldwin=0D=0A> =
=0D=0A=0D=0A=0D=0AIs it so?=0D=0AThis is also true for '/boot/mbr' =
file?=0D=0A=0D=0AWell, majority of PC's are still BIOS bassed so MBR =
scheme is still around and there are also now HDD's with 4b sector sizes =
and SSD's with 4b and 8k sector sizes.=0D=0A=0D=0ASo how does things work =
in those cases, without GPT?=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E6=0D=0A



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120326.180253.607.2>