On 06/20/14 09:17, Kenneth Westerback wrote: > On 20 June 2014 08:27, Jiri B <[email protected]> wrote: >> I changed partition id from A6 to NTFS of running OpenBSD >> 5.5 (16.-18.6. amd64 snapshot) and after a while OS freezed. >> >> Reproduce steps: >> - 5.5 snapshot amd64 >> (under RHEVM Linux/KVM: virtio block, virtio net) >> - install OS >> - boot OS >> - fdisk -e sd0 >> - change A6 to NTFS, save, exit fdisk >> - wait a moment, meanwhile browser filesystem >> >> Screenshots: >> - http://devio.us/~jirib/trace.png >> - http://devio.us/~jirib/ps1.png >> - http://devio.us/~jirib/ps2.png >> >> I see kernel panic (retyped): > > I'm not sure, but this sounds like "Doctor, when I pointed the loaded > gun at my head and pulled the trigger I got a bad headache.". > > Leave aside for the moment the extra confusion of doing this on a VM. > Are you expecting you should be able to change fdisk partition id's on > an in-use disk? Or are you expecting fdisk to grab the gun from your > hand before you can pull the trigger? In the former case, why would > you want to do this? In the latter case, would there never be a > situation where you REALLY need to do this? Should fdisk fiddling in > general be forbidden or just partition type changes?
I have, at times expected to make changes like this on a in-use partition (well, probably once expecting, and second time, well, seeing if it still hurts when I do that). Purpose: putting multiple versions of OpenBSD on one machine -- back when I had ONE amd64 system which also was my fastest i386 system, so I wanted to be able to flip between OSs. Figured it would be easy -- two partitions on it, and change the partition type from A6 to non-A6 and the non-A6 partition to A6, change the default partition, reboot and ta-da, booting off a different version of OpenBSD. yep, didn't work. I'm fine with that. Fiddling with active partitions is a known risk on all OSs. I was hoping to get lucky, I didn't, fine. I do NOT want fdisk to limit what I can do with partitions. I like the ability to do things with OpenBSD's fdisk that other OSs "protect" me from doing. Nick.
