|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
FreeBSD equivalent of DOS's fdisk /mbr
Just wondering if FreeBSD has an equivalent to the 'fdisk /mbr' command in DOS (which installs a standard, simple bootloader in the MBR that chainloads from the active partition).
The boot0cfg man page suggests using: Code:
# fdisk -B ad0 By the way, the reason I want to revert to the simple bootloader is that FreeBSD is the only OS on this computer, so I have no need for an interactive bootloader. |
|
||||
AFAIR i could never get the sysinstall thing to work.
this is untested too but i have analysed the hex dump of the mbr boot code, checking fdisk source and double-checked everything. Disclaimer: try it at your own risk. run: # fdisk -B -b mbr ad0 (the required mbr file and its checksum have been attached (zip file).) - you will be asked if you want to install the boot code - answer yes. - then you will be asked to install the partition table (actually you will be updating only the boot code and not touching the partition table) - answer yes. - reboot. the mbr file and its checksum have been attached (zip file). |
|
|||
You can use the FreeDOS disc.
|
|
|||
In Linux ive used for SCSIs
dd if=/dev/zero of=/dev/sdX bs=512 count=1 to remove mbr+partition table. and dd if=/dev/zero of=/dev/sdX bs=446 count=1 to just remove boot loader. Replacing sdx with da0 or your device name should also work in BSD. Cause this is standard area to place boot loaders and partition table. Last edited by osman; 3rd June 2008 at 07:23 AM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fdisk Question | Crotalus | FreeBSD Installation and Upgrading | 2 | 10th February 2010 08:10 AM |
equivalent to freebsd fetch | pbd | OpenBSD General | 9 | 7th August 2009 11:45 AM |
OpenSolaris equivalent of systrace? | DraconianTimes | Solaris | 9 | 31st January 2009 05:36 AM |
fdisk -B does not rewrite the mbr | kasse | NetBSD General | 0 | 25th November 2008 11:07 PM |
Remastersys FreeBSD equivalent? | businessgeeks | FreeBSD General | 2 | 4th August 2008 01:44 PM |