NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/51230 CVS commit: src/sbin/gpt



The following reply was made to PR bin/51230; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: Hauke Fath <hf%spg.tu-darmstadt.de@localhost>, gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost
Subject: Re: PR/51230 CVS commit: src/sbin/gpt
Date: Thu, 9 Jun 2016 13:51:02 -0400

 On Jun 9,  5:32pm, hf%spg.tu-darmstadt.de@localhost (Hauke Fath) wrote:
 -- Subject: Re: PR/51230 CVS commit: src/sbin/gpt
 
 | On Thu,  9 Jun 2016 15:15:01 +0000 (UTC), Christos Zoulas wrote:
 | > PR/51230: Add the ability to set the active flag in the PMBR.
 | 
 | Thanks! But...
 | 
 | # bin/gpt-current sd0 biosboot -a -i1
 | gpt-current: unknown option -- a
 | Usage: gpt-current <device> biosboot [-c bootcode] [-i index] [-L label]
 | #  
 | 
 | and gpt.8 renders to
 | 
 |      gpt biosboot [-ac bootcode] [-i index] [-L label]
 
 Hmm...
 
 [1:49pm] 106#dd if=/dev/zero of=foo count=10000
 10000+0 records in
 10000+0 records out
 5120000 bytes transferred in 0.361 secs (14182825 bytes/sec)
 [1:49pm] 107#obj.amd64/gpt create foo
 [1:49pm] 108#obj.amd64/gpt add -l test foo
 foo: Partition 1 added: 49f48d5a-b10e-11dc-b99b-0019d1879648 34 9933
 [1:49pm] 109#obj.amd64/gpt biosboot -a -i 1 foo
 foo: Partition 1 marked as bootable
 [1:49pm] 110#fdisk foo
 Disk: foo
 NetBSD disklabel disk geometry:
 cylinders: 1, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
 total sectors: 10000, bytes/sector: 512
 
 BIOS disk geometry:
 cylinders: 1, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
 total sectors: 10000
 
 Partitions aligned to 16065 sector boundaries, offset 63
 
 Partition table:
 0: GPT Protective MBR (sysid 238)
     start 1, size 9999 (5 MB, Cyls 0/0/2-0/158/46), Active
 	    PBR is not bootable: Bad magic number (0x0000)
 	    1: <UNUSED>
 	    2: <UNUSED>
 	    3: <UNUSED>
 	    First active partition: 0
 	    Drive serial number: 0 (0x00000000)
 
 
 christos
 


Home | Main Index | Thread Index | Old Index