Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2022 11:48:42 +0100
From:      =?UTF-8?Q?G=2eP=c3=b6tting?= <tuxgp@freenet.de>
To:        questions@freebsd.org
Subject:   Re: dd and mbr
Message-ID:  <d9b3a6e5-71ee-20bf-f4a1-5d20c75d1e83@freenet.de>
In-Reply-To: <20220111104112.dd98218395b3edc567ab2031@sohara.org>
References:  <4af920fc-eff1-a92e-d36e-1ba97079864c@gmail.com> <20220111104112.dd98218395b3edc567ab2031@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

perhaps you can run

dd if=/dev/zero of=/dev/da0 bs=512 count=1 conv=sync

Am 11.01.22 um 11:41 schrieb Steve O'Hara-Smith:
> On Tue, 11 Jan 2022 10:02:26 +0000 (UTC)
> Roderick <hruodr@gmail.com> wrote:
>
>> The command:
>>
>> dd if=/dev/zero of=/dev/da0
>>
>> does not delete the mbr, I still see the partition table with
>> fdisk. My questions:
> 	It does delete the partition table, but fdisk is showing you cached
> data - the clue is in this bit of the output:
>
>               ******* Working on device /dev/ada0 *******
>               parameters extracted from in-core disklabel are:
>
> 	I thought there was a way to get fdisk to read directly but I
> can't find it in the man page now.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d9b3a6e5-71ee-20bf-f4a1-5d20c75d1e83>