Home
last modified time | relevance | path

Searched full:mbr (Results 1 – 25 of 185) sorted by relevance

12345678

/openbsd/sbin/fdisk/
H A Dmbr.c32 #include "mbr.h"
42 MBR_init(struct mbr *mbr) in MBR_init() argument
54 memset(mbr->mbr_code, 0, sizeof(mbr->mbr_code)); in MBR_init()
55 memset(mbr->mbr_prt, 0, sizeof(mbr->mbr_prt)); in MBR_init()
96 memset(mbr, 0, sizeof(*mbr)); in MBR_init()
105 const uint64_t lba_firstembr, struct mbr *mbr) in dos_mbr_to_mbr() argument
124 memset(&mbr->mbr_prt[i], 0, sizeof(mbr->mbr_prt[i])); in dos_mbr_to_mbr()
143 PRT_prt_to_dp(&mbr->mbr_prt[i], mbr->mbr_lba_self, in mbr_to_dos_mbr()
152 MBR_print(const struct mbr *mbr, const char *units) in MBR_print() argument
180 MBR_write(const struct mbr *mbr) in MBR_write() argument
[all …]
H A Dcmd.c54 Xreinit(const char *args, struct mbr *mbr) in Xreinit() argument
83 Xswap(const char *args, struct mbr *mbr) in Xswap() argument
118 mbr->mbr_prt[pt] = mbr->mbr_prt[pf]; in Xswap()
211 edit(const int pn, struct mbr *mbr) in edit() argument
267 Xedit(const char *args, struct mbr *mbr) in Xedit() argument
329 setpid(const int pn, struct mbr *mbr) in setpid() argument
407 Xprint(const char *args, struct mbr *mbr) in Xprint() argument
455 Xquit(const char *args, struct mbr *mbr) in Xquit() argument
467 Xexit(const char *args, struct mbr *mbr) in Xexit() argument
473 Xhelp(const char *args, struct mbr *mbr) in Xhelp() argument
[all …]
H A Duser.c27 #include "mbr.h"
68 struct mbr mbr; in USER_edit() local
90 i = ask_cmd(&mbr, &args); in USER_edit()
118 struct mbr mbr; in USER_print_disk() local
128 if (MBR_valid_prt(&mbr) == 0) { in USER_print_disk()
131 "No MBR or GPT.\n", DOSBBSECTOR, in USER_print_disk()
132 (int)mbr.mbr_signature); in USER_print_disk()
161 MBR_print(&mbr, "s"); in USER_print_disk()
166 lba_self = mbr.mbr_prt[i].prt_bs; in USER_print_disk()
174 USER_help(const struct mbr *mbr) in USER_help() argument
[all …]
H A Dcmd.h25 int Xreinit(const char *, struct mbr *);
26 int Xmanual(const char *, struct mbr *);
27 int Xedit(const char *, struct mbr *);
30 int Xswap(const char *, struct mbr *);
31 int Xprint(const char *, struct mbr *);
32 int Xwrite(const char *, struct mbr *);
33 int Xexit(const char *, struct mbr *);
34 int Xquit(const char *, struct mbr *);
35 int Xabort(const char *, struct mbr *);
36 int Xhelp(const char *, struct mbr *);
[all …]
H A Dfdisk.8117 .Pa /usr/mdec/mbr .
126 Writes a default MBR to
128 The MBR has a single
141 Updates the MBR bootcode.
190 is printed as an MBR:
297 .It Cm reinit Op Cm gpt | Cm mbr
304 protective MBR.
338 Updates the MBR bootcode.
386 .Bl -tag -width /usr/mdec/mbr -compact
387 .It Pa /usr/mdec/mbr
[all …]
H A Dmbr.h1 /* $OpenBSD: mbr.h,v 1.44 2022/07/26 14:30:37 krw Exp $ */
19 struct mbr { struct
30 void MBR_print(const struct mbr *, const char *);
31 void MBR_init(struct mbr *);
32 int MBR_read(const uint64_t, const uint64_t, struct mbr *);
33 int MBR_write(const struct mbr *);
34 int MBR_valid_prt(const struct mbr *);
H A Dfdisk.c34 #include "mbr.h"
45 #define _PATH_MBR _PATH_BOOTDIR "mbr"
67 struct mbr mbr; in main() local
184 mbr.mbr_lba_self = mbr.mbr_lba_firstembr = 0; in main()
185 MBR_init(&mbr); in main()
186 if (ask_yn("Do you wish to write new MBR?")) in main()
187 Xwrite(NULL, &mbr); in main()
192 if (MBR_read(0, 0, &mbr)) in main()
193 errx(1, "Can't read MBR!"); in main()
195 sizeof(mbr.mbr_code)); in main()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Math-BigInt/t/
H A Dbigrat.t15 my $mbr = 'Math::BigRat';
113 $x = $mbr->new('-0');
262 $y = $mbr->new('1');
454 $y = $mbr->new(4);
455 $z = $mbr->new(3);
458 is(ref($x->copy()->broot($y)), $mbr, "\$x is a $mbr");
461 is(ref($x->copy()->bmodpow($y, $z)), $mbr, "\$x is a $mbr");
463 $x = $mbr->new(8);
468 is(ref($x->copy()->bmodinv($y)), $mbr, "\$x is a $mbr");
473 is(ref($x->copy()->broot(2)), $mbr, "\$x is a $mbr");
[all …]
/openbsd/distrib/macppc/ramdisk/
H A Dinstall.md63 if disk_has $_disk mbr; then
65 if disk_has $_disk mbr openbsd; then
70 echo "MBR has invalid signature; not showing it."
72 ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
81 # Manually configure the MBR.
88 The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
95 disk_has $_disk mbr dos ||
97 disk_has $_disk mbr dos_active ||
99 disk_has $_disk mbr openbsd ||
138 resp=MBR
[all …]
/openbsd/share/man/man8/man8.amd64/
H A Dboot_amd64.869 and this is when the MBR was invented.
71 The MBR relocates itself upon being loaded and invoked by the BIOS.
72 Embedded within the MBR is a partition table, with four partition table
74 The MBR code traverses this table (which was loaded with the
75 MBR by the BIOS), looking for an active entry, and then loads the MBR or
77 So in reality, the MBR is nothing more than a fancy chaining PBR.
79 Note: The MBR could load another MBR, which is the case when you are booting
82 partition is really an MBR, which will then load the corresponding MBR or PBR
163 .It Pa /usr/mdec/mbr
164 system MBR image
[all …]
/openbsd/share/man/man8/man8.i386/
H A Dboot_i386.869 and this is when the MBR was invented.
71 The MBR relocates itself upon being loaded and invoked by the BIOS.
72 Embedded within the MBR is a partition table, with four partition table
74 The MBR code traverses this table (which was loaded with the
75 MBR by the BIOS), looking for an active entry, and then loads the MBR or
77 So in reality, the MBR is nothing more than a fancy chaining PBR.
79 Note: The MBR could load another MBR, which is the case when you are booting
82 partition is really an MBR, which will then load the corresponding MBR or PBR
163 .It Pa /usr/mdec/mbr
164 system MBR image
[all …]
/openbsd/distrib/octeon/ramdisk/
H A Dinstall.md50 if disk_has $_disk mbr; then
52 if disk_has $_disk mbr openbsd; then
57 echo "MBR has invalid signature; not showing it."
59 ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
68 # Manually configure the MBR.
71 You will now create one MBR partition to contain your OpenBSD data
72 and one MBR partition on which kernels are located which are loaded
75 The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
82 disk_has $_disk mbr openbsd && return
83 echo No OpenBSD partition in MBR, try again. ;;
/openbsd/distrib/powerpc64/ramdisk/
H A Dinstall.md55 if disk_has $_disk mbr; then
58 echo "MBR has invalid signature; not showing it."
60 ask "Use (W)hole disk or (E)dit the MBR?" "$_d"
69 # Manually configure the MBR.
72 You will now create one MBR partition to contain your OpenBSD data
73 and one MBR partition on which the OpenBSD boot program is located.
76 The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
84 disk_has $_disk mbr openbsd && return
85 echo No OpenBSD partition in MBR, try again. ;;
/openbsd/sys/arch/macppc/stand/mbr/
H A DMakefile3 CLEANFILES= mbr
5 all: mbr
7 mbr: mbr.uu target
8 uudecode ${.CURDIR}/mbr.uu
11 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 mbr ${DESTDIR}/usr/mdec
/openbsd/sys/arch/loongson/stand/mbr/
H A DMakefile6 CLEANFILES= mbr
8 all: mbr
10 mbr: mbr.uu target
11 uudecode ${.CURDIR}/mbr.uu
14 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 mbr \
/openbsd/sys/arch/armv7/stand/efiboot/
H A Defidev.c144 * MBR, and returns 1 otherwise. A GPT protective MBR would have one and only
183 * Called only if the MBR on sector 0 is *not* a protective MBR
193 struct dos_mbr mbr; in findopenbsd() local
205 /* Read MBR */ in findopenbsd()
206 bzero(&mbr, sizeof(mbr)); in findopenbsd()
216 dp = &mbr.dmbr_parts[i]; in findopenbsd()
223 (int)(dp - mbr.dmbr_parts), in findopenbsd()
260 * Called only if the MBR on sector 0 *is* a protective MBR
395 * via MBR. in efi_getdisklabel()
402 /* Check MBR signature. */ in efi_getdisklabel()
[all …]
/openbsd/sys/arch/riscv64/stand/efiboot/
H A Defidev.c144 * MBR, and returns 1 otherwise. A GPT protective MBR would have one and only
183 * Called only if the MBR on sector 0 is *not* a protective MBR
193 struct dos_mbr mbr; in findopenbsd() local
205 /* Read MBR */ in findopenbsd()
206 bzero(&mbr, sizeof(mbr)); in findopenbsd()
216 dp = &mbr.dmbr_parts[i]; in findopenbsd()
223 (int)(dp - mbr.dmbr_parts), in findopenbsd()
260 * Called only if the MBR on sector 0 *is* a protective MBR
395 * via MBR. in efi_getdisklabel()
402 /* Check MBR signature. */ in efi_getdisklabel()
[all …]
/openbsd/distrib/landisk/ramdisk/
H A Dinstall.md47 if disk_has $_disk mbr; then
49 if disk_has $_disk mbr openbsd; then
54 echo "MBR has invalid signature; not showing it."
56 ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
59 echo -n "Setting OpenBSD MBR partition to whole $_disk..."
64 # Manually configure the MBR.
67 You will now create a single MBR partition to contain your OpenBSD data. This
75 disk_has $_disk mbr openbsd && return
76 echo No OpenBSD partition in MBR, try again. ;;
/openbsd/distrib/loongson/ramdisk/
H A Dinstall.md59 if disk_has $_disk mbr; then
61 if disk_has $_disk mbr openbsd; then
66 echo "MBR has invalid signature; not showing it."
68 ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
92 # Manually configure the MBR.
95 You will now create one MBR partition to contain your OpenBSD data
96 and one MBR partition to contain the program that PMON uses
99 The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
108 disk_has $_disk mbr linux ||
110 disk_has $_disk mbr openbsd ||
/openbsd/distrib/i386/common/
H A Dinstall.md52 if disk_has $_disk mbr; then
54 if disk_has $_disk mbr openbsd; then
59 echo "MBR has invalid signature; not showing it."
61 ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
64 echo -n "Setting OpenBSD MBR partition to whole $_disk..."
69 # Manually configure the MBR.
72 You will now create a single MBR partition to contain your OpenBSD data. This
80 disk_has $_disk mbr openbsd && return
81 echo No OpenBSD partition in MBR, try again. ;;
/openbsd/distrib/riscv64/ramdisk/
H A Dinstall.md47 local _disk=$1 _d _type=MBR
62 elif disk_has $_disk mbr; then
65 echo "MBR has invalid signature; not showing it."
107 # Manually configure the MBR.
110 You will now create one MBR partition to contain your OpenBSD data
111 and one MBR partition on which the OpenBSD boot program is located.
114 The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
122 disk_has $_disk mbr openbsd && return
123 echo -n "No OpenBSD partition in MBR,"
/openbsd/distrib/armv7/ramdisk/
H A Dinstall.md96 if disk_has $_disk mbr; then
99 echo "MBR has invalid signature; not showing it."
101 ask "Use (W)hole disk or (E)dit the MBR?" "$_d"
110 # Manually configure the MBR.
113 You will now create one MBR partition to contain your OpenBSD data
114 and one MBR partition on which the OpenBSD boot program is located.
117 The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
125 disk_has $_disk mbr openbsd && return
126 echo No OpenBSD partition in MBR, try again. ;;
/openbsd/sys/arch/amd64/stand/efiboot/
H A Defidev.c154 * MBR, and returns 1 otherwise. A GPT protective MBR would have one and only
193 * Called only if the MBR on sector 0 is *not* a protective MBR
203 struct dos_mbr mbr; in findopenbsd() local
215 /* Read MBR */ in findopenbsd()
216 bzero(&mbr, sizeof(mbr)); in findopenbsd()
226 dp = &mbr.dmbr_parts[i]; in findopenbsd()
233 (int)(dp - mbr.dmbr_parts), in findopenbsd()
270 * Called only if the MBR on sector 0 *is* a protective MBR
405 * via MBR. in efi_getdisklabel()
412 /* Check MBR signature. */ in efi_getdisklabel()
[all …]
/openbsd/sys/arch/arm64/stand/efiboot/
H A Defidev.c144 * MBR, and returns 1 otherwise. A GPT protective MBR would have one and only
183 * Called only if the MBR on sector 0 is *not* a protective MBR
193 struct dos_mbr mbr; in findopenbsd() local
205 /* Read MBR */ in findopenbsd()
206 bzero(&mbr, sizeof(mbr)); in findopenbsd()
216 dp = &mbr.dmbr_parts[i]; in findopenbsd()
223 (int)(dp - mbr.dmbr_parts), in findopenbsd()
260 * Called only if the MBR on sector 0 *is* a protective MBR
395 * via MBR. in efi_getdisklabel()
402 /* Check MBR signature. */ in efi_getdisklabel()
[all …]
/openbsd/distrib/notes/macppc/
H A Dinstall7 For stand-alone (No Mac OS installed) or dedicated disks, the MBR
41 HFS partitions, or MBR partitions.
49 HFS or MBR partitions.
110 MBR partitioning:
121 a single MBR partition spanning the whole disk, dedicated
125 your MBR partitioning. The current MBR partitions defined
130 After your OpenBSD MBR partition has been set up, the real
142 If the disk is partitioned using MBR, the bootloader will be

12345678