Date: Tue, 11 Jan 2022 11:01:52 +0000 (UTC) From: Roderick <hruodr@gmail.com> To: questions@freebsd.org Subject: Re: dd and mbr Message-ID: <8e516e50-466b-c79d-d83e-774df471495b@gmail.com> 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
Thanks. Your answer seems to be a real answer and not a wild proposal to do an experiment. After taking the device away and plugging it again, I still get the partition table. Also after plugging other device in between. Perhaps it is written again?! No, I do not want to use fdisk, gpart or anything else. I want to see dd doing what it must do. How could I rely in dd otherwise? Rod. On Tue, 11 Jan 2022, Steve O'Hara-Smith wrote: > 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. > > -- > Steve O'Hara-Smith <steve@sohara.org> > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8e516e50-466b-c79d-d83e-774df471495b>