Bug 45818

Summary: Cannot repartition drives: operation not permitted
Product: Base System Reporter: Niklas Johannes Saers <niklasjs>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Niklas Johannes Saers 2002-11-28 12:00:03 UTC
su-2.05a# fdisk -u ar0
fdisk: can't open device /dev/ar0
fdisk: cannot open disk /dev/ar0: Operation not permitted
su-2.05a# fdisk -u /dev/ar0
fdisk: can't open device /dev/ar0
fdisk: cannot open disk /dev/ar0: Operation not permitted


I came across this problem while doing /stand/sysinstall to edit
the partitions (I've got a 4GB partition I'd like to use for testing
gbde)

Fix: 

None, except for don't edit the partition
How-To-Repeat: It happens without exception on my computer, so I'm willing to help try
out patches and solutions. I cannot confirm that this is a problem on
all setups. But at least you have my configuration through the dmesg above
Comment 1 Søren Schmidt freebsd_committer freebsd_triage 2003-05-05 13:46:39 UTC
State Changed
From-To: open->closed


You cannot change the disk layout while having it open and attached 
by the system (footshooting not allowed).