Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2009 15:48:02 +0200
From:      John Hay <jhay@meraka.org.za>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: strange geom interaction on 8.0?
Message-ID:  <20091130134802.GA37994@zibbi.meraka.csir.co.za>
In-Reply-To: <hf0eon$dou$1@ger.gmane.org>
References:  <20091130123312.GA26031@zibbi.meraka.csir.co.za> <hf0eon$dou$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 30, 2009 at 01:45:18PM +0100, Ivan Voras wrote:
> John Hay wrote:
> >Hi,
> >
> >On our Avila (arm) boxes we use a compact flash with 2 FreeBSD partitions
> >made with fdisk. When we upgrade, we prepare the non active partition,
> >change the active bit and reboot into the new partition. This worked well
> >on FreeBSD 7.2-stable. But on 8.0 it does not want to work. I get
> >something like this:
> >
> >#############################
> >agter:~ # fdisk -s ad0
> >/dev/ad0: 1966 cyl 16 hd 63 sec
> >Part        Start        Size Type Flags
> >   1:          63      989793 0xa5 0x80
> >   2:      990864      990864 0xa5 0x00
> >agter:~ # echo "a 2" | fdisk -f - ad0
> >******* Working on device /dev/ad0 *******
> >fdisk: Class not found
> >agter:~ # fdisk -s ad0
> >/dev/ad0: 1966 cyl 16 hd 63 sec
> >Part        Start        Size Type Flags
> >   1:          63      989793 0xa5 0x00
> >   2:      990864      990864 0xa5 0x80
> >agter:~ # reboot
> >/sbin/reboot: Device not configured.
> >agter:~ #
> >#############################
> >
> >Basically it looks like non of the commands that has not been executed
> >want to execute. Just changing the active bit back does not help.
> >
> >Can it be some interaction of the geom modules that are now standard
> >in 8.0?
> >
> >"kldstat -v | grep g_part" show these two:
> >                74 g_part_mbr
> >                73 g_part_bsd
> 
> Basically, fdisk and disklabel should not be used on 8.x anymore, try 
> using gpart instead.

You were right. I assumed setting a bit is just setting a bit and wanted
to keep my stuff between 7.x and 8.x the same. But I added gpart and its
/lib/geom/ bits and then did "gpart set -a active -i 1 ad0" and then
reboot did work.

Thanks.

John
-- 
John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org



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