From owner-freebsd-geom@FreeBSD.ORG Thu Jan 1 03:16:11 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9A271065670 for ; Thu, 1 Jan 2009 03:16:11 +0000 (UTC) (envelope-from jos@catnook.com) Received: from lizzy.dyndns.org (209-204-188-132.dsl.static.sonic.net [209.204.188.132]) by mx1.freebsd.org (Postfix) with SMTP id 660A68FC13 for ; Thu, 1 Jan 2009 03:16:11 +0000 (UTC) (envelope-from jos@catnook.com) Received: (qmail 33686 invoked by uid 1000); 1 Jan 2009 03:16:34 -0000 Date: Wed, 31 Dec 2008 19:16:34 -0800 From: Jos Backus To: Marcel Moolenaar Message-ID: <20090101031634.GD64075@lizzy.catnook.local> References: <3a142e750812201747o339d7298p11236bb02c7f858f@mail.gmail.com> <20081223050425.GA89448@citylink.fud.org.nz> <6D4A57D3-3F6D-43E6-9B69-95514F69C57A@mac.com> <20081226080146.GB25406@dragon.NUXI.org> <20081227191223.GB31177@lizzy.catnook.local> <9F29EF5C-B4FD-4273-8BE9-C134B983A1E1@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9F29EF5C-B4FD-4273-8BE9-C134B983A1E1@mac.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-current@freebsd.org, freebsd-geom@freebsd.org Subject: Re: Changed names of logical disks on recent -CURRENT: part of logical disks not accessible now X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jos@catnook.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2009 03:16:12 -0000 Hi Marcel, On Mon, Dec 29, 2008 at 10:11:03PM -0800, Marcel Moolenaar wrote: > I've seen this before: Erase the second sector on your > disk. You likely have a stale BSD disklabel there. Before I start erasing, does this look like something that can be erased safely? lizzy:~# dd if=/dev/ad0 count=1 skip=1 | hexdump -C 1+0 records in 1+0 records out 512 bytes transferred in 0.009828 secs (52096 bytes/sec) 00000000 57 45 56 82 00 00 00 00 61 6d 6e 65 73 69 61 63 |WEV.....amnesiac| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000020 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 |............?...| 00000030 10 00 00 00 15 ed 12 00 f0 03 00 00 b0 82 85 4a |...............J| 00000040 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 |................| 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000080 00 00 00 00 57 45 56 82 a8 07 08 00 00 20 00 00 |....WEV...... ..| 00000090 00 00 00 00 00 00 20 00 10 00 00 00 00 08 00 00 |...... .........| 000000a0 07 08 88 6f 00 00 80 00 10 00 20 00 00 00 00 00 |...o...... .....| 000000b0 01 00 00 00 b0 82 85 4a 00 00 00 00 00 00 00 00 |.......J........| 000000c0 00 00 00 00 00 00 20 00 10 00 a0 00 00 08 00 00 |...... .........| 000000d0 07 08 88 6f 00 00 00 04 10 00 c0 00 00 08 00 00 |...o............| 000000e0 07 08 88 6f a0 82 c5 45 10 00 c0 04 00 08 00 00 |...o...E........| 000000f0 07 08 88 6f 00 00 00 00 00 00 00 00 00 00 00 00 |...o............| 00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000200 Or do you mean /dev/ad0s1? (I thought disklabels generally sit inside fdisk partitions^Wslices.) lizzy:~# dd if=/dev/ad0s1 count=1 skip=1 | hexdump -C 1+0 records in 1+0 records out 512 bytes transferred in 0.016460 secs (31105 bytes/sec) 00000000 57 45 56 82 00 00 00 00 61 6d 6e 65 73 69 61 63 |WEV.....amnesiac| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000020 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 |............?...| 00000030 10 00 00 00 14 ed 12 00 f0 03 00 00 71 82 85 4a |............q..J| 00000040 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 |................| 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000080 00 00 00 00 57 45 56 82 68 07 08 00 00 20 00 00 |....WEV.h.... ..| 00000090 00 00 00 00 00 00 20 00 10 00 00 00 00 08 00 00 |...... .........| 000000a0 07 08 88 6f 00 00 80 00 10 00 20 00 00 00 00 00 |...o...... .....| 000000b0 01 00 00 00 71 82 85 4a 00 00 00 00 00 00 00 00 |....q..J........| 000000c0 00 00 00 00 00 00 20 00 10 00 a0 00 00 08 00 00 |...... .........| 000000d0 07 08 88 6f 00 00 00 04 10 00 c0 00 00 08 00 00 |...o............| 000000e0 07 08 88 6f 61 82 c5 45 10 00 c0 04 00 08 00 00 |...oa..E........| 000000f0 07 08 88 6f 00 00 00 00 00 00 00 00 00 00 00 00 |...o............| 00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000110 00 00 00 00 eb 0e 42 54 58 01 02 80 f6 0f 80 06 |......BTX.......| 00000120 00 20 00 00 fa 31 c0 8e d0 bc 00 18 8e c0 8e d8 |. ...1..........| 00000130 66 6a 02 66 9d bf 00 5e b9 00 19 f3 ab bb 22 95 |fj.f...^......".| 00000140 b9 10 00 bf 80 00 89 1d 47 47 ab 83 c3 04 e2 f6 |........GG......| 00000150 bf 00 5e be d2 95 ac 98 91 e3 1d ac 92 ad 93 ad |..^.............| 00000160 b6 08 d1 eb 73 0b 89 05 88 75 02 88 55 05 83 c0 |....s....u..U...| 00000170 04 8d 7d 08 e2 ec eb de c6 45 05 18 c6 45 08 10 |..}......E...E..| 00000180 c6 45 66 68 bb 20 28 e8 b8 00 0f 01 1e c6 95 0f |.Efh. (.........| 00000190 01 16 c0 95 0f 20 c0 40 0f 22 c0 ea 8c 90 08 00 |..... .@."......| 000001a0 31 c9 b1 10 8e d1 b1 38 0f 00 d9 ba 00 a0 00 00 |1......8........| 000001b0 36 0f b7 05 13 04 00 00 c1 e0 0a 2d 00 10 00 00 |6..........-....| 000001c0 29 d0 b1 33 51 50 68 02 02 00 00 6a 2b ff 35 0c |)..3QPh....j+.5.| 000001d0 90 00 00 51 51 51 51 52 b1 07 6a 00 e2 fc 61 07 |...QQQQR..j...a.| 000001e0 1f 0f a1 0f a9 cf fa bc 00 18 00 00 0f 20 c0 25 |............. .%| 000001f0 ff ff ff 7f 0f 22 c0 31 c9 0f 22 d9 0f 01 15 c0 |.....".1..".....| 00000200 Thanks and Happy New Year! Groetjes, -- Jos Backus jos at catnook.com From owner-freebsd-geom@FreeBSD.ORG Sat Jan 3 16:30:11 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 895B01065670; Sat, 3 Jan 2009 16:30:11 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout014.mac.com (asmtpout014.mac.com [17.148.16.89]) by mx1.freebsd.org (Postfix) with ESMTP id 372658FC19; Sat, 3 Jan 2009 16:30:11 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [192.168.1.96] (75-101-29-67.dsl.static.sonic.net [75.101.29.67]) by asmtp014.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KCW00BT0LU9N200@asmtp014.mac.com>; Sat, 03 Jan 2009 08:30:10 -0800 (PST) Message-id: From: Marcel Moolenaar To: jos@catnook.com In-reply-to: <20090101031634.GD64075@lizzy.catnook.local> Date: Sat, 03 Jan 2009 08:30:08 -0800 References: <3a142e750812201747o339d7298p11236bb02c7f858f@mail.gmail.com> <20081223050425.GA89448@citylink.fud.org.nz> <6D4A57D3-3F6D-43E6-9B69-95514F69C57A@mac.com> <20081226080146.GB25406@dragon.NUXI.org> <20081227191223.GB31177@lizzy.catnook.local> <9F29EF5C-B4FD-4273-8BE9-C134B983A1E1@mac.com> <20090101031634.GD64075@lizzy.catnook.local> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-current@freebsd.org, freebsd-geom@freebsd.org Subject: Re: Changed names of logical disks on recent -CURRENT: part of logical disks not accessible now X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 16:30:12 -0000 On Dec 31, 2008, at 7:16 PM, Jos Backus wrote: > Hi Marcel, > > On Mon, Dec 29, 2008 at 10:11:03PM -0800, Marcel Moolenaar wrote: >> I've seen this before: Erase the second sector on your >> disk. You likely have a stale BSD disklabel there. > > Before I start erasing, does this look like something that can be > erased > safely? > > lizzy:~# dd if=/dev/ad0 count=1 skip=1 | hexdump -C > 1+0 records in > 1+0 records out > 512 bytes transferred in 0.009828 secs (52096 bytes/sec) > 00000000 57 45 56 82 00 00 00 00 61 6d 6e 65 73 69 61 63 | > WEV.....amnesiac| > 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > 00000020 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 > |............?...| > 00000030 10 00 00 00 15 ed 12 00 f0 03 00 00 b0 82 85 4a > |...............J| > 00000040 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 > |................| > 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > * > 00000080 00 00 00 00 57 45 56 82 a8 07 08 00 00 20 00 00 > |....WEV...... ..| > 00000090 00 00 00 00 00 00 20 00 10 00 00 00 00 08 00 00 > |...... .........| > 000000a0 07 08 88 6f 00 00 80 00 10 00 20 00 00 00 00 00 > |...o...... .....| > 000000b0 01 00 00 00 b0 82 85 4a 00 00 00 00 00 00 00 00 > |.......J........| > 000000c0 00 00 00 00 00 00 20 00 10 00 a0 00 00 08 00 00 > |...... .........| > 000000d0 07 08 88 6f 00 00 00 04 10 00 c0 00 00 08 00 00 > |...o............| > 000000e0 07 08 88 6f a0 82 c5 45 10 00 c0 04 00 08 00 00 > |...o...E........| > 000000f0 07 08 88 6f 00 00 00 00 00 00 00 00 00 00 00 00 > |...o............| > 00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > * > 00000200 > > Or do you mean /dev/ad0s1? (I thought disklabels generally sit > inside fdisk > partitions^Wslices.) > > lizzy:~# dd if=/dev/ad0s1 count=1 skip=1 | hexdump -C > 1+0 records in > 1+0 records out > 512 bytes transferred in 0.016460 secs (31105 bytes/sec) > 00000000 57 45 56 82 00 00 00 00 61 6d 6e 65 73 69 61 63 | > WEV.....amnesiac| > 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > 00000020 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 > |............?...| > 00000030 10 00 00 00 14 ed 12 00 f0 03 00 00 71 82 85 4a > |............q..J| > 00000040 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 > |................| > 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > * > 00000080 00 00 00 00 57 45 56 82 68 07 08 00 00 20 00 00 > |....WEV.h.... ..| > 00000090 00 00 00 00 00 00 20 00 10 00 00 00 00 08 00 00 > |...... .........| > 000000a0 07 08 88 6f 00 00 80 00 10 00 20 00 00 00 00 00 > |...o...... .....| > 000000b0 01 00 00 00 71 82 85 4a 00 00 00 00 00 00 00 00 > |....q..J........| > 000000c0 00 00 00 00 00 00 20 00 10 00 a0 00 00 08 00 00 > |...... .........| > 000000d0 07 08 88 6f 00 00 00 04 10 00 c0 00 00 08 00 00 > |...o............| > 000000e0 07 08 88 6f 61 82 c5 45 10 00 c0 04 00 08 00 00 > |...oa..E........| > 000000f0 07 08 88 6f 00 00 00 00 00 00 00 00 00 00 00 00 > |...o............| > 00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > |................| > 00000110 00 00 00 00 eb 0e 42 54 58 01 02 80 f6 0f 80 06 > |......BTX.......| > 00000120 00 20 00 00 fa 31 c0 8e d0 bc 00 18 8e c0 8e d8 |. ... > 1..........| > 00000130 66 6a 02 66 9d bf 00 5e b9 00 19 f3 ab bb 22 95 | > fj.f...^......".| > 00000140 b9 10 00 bf 80 00 89 1d 47 47 ab 83 c3 04 e2 f6 > |........GG......| > 00000150 bf 00 5e be d2 95 ac 98 91 e3 1d ac 92 ad 93 ad > |..^.............| > 00000160 b6 08 d1 eb 73 0b 89 05 88 75 02 88 55 05 83 c0 > |....s....u..U...| > 00000170 04 8d 7d 08 e2 ec eb de c6 45 05 18 c6 45 08 10 > |..}......E...E..| > 00000180 c6 45 66 68 bb 20 28 e8 b8 00 0f 01 1e c6 95 0f |.Efh. > (.........| > 00000190 01 16 c0 95 0f 20 c0 40 0f 22 c0 ea 8c 90 08 00 > |..... .@."......| > 000001a0 31 c9 b1 10 8e d1 b1 38 0f 00 d9 ba 00 a0 00 00 | > 1......8........| > 000001b0 36 0f b7 05 13 04 00 00 c1 e0 0a 2d 00 10 00 00 | > 6..........-....| > 000001c0 29 d0 b1 33 51 50 68 02 02 00 00 6a 2b ff 35 0c |).. > 3QPh....j+.5.| > 000001d0 90 00 00 51 51 51 51 52 b1 07 6a 00 e2 fc 61 07 > |...QQQQR..j...a.| > 000001e0 1f 0f a1 0f a9 cf fa bc 00 18 00 00 0f 20 c0 25 > |............. .%| > 000001f0 ff ff ff 7f 0f 22 c0 31 c9 0f 22 d9 0f 01 15 c0 |.....". > 1..".....| > 00000200 > > Thanks and Happy New Year! Hi Jos, "dd if=/dev/zero of=/dev/ad0 count=1 oseek=1" is what you need. As you say, the BSD disklabel lives in the slice, so the one in sector 1 (counting from 0) is the stale one and the one preventing you from booting. Happy New Year to you (and Trish) too, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-geom@FreeBSD.ORG Sat Jan 3 21:57:41 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14716106564A for ; Sat, 3 Jan 2009 21:57:41 +0000 (UTC) (envelope-from jos@catnook.com) Received: from lizzy.dyndns.org (209-204-188-132.dsl.static.sonic.net [209.204.188.132]) by mx1.freebsd.org (Postfix) with SMTP id A05578FC12 for ; Sat, 3 Jan 2009 21:57:40 +0000 (UTC) (envelope-from jos@catnook.com) Received: (qmail 1649 invoked by uid 1000); 3 Jan 2009 21:58:10 -0000 Date: Sat, 3 Jan 2009 13:58:10 -0800 From: Jos Backus To: Marcel Moolenaar Message-ID: <20090103215810.GA1527@lizzy.catnook.local> References: <3a142e750812201747o339d7298p11236bb02c7f858f@mail.gmail.com> <20081223050425.GA89448@citylink.fud.org.nz> <6D4A57D3-3F6D-43E6-9B69-95514F69C57A@mac.com> <20081226080146.GB25406@dragon.NUXI.org> <20081227191223.GB31177@lizzy.catnook.local> <9F29EF5C-B4FD-4273-8BE9-C134B983A1E1@mac.com> <20090101031634.GD64075@lizzy.catnook.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-current@freebsd.org, freebsd-geom@freebsd.org Subject: Re: Changed names of logical disks on recent -CURRENT: part of logical disks not accessible now X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jos@catnook.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 21:57:41 -0000 On Sat, Jan 03, 2009 at 08:30:08AM -0800, Marcel Moolenaar wrote: > "dd if=/dev/zero of=/dev/ad0 count=1 oseek=1" is what you > need. As you say, the BSD disklabel lives in the slice, > so the one in sector 1 (counting from 0) is the stale one > and the one preventing you from booting. lizzy:~# dd if=/dev/zero of=/dev/ad0 count=1 oseek=1 dd: /dev/ad0: Operation not permitted lizzy:~# sysctl kern.geom.debugflags=16 kern.geom.debugflags: 0 -> 16 lizzy:~# dd if=/dev/zero of=/dev/ad0 count=1 oseek=1 1+0 records in 1+0 records out 512 bytes transferred in 0.000164 secs (3121343 bytes/sec) lizzy:~# does the trick. Thanks Marcel! -- Jos Backus jos at catnook.com