From owner-freebsd-stable@FreeBSD.ORG Wed Dec 16 11:27:17 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 316E61065670 for ; Wed, 16 Dec 2009 11:27:17 +0000 (UTC) (envelope-from mh@kernel32.de) Received: from crivens.kernel32.de (crivens.asm68k.org [81.169.171.191]) by mx1.freebsd.org (Postfix) with ESMTP id E6F458FC0A for ; Wed, 16 Dec 2009 11:27:16 +0000 (UTC) Received: from www.terrorteam.de (localhost [127.0.0.1]) by crivens.kernel32.de (Postfix) with ESMTP id 5C7F6B028D; Wed, 16 Dec 2009 12:27:15 +0100 (CET) MIME-Version: 1.0 Date: Wed, 16 Dec 2009 12:27:15 +0100 From: Marian Hettwer To: Andriy Gapon In-Reply-To: <4B28BCAA.1010002@icyb.net.ua> References: <4B28BCAA.1010002@icyb.net.ua> Message-ID: <21859b54848003a15761f546aed36f1f@localhost> X-Sender: mh@kernel32.de User-Agent: RoundCube Webmail/0.1-rc2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org Subject: Re: update to 8.0-RELEASE --> partition gone X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2009 11:27:17 -0000 Hej Ho, On Wed, 16 Dec 2009 12:55:38 +0200, Andriy Gapon wrote: > on 16/12/2009 11:28 Marian Hettwer said the following: >> Hej Marcel, >> >> >> On Tue, 15 Dec 2009 16:46:27 -0800, Marcel Moolenaar >> wrote: >>> 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. >>> >> okay... but how do I wipe out the second sector? >> dd if=/dev/zero of=/dev/ad8 count=1 >> would wipe out the first 512 bytes. > > You need to add seek=1 (or oseek=1, which is the same but a little bit > more > obvious) to that command. > gee, thanks! That worked. root@talisker:/root# ls /dev/ad8* /dev/ad8 /dev/ad8s1 /dev/ad8s1a root@talisker:/root# mount /dev/ad8s1a /BACKUP/ root@talisker:/root# umount /BACKUP/ but, hm, whats that? root@talisker:/root# fsck /dev/ad8s1a fsck: Could not determine filesystem type >> I'm always confused with sectors vs. >> bytes. > > You are not confused this time, HDD sector is 512 bytes. This is the > default dd > block size too. > Good to know! Cheers, Marian