kern.geom.debugflags=16 does NOT allow me to write to device

Jeremy Chadwick freebsd at jdc.parodius.com
Fri Apr 23 09:02:29 UTC 2010


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 at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



More information about the freebsd-fs mailing list