bin/159765: fdisk(8) cannot set active partition using '-u' option

Hyogeol Lee hyogeollee at gmail.com
Sun Aug 14 13:00:20 UTC 2011


>Number:         159765
>Category:       bin
>Synopsis:       fdisk(8) cannot set active partition using '-u' option
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 14 13:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Hyogeol Lee
>Release:        FreeBSD 9.0-current
>Organization:
BTS technologies
>Environment:
FreeBSD darkstar 9.0-BETA1 FreeBSD 9.0-BETA1 #0: Sat Aug  6 02:51:38 KST 2011     root at darkstar:/usr/obj/usr/src/sys/QUEEN  amd64
>Description:
I have failed to set active partition using '-u' option of fdisk(8) on 9.0-current.

The error message was "Active partition number must be in range 1-4.  Try again.".

This is full message while fdisk:


******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=10443 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=10443 heads=255 sectors/track=63 (16065 blks/cyl)

Do you want to change our idea of what BIOS thinks ? [n] 
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 238 (0xee),(EFI GPT)
    start 1, size 167772159 (81919 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 1023/ head 255/ sector 63
Do you want to change it? [n] 
The data for partition 2 is:
<UNUSED>
Do you want to change it? [n] 
The data for partition 3 is:
<UNUSED>
Do you want to change it? [n] 
The data for partition 4 is:
<UNUSED>
Do you want to change it? [n] 
Partition 1 is marked active
Do you want to change the active partition? [n] y
Supply a decimal value for "active partition" [1] 1
Active partition number must be in range 1-4.  Try again.
Supply a decimal value for "active partition" [1] 2
Active partition number must be in range 1-4.  Try again.
Supply a decimal value for "active partition" [1] 3
Active partition number must be in range 1-4.  Try again.
Supply a decimal value for "active partition" [1] 4
Active partition number must be in range 1-4.  Try again.
Supply a decimal value for "active partition" [1]
>How-To-Repeat:
'fdisk -u' to your disk and try to set active partition

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list