Date: Sat, 8 Jun 2013 22:56:25 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Glen Barber <gjb@FreeBSD.org> Cc: jimmy.kelley@charter.net, freebsd-current@FreeBSD.org Subject: Re: 10-CURRENT i386 memstick snapshots broken? Message-ID: <alpine.BSF.2.00.1306082240560.66759@wonkity.com> In-Reply-To: <20130609005348.GG13292@glenbarber.us> References: <20130607205129.GA1103@jmobile.jimmy.net> <20130607212256.GG38117@glenbarber.us> <20130608173411.GD13292@glenbarber.us> <20130609.050100.598816322573845734.hrs@allbsd.org> <20130609005348.GG13292@glenbarber.us>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 8 Jun 2013, Glen Barber wrote: > The problem is creating the gpart(8) partition scheme on the md(4) > device. > > Below follows script(1) output of what the make-memstick.sh script does: > > Script started on Sun Jun 9 00:41:08 2013 > root@snap:/snap/releng # chroot /snap/releng/10-i386-snap > root@snap:/ # cd /usr/obj/usr/src/release > root@snap:/usr/obj/usr/src/release # echo \ > '/dev/ufs/FreeBSD_Install / ufs ro,noatime 1 1' > release/etc/fstab > root@snap:/usr/obj/usr/src/release # makefs -B \ > little -o label=FreeBSD_Install test.img release > Calculated size of `test.img': 649420800 bytes, 12922 inodes > Extent size set to 8192 > test.img: 619.3MB (1268400 sectors) block size 8192, fragment size 1024 > using 12 cylinder groups of 54.40MB, 6963 blks, 1152 inodes. > super-block backups (for fsck -b #) at: > 32, 111440, 222848, 334256, 445664, 557072, 668480, 779888, > 891296, 1002704, 1114112, 1225520, > Populating `test.img' > Image `test.img' complete > root@snap:/usr/obj/usr/src/release # mdconfig -a -t vnode -f test.img > md0 > > All fine up until this point. Now the gpart(8) partition is created: > > root@snap:/usr/obj/usr/src/release # gpart create -s BSD /dev/md0 > gpart: Inappropriate ioctl for device > root@snap:/usr/obj/usr/src/release # gpart list md0 > Segmentation fault (core dumped) This might be a good time to stop using a bare bsdlabel (aka "dangerously dedicated"). MBR plus bsdlabel is not great, but more widely understood, and other operating systems will at least recognize the MBR slice. I can help with this if needed.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1306082240560.66759>