[haiku-bugs] Re: [Haiku] #13033: DriveSetup - Add Disk Wipe (write zeros to drive)

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 27 Oct 2016 17:44:50 -0000

#13033: DriveSetup - Add Disk Wipe (write zeros to drive)
---------------------------------------+----------------------------
   Reporter:  vidrep                   |      Owner:  stippi
       Type:  enhancement              |     Status:  new
   Priority:  low                      |  Milestone:  Unscheduled
  Component:  Applications/DriveSetup  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by pulkomandy):

 To be clear: normally this should not be needed. Creating a new partition
 table with DriveSetup should be enough.

 I'm aware of two possible problems:
 1) On a disk previously formatted as GPT, the old GPT data may not be
 erased when writing an MBR. The BIOS (or Haiku itself) may then try to use
 the old GPT instead of the new MBR.
 2) On a disk previously formatted as BFS, there could be confusion about
 the block size. Basically, the BFS driver will set it to the filesystem
 block size (usually 2K), but the MBR driver expects it to be set to the
 physical sector size (usually 512 bytes).

 The right thing to do is solve these two issues, to make sure the
 partition layout is created properly. No need to clutter the UI with
 workaround and hacks, which would make things even more error prone and
 confusing.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13033#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: