Re: Changed names of logical disks on recent -CURRENT: part of logical disks not accessible now

From: Jos Backus <jos_at_catnook.com>
Date: Sat, 3 Jan 2009 13:58:10 -0800
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
Received on Sat Jan 03 2009 - 20:57:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:39 UTC