summaryrefslogtreecommitdiffstats
path: root/usr.sbin/boot0cfg
Commit message (Collapse)AuthorAgeFilesLines
* Extend the geom-related info and put in the NOTE section, notluigi2009-01-131-14/+19
| | | | | | | in BUGS, as this is a feature. Bump the date, as it was forgotten in previous commits and the page has had significant changes recently
* Another, hopefully final set of changes to boot0 and boot0cfg.luigi2008-12-032-26/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | boot0.S changes: + import a patch from Christoph Mallon to rearrange the various print functions and save another couple of bytes; + implement the suggestion in PR 70531 to enable booting from any valid partition because even the extended partitions that were previously in our kill list may contain a valid boot loader. This simplifies the code and saves some bytes; + followwing up PR 127764, implement conditional code to preserve the 'Volume ID' which might be used by other OS (NT, XP, Vista) and is located at offset 0x1b8. This requires a relocation of the parameter block within the boot sector -- there is no other possible workaround. To address this, boot0cfg has been updated to handle both versions of the boot code; + slightly rearrange the strings printed in the menus to make the code buildable with all options. Given the tight memory budget, this means that with certain options we need to shrink or remove certain labels. and especially: make -DVOLUME_LABEL -DPXE the default options. This means that the newly built boot0 block will preserve the Volume ID, and has the (hidden) option F6 to boot from INT18/PXE. I think the extra functionality is well worth the change. The most visible difference here is that the 'Default: ' string now becomes 'Boot: ' (it can be reverted to the old value but then we need to nuke 1/2 partition name or entries to make up for the extra room). boot0cfg changes: + modify the code to recognise the new boot0 structure (with the relocated options block to make room for the Volume id). + add two options, '-i xxxx-xxxx' to set the volume ID, -e c to modify the character printed in case of bad input PR: 127764 70531 Submitted by: Christoph Mallon (portions) MFC after: 4 weeks
* - Improve error message given on g_providername call failure.lulf2008-09-301-2/+2
| | | | | | - While there, make error messages consistent with the rest. Approved by: kib (mentor)
* - Make use of the new and g_device_path utility function in libgeom to avoidlulf2008-09-071-33/+23
| | | | | | | | | duplication of code in fdisk and boot0cfg. Also make use of g_providername to fix an issue with fdisk and boot0cfg not using the correct provider when writing the MBR. Reviewed by: phk Approved by: pjd (mentor)
* "-b /boot/mbr" is redundant, /boot/mbr is the default boot code for fdisk(8).pav2007-06-071-2/+2
| | | | Pointed out by: ru
* - Revert previous revision, it was incorrectpav2007-06-061-8/+5
| | | | | | | | - Add an example using fdisk instead Pointed out by: ru Submitted by: Warren Block <wblock@wonkity.com> MFC after: 3 days
* Document /boot/mbr (non-interactive boot block)pav2007-05-121-0/+10
| | | | | | PR: doc/111840 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 1 week
* Attempt gctl verb "write MBR" when updating.phk2005-07-152-1/+25
| | | | This should solve the problem of modifying the MBR while running.
* Document how to make boot0cfg work on mounted disks.scottl2005-04-071-0/+11
|
* Sort sections.ru2005-01-181-2/+2
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Open device R/W for ioctl modifications.phk2004-12-181-1/+1
|
* Correct polarity of packet mode bit.tegge2004-09-141-1/+1
| | | | | Problem discovered when 'boot0cfg -B -v -o packet -s 2 ad4' turned off packet mode while reporting it as being enabled.
* boot0 defaults to packet mode.tegge2004-09-141-1/+1
|
* Enable packet mode by default. Disk drives have gotten so large now,obrien2004-08-031-1/+1
| | | | it is often the case the partition one wants to boot is above cylinder 1023.
* mdoc(7) fixes.ru2004-07-071-1/+1
|
* Document boot0sio and note that it requires modem handshake to work.phk2004-06-171-2/+9
|
* Spelling nit.ru2004-06-041-1/+1
|
* Remove spurious semicolons. Outside of functions they are actually errors butstefanf2004-05-161-1/+1
| | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5
* Get rid of duplicates.ru2003-09-141-1/+1
|
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-4/+2
|
* Add an example of how to use the -m option that clarifies how the bits injhb2003-04-151-4/+5
| | | | | | | the mask correspond to slice numbers. Also, clarify the description of the existing example. Requested by: Larry Rosenman <ler@lerctr.org>
* style.Makefile(5)obrien2003-04-041-1/+2
|
* Use the new sector0 munging ioctls to make boot0cfg work under GEOM.phk2002-12-291-8/+31
|
* Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:phk2002-10-011-0/+1
| | | | | | | | | | | | | | | | Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h. These two new copies are still intact copies of disklabel.h and therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them in programs which already include <sys.disklabel.h> is currently a no-op. This commit adds a number of such #includes. Once I have verified that I have fixed all the places which need fixing, I will commit the updated versions of the three #include files. Sponsored by: DARPA & NAI Labs.
* The .Nm utilitycharnier2002-07-141-1/+1
|
* Remove references to the update/noupdate flag from the descriptioniedowse2002-05-281-4/+1
| | | | | | | and examples of the "-s" option, since these two features operate completely independently of each other. Reviewed by: obrien
* The man page is VERY WRONG about using "-o noupdate" with -s.obrien2002-05-251-5/+12
| | | | So fix it, and add an example using -s.
* Trivial language fixes.dannyboy2002-05-141-3/+3
| | | | | PR: 38015 Submitted by: Chris Pepper <pepper@mail.rockefeller.edu>
* WARNS=2 cleanup.mikeh2001-12-112-7/+12
| | | | | Submitted by: Maxime Henrion <mux@qualys.com> MFC after: 2 weeks
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-1/+1
|
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+3
|
* Unset MAINTAINER.rnordier2001-07-211-2/+0
|
* fdisk(8): document the default for -b, add xref to boot0cfg(8).ru2001-07-181-0/+7
| | | | | | boot0cfg(8): add FILES section. Reviewed by: rnordier
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Add missing specification of the `-s' option to the usage line.iedowse2001-03-221-1/+1
| | | | | | PR: bin/26004 Submitted by: ushida@msa.biglobe.ne.jp Reviewed by: rnordier
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* remove trailing periods from SEE ALSO.ben2000-11-151-1/+1
|
* Use Fx macro wherever possible.ru2000-11-141-1/+2
|
* Reflect new packet option default.rnordier2000-10-021-6/+6
|
* Set MAINTAINER.rnordier2000-10-021-0/+2
|
* Mark a path up with Pa.sheldonh2000-09-111-1/+2
|
* Whitespace-only change: apply normal line breaking style.sheldonh2000-09-111-15/+21
|
* Provide correct information regarding "packet" option default.rnordier2000-09-091-4/+5
| | | | | PR: 20936 Originated by: obrien
* Allow people to set the default boot slice with boot0cfg.dwmalone2000-08-172-4/+28
| | | | | | | PR: 18923 Submitted by: Ian Dowse <iedowse@maths.tcd.ie> Reviewed by: jhb Approved by: rnordier
* - When we save the existing MBR to a file, check to see if the MBR we arejhb2000-07-131-83/+138
| | | | | | | | | | saving is boot0. If it is, use its version number so that we can grab all of boot0 (1024 bytes with version 1.1 for example) when we save it to a file via the 'f' option. Otherwise, we just save the first sector. - Cleanup this code a bit by splitting some functionality out into separate functions. Suggested by: Patrick Bihan-Faou <patrick@mindstep.com> (1)
* Update boot0cfg to handle the new boot0:jhb2000-07-121-20/+52
| | | | | | | | | - Allow for boot0 to be more than one sector long. However, ensure that it its length is a multiple of the sector length. - Change the signatures used to determine a valid boot0 as some of the signature code changed. - Use the old signature to detect version 1.0 of boot0, otherwise read the version number from boot0 itself.
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Check that we really have a boot0 mbr before treating it as one.rnordier1999-06-221-4/+47
| | | | | | Suggested by: peter Also add a few comments.
OpenPOWER on IntegriCloud