Date: Fri, 23 Apr 2010 02:02:27 -0700 From: Jeremy Chadwick <freebsd@jdc.parodius.com> To: "Andrey V. Elsukov" <bu7cher@yandex.ru> Cc: freebsd-fs@freebsd.org Subject: Re: kern.geom.debugflags=16 does NOT allow me to write to device Message-ID: <20100423090227.GA29149@icarus.home.lan> In-Reply-To: <4BD1615E.9010909@yandex.ru> References: <y2z5a1151761004221355l391c05f4qc6c0f760321b56f5@mail.gmail.com> <20100423082345.GA27379@icarus.home.lan> <4BD1615E.9010909@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 23, 2010 at 12:59:10PM +0400, Andrey V. Elsukov wrote: > On 23.04.2010 12:23, Jeremy Chadwick wrote: > >Supposedly we're supposed to use gpart(8) now, but I haven't figured out > >how to use it in the same way as bsdlabel. > > It's easy. > > # gpart create -s mbr md0 > md0 created > # gpart add -t freebsd md0 > md0s1 added > # gpart create -s bsd md0s1 > md0s1 created > # gpart add -t freebsd-ufs -s 50m md0s1 > md0s1a added > # gpart add -t freebsd-swap md0s1 > md0s1b added > # gpart bootcode -b /boot/boot md0s1 > md0s1 has bootcode > # gpart bootcode -b /boot/mbr md0 > md0 has bootcode > # gpart set -a active -i 1 md0 > md0s1 has active set Thank you. Based on this, I take it the following two commands are equivalent? Old: bsdlabel -B ad0s1 New: gpart bootcode -b /boot/boot ad0s1 -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100423090227.GA29149>