From owner-freebsd-questions@FreeBSD.ORG Sat May 2 23:08:26 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 897D36D for ; Sat, 2 May 2015 23:08:26 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A5291212 for ; Sat, 2 May 2015 23:08:25 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-237.dynamic.qsc.de [92.195.64.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id B64CF24BD5; Sun, 3 May 2015 01:08:22 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t42N8Mvh002919; Sun, 3 May 2015 01:08:22 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 3 May 2015 01:08:22 +0200 From: Polytropon To: "William A. Mahaffey III" Cc: freebsd-questions@freebsd.org Subject: Re: How to restore a USB drive converted to bootable Message-Id: <20150503010822.35d5c71a.freebsd@edvax.de> In-Reply-To: <5545553F.50602@hiwaay.net> References: <5543FAA3.7050907@hiwaay.net> <441tiz3wrx.fsf@lowell-desk.lan> <5544DBA2.1030102@hiwaay.net> <20150502233854.c80bc5ae.freebsd@edvax.de> <55454CDA.3020209@hiwaay.net> <20150503002420.fdcc9310.freebsd@edvax.de> <5545553F.50602@hiwaay.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 23:08:26 -0000 On Sat, 02 May 2015 17:59:02 -0453, William A. Mahaffey III wrote: > I was thinking of dd-ing the 1st MB or 2 off into a file, then restoring > from that file when done, that would skip all the extra features you > mention ;-). Would 1 or 2 MB be enough to get all of the FS info ? That depends on the file system. Partition table and boot sector are within the 1st MB. Inode lists and FATs are typically also located there, but there might be redundandcy "later on" for ensuring file system consistency. If you dd the whole drive, you can restore it 1:1 after any use. But if you just want a quick (and "sufficiently safe") way to wipe it, zero out the first MBs. That's usually _more_ than enough. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...