Re: Weird disklabel problem

2014-05-27 Thread Martijn Rijkeboer
>> OK, I got it booting. In a fairly useless config, but ... >> Booting from a -current amd64 cd55.iso cd-rom, I (E)dited the MBR so >> that the OpenBSD 'A6' partition started on sector 2048, and was 500MB >> in size. >> I accepted the auto configured disklabel (i.e. all space in 'a') and >> inst

Re: Weird disklabel problem

2014-05-10 Thread Martijn Rijkeboer
>>> Indeed. Experiments here show that plugging in a pci <-> sata card to >>> avoid the Intel SATA chip makes the disk work fine. >>> >>> Disks smaller than 1TB also work. So I'm guessing it's something >>> magical about 4K-sector disks presenting themselves as 512-byte sector >>> disks that is the

Re: Weird disklabel problem

2014-05-04 Thread Kenneth Westerback
On 4 May 2014 14:47, Andreas Bartelt wrote: > On 05/03/14 20:22, Kenneth Westerback wrote: >> >> On 3 May 2014 10:13, Andreas Bartelt wrote: >>> >>> On 05/03/14 15:01, Kenneth Westerback wrote: On 3 May 2014 08:49, Andreas Bartelt wrote: > > > On 05/03/14 14:10, Kennet

Re: Weird disklabel problem

2014-05-04 Thread Andreas Bartelt
On 05/03/14 20:22, Kenneth Westerback wrote: On 3 May 2014 10:13, Andreas Bartelt wrote: On 05/03/14 15:01, Kenneth Westerback wrote: On 3 May 2014 08:49, Andreas Bartelt wrote: On 05/03/14 14:10, Kenneth Westerback wrote: On 3 May 2014 06:27, Martijn Rijkeboer wrote: So marking a p

Re: Weird disklabel problem

2014-05-03 Thread Kenneth Westerback
On 3 May 2014 10:13, Andreas Bartelt wrote: > On 05/03/14 15:01, Kenneth Westerback wrote: >> >> On 3 May 2014 08:49, Andreas Bartelt wrote: >>> >>> On 05/03/14 14:10, Kenneth Westerback wrote: On 3 May 2014 06:27, Martijn Rijkeboer wrote: >> >> >> So marking a partiti

Re: Weird disklabel problem

2014-05-03 Thread Andreas Bartelt
On 05/03/14 15:01, Kenneth Westerback wrote: On 3 May 2014 08:49, Andreas Bartelt wrote: On 05/03/14 14:10, Kenneth Westerback wrote: On 3 May 2014 06:27, Martijn Rijkeboer wrote: So marking a partition as 'Active/Bootable', (the 00 -> 80 change) causes your system to hang. Apparently Linu

Re: Weird disklabel problem

2014-05-03 Thread Kenneth Westerback
On 3 May 2014 08:49, Andreas Bartelt wrote: > On 05/03/14 14:10, Kenneth Westerback wrote: >> >> On 3 May 2014 06:27, Martijn Rijkeboer wrote: So marking a partition as 'Active/Bootable', (the 00 -> 80 change) causes your system to hang. Apparently Linux does this when you 'La

Re: Weird disklabel problem

2014-05-03 Thread Andreas Bartelt
On 05/03/14 14:10, Kenneth Westerback wrote: On 3 May 2014 06:27, Martijn Rijkeboer wrote: So marking a partition as 'Active/Bootable', (the 00 -> 80 change) causes your system to hang. Apparently Linux does this when you 'Label' it. The OpenBSD installer does it for you when you select 'Whole

Re: Weird disklabel problem

2014-05-03 Thread Kenneth Westerback
On 3 May 2014 06:27, Martijn Rijkeboer wrote: >> So marking a partition as 'Active/Bootable', (the 00 -> 80 change) >> causes your system to hang. Apparently Linux does this when you >> 'Label' it. The OpenBSD installer does it for you when you >> select 'Whole disk'. Nothing obviously to do with

Re: Weird disklabel problem

2014-05-03 Thread Martijn Rijkeboer
> So marking a partition as 'Active/Bootable', (the 00 -> 80 change) > causes your system to hang. Apparently Linux does this when you > 'Label' it. The OpenBSD installer does it for you when you > select 'Whole disk'. Nothing obviously to do with the disklabel. You > could test this by manually >

Re: Weird disklabel problem

2014-05-01 Thread Kenneth Westerback
On 1 May 2014 14:59, Martijn Rijkeboer wrote: >> Can you provide a hex dump of the MBR Linux produces? The evidence would >> seem to point at the boot code stored in the MBR. To which I made a >> recent minor tweak. So you might also try a 5.4 install to see if it >> works. > > Below are the hexdu

