Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2015 01:08:22 +0200
From:      Polytropon <freebsd@edvax.de>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150503010822.35d5c71a.freebsd>