Date: Thu, 13 Apr 2017 11:26:48 +0200 From: Polytropon <freebsd@edvax.de> To: tech-lists <tech-lists@zyxst.net> Cc: freebsd-questions@freebsd.org Subject: Re: hopefully simple query regarding dd Message-ID: <20170413112648.cfc0996c.freebsd@edvax.de> In-Reply-To: <7ed0944d-56d0-fc10-629b-b90067f48651@zyxst.net> References: <7ed0944d-56d0-fc10-629b-b90067f48651@zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 13 Apr 2017 10:03:02 +0100, tech-lists wrote: > I couldn't find an an answer to this hopefully non-silly question and > can't test it meself without possibly risking a hd. Basically what I > want to know is this. Can I do this: > > dd if=/dev/ada0 of=/dev/ada0 > > to refresh the disk, and *expect the outcome to be non-destructive for > the disk*. That bit is important. By non-destructive, I mean for the > data already on it. Hmmm... input and output the same disk, with the default block size of 512 byte? Maybe add bs=1m or something "more native" to the disk in question. But how should that "refresh" the data on the disk? What should it be good for? Basically it appears to be possible, but personally, I'd first test it with a file-backed pseudodevice resembling a disk... > Can I do this multiuser or do I need to boot to a rescue environment > beforehand? Definitely. -- 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?20170413112648.cfc0996c.freebsd>