NetBSD-Bugs archive

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

bin/51504: gpt(8) cannot create GPT on zeroed(fresh) disk



>Number:         51504
>Category:       bin
>Synopsis:       gpt(8) cannot create GPT on zeroed(fresh) disk
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 24 11:20:00 +0000 2016
>Originator:     clare%csel.org@localhost
>Release:        NetBSD 7.99.36
>Organization:
	at home
>Environment:
		gpt(8) updated as of today.
		# cd $src/sbin/gpt; make clean; make; make install
System: NetBSD yuzuki.csel.org 7.99.36 NetBSD 7.99.36 (YUZUKI1) #4: Sat Sep 10 22:54:05 JST 2016  clare%yuzuki.csel.org@localhost:/export/stage/hack/sys/arch/amd64/compile/YUZUKI1 amd64
Architecture: x86_64
Machine: amd64
>Description:
	gpt(8) cannot create GPT on zeroed(fresh) disk
>How-To-Repeat:
# DISK=/dev/rsd0d
# dd if=/dev/zero of=$DISK bs=1m count=1
1+0 records in
1+0 records out
1048576 bytes transferred in 0.103 secs (10180349 bytes/sec)
# gpt -v create -p 24 $DISK
/dev/rsd0d: mediasize=3000592982016; sectorsize=512; blocks=5860533168
/dev/rsd0d: MBR not found at sector 0
gpt: /dev/rsd0d: Device already contains a GPT
# gpt show $DISK
       start        size  index  contents
           0           1         PMBR
           1  5860533160         Unused
  5860533161           6         Sec GPT table
  5860533167           1         Sec GPT header
>Fix:
	Unknown...



Home | Main Index | Thread Index | Old Index