From owner-freebsd-questions@freebsd.org Thu Apr 13 09:26:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 549B2D3B993 for ; Thu, 13 Apr 2017 09:26:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BE75EB5F for ; Thu, 13 Apr 2017 09:26:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Thu, 13 Apr 2017 11:26:49 +0200 Received: from r56.edvax.de (port-92-195-127-117.dynamic.qsc.de [92.195.127.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 845843CC5C; Thu, 13 Apr 2017 11:26:48 +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 v3D9QmsT003483; Thu, 13 Apr 2017 11:26:48 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 13 Apr 2017 11:26:48 +0200 From: Polytropon To: tech-lists 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> 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-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with C4F7368342C X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1133 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2017 09:26:58 -0000 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, ...