Sebastian Rother wrote: > On Sun, 6 May 2007 11:12:54 -0700 > "Ted Unangst" <[EMAIL PROTECTED]> wrote: > >> On 5/6/07, Sebastian Rother <[EMAIL PROTECTED]> wrote: >> > Hello everybody, >> > >> > I`ve a problem with one HDD wich has 3 empty Partitions at the >> > beginning. I wanted to remove those partitions but OpenBSDs fdisk >> > doesn`t know about a "delete" Command and disklabel so far shows just >> > the OpenBSD (4th) partition. >> >> reinit? make them size 0? > > Thanks! > During reading the manpage I did not understand it that way. > So i didn`t tried "reinit" so far.
make sure you understand what it says before using it. :) > I have currently the Problem that fdisks shows me 3 garbage partitions > but disklabel does not. > The garbage Partitions have a size of 0 and also every other Value is > 0.... That's not "garbage", that's just "accurate". :) It sounds like you are getting something similar to: Disk: sd0 geometry: 4398/255/63 [70653870 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------ 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused *3: A6 0 1 1 - 4397 254 63 [ 63: 70653807 ] OpenBSD ? If so, that's all you get. There ARE ALWAYS four partitions in the MBR. OpenBSD always shows you all four...even if they are "unused", empty, non-existent partitions. We'll ignore extended partitions, as they are not in the main MBR. :) > So making them size 0 wont help, or? > Or do I may missundertand the manual for fdisk here? If I'm understanding the question, you are just misunderstanding the output. I think you want to see this: Disk: sd0 geometry: 4398/255/63 [70653870 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------ *1: A6 0 1 1 - 4397 254 63 [ 63: 70653807 ] OpenBSD and that's not what OpenBSD gives you. Those other entries in the partition table exist, and the OpenBSD partition is the third one in my example. Having done battle with a heck of a lot of partitioning utilities on a lot of different OSs and a lot of different platforms, I rather like the OpenBSD way...it shows you the truth, not a glossed over interpretation intended for the mass market. Because of this, I've used OpenBSD's fdisk to clean up messes that other OS's could take care of natively. Nick.