Opened 14 years ago

Last modified 14 months ago

#5980 assigned enhancement

[DriveSetup] add a "FixMBR" command

Reported by: starsseed Owned by: nobody
Priority: normal Milestone: R1
Component: Applications/DriveSetup Version: R1/alpha2
Keywords: MBR Cc: planche2k@…
Blocked By: Blocking:
Platform: x86

Description

When a disk already contains an Intel partition table, you can't write the boot code in the MBR (except to play with "dd" and a 'good' MBR)

As a workaround, you must :
-clean the MBR with DiskProbe ( write zeros to replace all the MBR content, especially the last 2 bytes).
-reboot
-create the partition table, create and format the partition.

Since USB flash drives rarely have a working MBR boot code, the installation is very difficult for unexperienced users.

http://www.haiku-os.org/community/forum/bootable_usb

It's also a problem if you have multiple partitions on your disk.

Then DriveSetup need a command "FixMBR" to write the boot code.

Change History (8)

comment:1 by andreasf, 14 years ago

Cc: planche2k@… added

comment:2 by mmadia, 14 years ago

#5595 "implement cli application : writembr" is somewhat related.

comment:3 by siarzhuk, 10 years ago

Owner: changed from stippi to siarzhuk
Status: newassigned

Going to publish this as GCI 2013 task.

comment:4 by siarzhuk, 10 years ago

Owner: changed from siarzhuk to nobody

It looks like too hot for GCI teens. Sorry. :-\

comment:6 by pulkomandy, 3 years ago

This is about adding the same functionality in the UI of DriveSetup. Currently writembr is only a command line tool. DriveSetup writes the boot code only when creating a new partition table, but it never modifies existing boot code.

The description of the ticket explains very well what the problem is and this is still the case today.

comment:7 by n0toose, 14 months ago

Can we invoke the CLI tool directly or should we rather try copying excerpts of the source code and adjust it for DriveSetup?

comment:8 by pulkomandy, 14 months ago

All the needed code should already be available in DriveSetup since it is able to create a partition table with an MBR in it already. This only needs a "change only the bootcode and don't touch the partition table" codepath.

Note: See TracTickets for help on using tickets.