Date: Mon, 10 Jan 2011 10:31:03 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: David Demelier <markand@live.fr> Cc: freebsd-questions@freebsd.org Subject: Re: gpart bootcode manually Message-ID: <alpine.BSF.2.00.1101101027470.77197@wonkity.com> In-Reply-To: <BLU0-SMTP153015D673D1DC6F054D339A80E0@phx.gbl> References: <BLU0-SMTP153015D673D1DC6F054D339A80E0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Jan 2011, David Demelier wrote: > Because I wanted to crypt a /home partition, I tried to make my partition and > slice using gpart in the fixit environment. > > There is the partition I've made : > > Fixit # gpart show ad0 > => 63 625142385 ad0 MBR (298G) > 63 625142385 1 freebsd [active] (298G) > > Fixit # gpart show ad0s1 > => 0 625142385 ad0s1 BSD (298G) > 0 63 - free - (32K) > 63 1048576 1 freebsd-ufs (512M) > 1048639 4194304 2 freebsd-swap (2.0G) > 5242943 524288 4 freebsd-ufs (256M) > 5767231 524288 5 freebsd-ufs (256M) > 6291519 20971520 6 freebsd-ufs (10G) > 27263039 597879346 7 freebsd-ufs (285G) > > To install the boot1, I tried this : > > gpart bootcode -b /mnt2/boot/boot1 ad2s1 > gpart bootcode -b /mnt2/boot/boot1 ad2 > > But nothing happens, there is not the / spinning, just a blinking underscore. > What did I wrong ? If you didn't do 'sysctl kern.geom.debugflags=16', it should give a warning. But maybe not in that case. I'd think it's a mistake to install bootcode to a slice, but gpart says you can do it provided you use -p and -i.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1101101027470.77197>