Equivalent to linux disk delete?
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. What would be the OpenBSD equivalent to Linux fdisk delete? I can`t use disklabel because disklabel does not show those 3 empty Partitions. Kind regards, Sebastian
Re: Equivalent to linux disk delete?
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? What would be the OpenBSD equivalent to Linux fdisk delete? I can`t use disklabel because disklabel does not show those 3 empty Partitions. Kind regards, Sebastian
Re: Equivalent to linux disk delete?
At 01:51 PM 5/6/07, Sebastian Rother wrote: I wanted to remove those partitions but OpenBSDs fdisk doesn`t know about a delete Command If you edit a partition with 'e' command; you'll see Partition id ('0' to disable). Try it.
Re: Equivalent to linux disk delete?
On Sun, May 06, 2007 at 07:51:14PM +0200, Sebastian Rother 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. | | What would be the OpenBSD equivalent to Linux fdisk delete? | I can`t use disklabel because disklabel does not show those 3 empty | Partitions. Use at your own risk : dd if=/dev/zero of=/dev/hdXc bs=1 count=48 seek=446 This will give you serious headaches if you dont know what you're doing and you actually wanted to keep some data on the disk. Backup before shooting yourself in the foot. Cheers, Paul 'WEiRD' de Weerd -- [++-]+++.+++[---].+++[+ +++-].++[-]+.--.[-] http://www.weirdnet.nl/ [demime 1.01d removed an attachment of type application/pgp-signature]
Re: Equivalent to linux disk delete?
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. 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 So making them size 0 wont help, or? Or do I may missundertand the manual for fdisk here? Kind regards, Sebastian
Re: Equivalent to linux disk delete?
On Sun, May 06, 2007 at 07:51:14PM +0200, Sebastian Rother 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. Set their type to 0 with fdisk (fdisk -e, e #part, 0 to disable, etc). That said, I wouldn't recommend anyone to use the OpenBSD fdisk, unless they really know what they're doing :) It's too obtuse and error prone.
Re: Equivalent to linux disk delete?
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: #: idC H S -C H S [ start: size ] 0: 000 0 0 -0 0 0 [ 0: 0 ] unused 1: 000 0 0 -0 0 0 [ 0: 0 ] unused 2: 000 0 0 -0 0 0 [ 0: 0 ] unused *3: A60 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: #: idC H S -C H S [ start: size ] *1: A60 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.
Re: Equivalent to linux disk delete?
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. 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 So making them size 0 wont help, or? Or do I may missundertand the manual for fdisk here? Kind regards, Sebastian The DOS (Microsoft Windows) partition table has 4 entries. Regardless of how many are or are not used for anything. The unused partitions are pretty much zeroed. DOS likes to use partition 1 (counting 1,2,3,4) OpenBSD likes to use partition 3 (counting 0,1,2,3) Other than BIOS bootstrap, OpenBSD pretty much ignores the DOS partition table and instead uses the OpenBSD disklabel to specify what is stored where. I think if you are brave and daring (or ???) you can survive very nicely when there is NO correspondence between the two.
Re: Equivalent to linux disk delete?
On Sun, May 06, 2007 at 09:49:18PM +0300, [EMAIL PROTECTED] wrote: On Sun, May 06, 2007 at 07:51:14PM +0200, Sebastian Rother wrote: doesn`t know about a delete Command and disklabel so far shows just the OpenBSD (4th) partition. Set their type to 0 with fdisk (fdisk -e, e #part, 0 to disable, etc). That said, I wouldn't recommend anyone to use the OpenBSD fdisk, unless they really know what they're doing :) It's too obtuse and error prone. Don't you _have_ to use it to run the install? Doug.
Re: Equivalent to linux disk delete?
Douglas Allan Tutty wrote: On Sun, May 06, 2007 at 09:49:18PM +0300, [EMAIL PROTECTED] wrote: On Sun, May 06, 2007 at 07:51:14PM +0200, Sebastian Rother wrote: doesn`t know about a delete Command and disklabel so far shows just the OpenBSD (4th) partition. Set their type to 0 with fdisk (fdisk -e, e #part, 0 to disable, etc). That said, I wouldn't recommend anyone to use the OpenBSD fdisk, unless they really know what they're doing :) It's too obtuse and error prone. Don't you _have_ to use it to run the install? Not if you answer yes in Do you want to use all disk for OpenBSD :)
Re: Equivalent to linux disk delete?
On Sun, 6 May 2007, Douglas Allan Tutty wrote: On Sun, May 06, 2007 at 09:49:18PM +0300, [EMAIL PROTECTED] wrote: On Sun, May 06, 2007 at 07:51:14PM +0200, Sebastian Rother wrote: doesn`t know about a delete Command and disklabel so far shows just the OpenBSD (4th) partition. Set their type to 0 with fdisk (fdisk -e, e #part, 0 to disable, etc). That said, I wouldn't recommend anyone to use the OpenBSD fdisk, unless they really know what they're doing :) It's too obtuse and error prone. Don't you _have_ to use it to run the install? No, at least if you use the whole disk to install OpenBSD too. I that case, the fdisk step becomes totally automatic and thus uninteresting. Another alternative is to use a sane architecture that does not require fdisk. -Otto