Date: Tue, 15 Dec 2009 16:46:27 -0800 From: Marcel Moolenaar <xcllnt@mac.com> To: Ben Morrow <ben@morrow.me.uk> Cc: freebsd-stable@freebsd.org Subject: Re: update to 8.0-RELEASE --> partition gone Message-ID: <7BA0C6CC-A1D9-49C2-942D-D46C19E9B3CB@mac.com> In-Reply-To: <20091216000803.GA39686@osiris.mauzo.dyndns.org> References: <4B2802AE.9090107@kernel32.de> <200912151720.37709.freebsd@insightbb.com> <20091216000803.GA39686@osiris.mauzo.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 15, 2009, at 4:08 PM, Ben Morrow wrote: > Quoth Marcel Moolenaar <xcllnt@mac.com>: >> On Dec 15, 2009, at 2:20 PM, Steven Friedrich wrote: >>>> >>> FreeBSD 8.0 no longer supports "dangerously dedicated" disks. >> >> This is not true. The problem is that sysinstall creates an invalid >> "dangerously dedicated" disk, as demonstrated by doing: >> # fdisk ad8 >> (shows FreeBSD slice information) >> >> # bsdlabel ad8 >> (shows valid but empty disk label) >> >> Marian just needs to wipe out the second sector on the disk to >> remove the BSD disklabel that prevents the kernel from using >> the master boot record in the 1st sector. This exposes ad8s1. >> This then will pick up the BSD disklabel in sector 65 (i.e. >> the second sector in slice 1) to give ad8s1a... > > Are you able to clarify exactly what is no longer working in 8? Everything is working, but behaviour has changed for invalid disks. Invalid disks are disks with conflicting partitioning information. In FreeBSD 8.x the behaviour is deterministic and for the broken dangerously dedicated disks that sysinstall creates this means that we use the partition information in the BSD disklabel. In FreeBSD 7.x this could come from either the MBR or the BSD disklabel, with the MBR the more common scenario. > You seem > to be implying here that there is only a problem if there are invalid > and/or overlapping labels on the disk; elsewhere I have read that disks > without an MBR aren't supported at all (I presume the faked-up MBR on a > GPT disk counts). Disks without an MBR are supported. > If I currently have a working ad2{b,c,d,e}, will they > be picked up by 8, or would I have to repartition slightly smaller with > a useless MBR slice in front? Yes, if you have ad2a and not ad2s1a, then you have a proper dangerously dedicated disk and FreeBSD 8.x will work correctly with your disk. If you installed "dangerously dedicated" and ended up with ad0s1a (note the "s1"), then you have an invalid partitioning and FreeBSD 8.x will not give you what you've been getting on FreeBSD 7.x. Most of the time you only need to wipe out the second sector on the disk to clean it up and have FreeBSD 8.x also give you ad0s1a. -- Marcel Moolenaar xcllnt@mac.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7BA0C6CC-A1D9-49C2-942D-D46C19E9B3CB>