Re: Weird disklabel problem

2014-05-01 Thread Martijn Rijkeboer
> Did you guys see my mail yesterday ? (albeit responding to the "Problem > booting OpenBSD-current AMD64" thread) Yes I did. Sorry for the late response. > First of all I'd expect OpenBSD to create its fdisk partition on the > partition with id 3, starting at LBA offset 64. (don't know if this

Re: Weird disklabel problem

2014-05-01 Thread Martijn Rijkeboer
> Your MBR OpenBSD partition is not flagged as active. Yes I know, but that doesn't matter for this problem.. Kind regards, Martijn Rijkeboer

Re: Weird disklabel problem

2014-05-01 Thread Martijn Rijkeboer
> Can you provide a hex dump of the MBR Linux produces? The evidence would > seem to point at the boot code stored in the MBR. To which I made a > recent minor tweak. So you might also try a 5.4 install to see if it > works. Below are the hexdumps of the MBR. The "before" was created with Linux an

Re: Weird disklabel problem

2014-05-01 Thread Maurice McCarthy
On Thu, May 01, 2014 at 09:06:49AM +0200 or thereabouts, Remco wrote: > >> fdisk before > >> > >> > >> Disk: /dev/rsd0cgeometry: 121601/255/63 [1953523055 Sectors] > >> Offset: 0 Signature: 0xAA55 > >> Starting Ending LBA Info: > >> #: id

Re: Weird disklabel problem

2014-05-01 Thread David Vasek
On Wed, 30 Apr 2014, Martijn Rijkeboer wrote: Hello, I've got a weird disklabel related problem (or so it seems). When I partition my harddisk with fdisk and add an OpenBSD (A6) primary partition the system can still boot, but once I place a disklabel on the partition (disklabel -E sd0) I can't

Re: Weird disklabel problem

2014-05-01 Thread Remco
>> fdisk before >> >> >> Disk: /dev/rsd0cgeometry: 121601/255/63 [1953523055 Sectors] >> Offset: 0 Signature: 0xAA55 >> Starting Ending LBA Info: >> #: id C H S - C H S [ start:size ] >> > --

Re: Weird disklabel problem

2014-04-30 Thread Kenneth Westerback
On 30 Apr 2014 03:28, "Martijn Rijkeboer" wrote: > > Hello, > > I've got a weird disklabel related problem (or so it seems). When I > partition my harddisk with fdisk and add an OpenBSD (A6) primary > partition the system can still boot, but once I place a disklabel > on the partition (disklabel -

Re: Weird disklabel problem

2014-04-30 Thread Kenneth Westerback
On 30 Apr 2014 15:57, "Kenneth Westerback" wrote: > > > On 30 Apr 2014 15:39, "Martijn Rijkeboer" wrote: > > > > > Please post at least a dmesg with the disk attached but no disklabel > > > plus fdisk and disklabel output after setting the label but before the > > > (failing) reboot. > > > > Belo

Re: Weird disklabel problem

2014-04-30 Thread Kenneth Westerback
On 30 Apr 2014 15:39, "Martijn Rijkeboer" wrote: > > > Please post at least a dmesg with the disk attached but no disklabel > > plus fdisk and disklabel output after setting the label but before the > > (failing) reboot. > > Below you will find the dmesg and output from fdisk and disklabel before

Re: Weird disklabel problem

2014-04-30 Thread Martijn Rijkeboer
> Please post at least a dmesg with the disk attached but no disklabel > plus fdisk and disklabel output after setting the label but before the > (failing) reboot. Below you will find the dmesg and output from fdisk and disklabel before and after labeling. I used Linux to partition the harddisk, b

Re: Weird disklabel problem

2014-04-30 Thread Otto Moerbeek
On Wed, Apr 30, 2014 at 01:36:53AM -0600, Martijn Rijkeboer wrote: > Hello, > > I've got a weird disklabel related problem (or so it seems). When I > partition my harddisk with fdisk and add an OpenBSD (A6) primary > partition the system can still boot, but once I place a disklabel > on the parti

Weird disklabel problem

2014-04-30 Thread Martijn Rijkeboer
Hello, I've got a weird disklabel related problem (or so it seems). When I partition my harddisk with fdisk and add an OpenBSD (A6) primary partition the system can still boot, but once I place a disklabel on the partition (disklabel -E sd0) I can't boot the system anymore (it freezes during the p