Date: Wed, 11 Feb 2004 13:24:20 -0500 (EST) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: roberthuff@rcn.com (Robert Huff) Cc: questions@freebsd.org Subject: Re: wiping a partition Message-ID: <200402111824.i1BIOLk12779@clunix.cl.msu.edu> In-Reply-To: <16426.25589.873525.703043@jerusalem.litteratus.org> from "Robert Huff" at Feb 11, 2004 12:18:45 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > > I've gotten into a wierd situation where the best course seems > to be wipe a (BSD) partition - without chnaging the size or location > - and then restoring from backup. > Based on the Handbook (sec. 12.3.2) the correct would seem to > be: > > make backup > cd / > dd if=/dev/zero of=/dev/da1 bs=1k count=1 > newfs -O 2 -U /dev/da1e > restore from backup > > Have I overlooked anything? That will wipe the whole da1 disk , not just a partition on it. I don't know what you really need, but something like cd / umount /dev/da1s1e newfs /dev/da1s1e would make the current stuff on the e partition of slice 1 on disk da1 unreadable short of using one of those heroic super recovery services. If you want the old stuff back, sandwich that with the backup and restore. ////jerry > > > Robert Huff >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402111824.i1BIOLk12779>