From owner-freebsd-questions@FreeBSD.ORG Mon Feb 20 22:56:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 874EA16A420 for ; Mon, 20 Feb 2006 22:56:26 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C53C43D46 for ; Mon, 20 Feb 2006 22:56:26 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from foo.antimatter.net (cpe-72-132-244-217.san.res.rr.com [72.132.244.217]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id k1KMuOZY013879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Feb 2006 14:56:25 -0800 X-MailKey: purple frogs are falling from the sky Message-Id: <7.0.1.0.2.20060220145340.081c2530@antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Mon, 20 Feb 2006 14:56:00 -0800 To: "mal content" , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: <8e96a0b90602201443g73339521l82e6d176da2024f9@mail.gmail.co m> References: <8e96a0b90602201443g73339521l82e6d176da2024f9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Quick question on newfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2006 22:56:26 -0000 At 02:43 PM 2/20/2006, mal content wrote: >I was setting up encrypted swap with GELI and accidentally >blew away my /tmp partition with: > ># dd if=/dev/random of=/dev/ad0s1e bs=1m > >Understandably, it will no longer allow me to mount /tmp, >so how do I use newfs to recreate the partition? I want to >be absolutely sure before entering any disk modifying >commands (just like I was absolutely sure last time...). > >I'm guessing it's as simple as: > ># newfs /dev/ad0s1e That will do it. -Glenn >cheers, >a1 > >(ps: please CC as I'm not on the list) >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"