Re: [Q] NVMe 1TB Samsung drive, Thinkpad X1 Carbon 4th Generation
are you booting your USB drive in UEFI mode? or legacy? d At 2016-12-12 02:43:32, "Bryan C. Everly" wrote: >Hi tech@, > >I'm trying to install OpenBSD in a partition on this drive. I created >an OpenBSD type (0xa600) partition type with a GPT layout from Arch >Linux when I was installing it on this same hardware (I want to dual >boot using refind). > >You can see from the lsblk output on Linux below how things are structured: > >NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT >nvme0n1259:00 953.9G 0 disk >├─nvme0n1p3259:30 453.9G 0 part >├─nvme0n1p1259:10 2G 0 part /boot >└─nvme0n1p2259:20 498G 0 part > └─crypt 254:00 498G 0 crypt >├─lvmpool-root 254:1035G 0 lvm / >├─lvmpool-swap 254:2016G 0 lvm [SWAP] >└─lvmpool-home 254:30 447G 0 lvm /home > >When I boot the latest snapshot install60.fs USB drive (my preferred >method of installing), what I'm seeing looks like the drive is >recognized, but for some reason, disklabel is not seeing the right >data and says the OpenBSD area takes up the entire disk. My concern >is that if I install, it will whack the existing disk structure and >I'll lose my Linux install. > >I'd appreciate any advice on how to troubleshoot this. Here is the >output of disklabel, fdisk and dmesg: > >[# fdisk -v sd0] > >Primary GPT: >Disk: sd0 Usable LBA: 34 to 2000409230 [2000409265 Sectors] >GUID: e044f116-3aa6-4bb0-b06e-655c4f928486 > #: type [ start: size ] > guid name > > 0: EFI Sys [2048: 4192257 ] > fba5492e-ddcd-40d5-afab-fce7f2886eef EFI System > 1: Linux files* [ 4196352: 1044379649 ] > a3a8a6d5-d881-4529-aab2-d383db3ebb2f Linux filesystem > 2: OpenBSD [ 1048578048:951831183 ] > c004f9b9-5ec6-4841-89ec-6b5149a74810 OpenBSD disklabel > >Secondary GPT: >Not Found > >MBR: >Disk: sd0geometry: 124519/255/63 [2000409265 Sectors] >Offset: 0Signature: 0xAA55 >Starting Ending LBA Info: > #: id C H S - C H S [ start:size ] >--- > 0: EE 0 0 2 - 124519 182 63 [ 1: 2000409263 ] EFI GPT > 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > >[#disklabel sd0] > ># /dev/rsd0c: >type: SCSI >disk: SCSI disk >label: SAMSUNG MZSLW1T0 >duid: >flags: >bytes/sector: 512 >sectors/track: 63 >tracks/cylinder: 255 >sectors/cylinder: 16065 >cylinders: 124519 >total sectors: 2000409265 >boundstart: 0 >boundend: 2000409265 >drivedata: 0 > >16 partitions: >#size offset fstype [fsize bsize cpg] > c: 20004092650 unused > >[#dmesg] > >OpenBSD 6.0-current (RAMDISK_CD) #21: Wed Dec 7 23:24:13 MST 2016 >bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD >real mem = 16523563008 (15758MB) >avail mem = 16021069824 (15278MB) >mainbus0 at root >bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7c05000 (65 entries) >bios0: vendor LENOVO version "N1FET44W (1.18 )" date 09/01/2016 >bios0: LENOVO 20FBCTO1WW >acpi0 at bios0: rev 2 >acpi0: tables DSDT FACP TCPA SSDT UEFI SSDT SSDT ECDT HPET APIC MCFG >SSDT SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI >acpiec0 at acpi0 >acpimadt0 at acpi0 addr 0xfee0: PC-AT compat >cpu0 at mainbus0: apid 0 (boot processor) >cpu0: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2808.00 MHz >cpu0: >FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT >cpu0: 256KB 64b/line 8-way L2 cache >cpu0: TSC frequency 280800 Hz >cpu0: apic clock running at 24MHz >cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE >cpu at mainbus0: not configured >cpu at mainbus0: not configured >cpu at mainbus0: not configured >ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins >acpiprt0 at acpi0: bus 0 (PCI0) >acpiprt1 at acpi0: bus -1 (PEG0) >acpiprt2 at acpi0: bus -1 (PEG1) >acpiprt3 at acpi0: bus -1 (PEG2) >acpiprt4 at acpi0: bus 2 (EXP1) >acpiprt5 at acpi0: bus 4 (EXP3) >acpiprt6 at acpi0: bus 5 (EXP5) >acpiprt7 at acpi0: bus -1 (EXP9) >acpicpu at acpi0 not configured >acpipwrres at a
Re: [Q] NVMe 1TB Samsung drive, Thinkpad X1 Carbon 4th Generation
On Sun, Dec 11, 2016 at 3:45 PM, dkroczyn...@163.com wrote: > are you booting your USB drive in UEFI mode? or legacy? > > d > Good question. Turns out it was booting in Legacy by default. I completely disabled legacy boot in the bios and rebooted from the USB drive. I got the same results (albeit with a smaller font). Any ideas? I'm starting to think that I might have to back up my Linux partition, wipe the drive, install OpenBSD first, then re-enable Linux. I'd really hate to have to do that but I'm willing to if that's where I end up.
Re: [Q] NVMe 1TB Samsung drive, Thinkpad X1 Carbon 4th Generation
On Sun, Dec 11, 2016 at 3:18 PM, Bryan Steele wrote: > On Sun, Dec 11, 2016 at 01:43:32PM -0500, Bryan C. Everly wrote: >> [# fdisk -v sd0] >> >> Primary GPT: >> Disk: sd0 Usable LBA: 34 to 2000409230 [2000409265 Sectors] >> GUID: e044f116-3aa6-4bb0-b06e-655c4f928486 >> ... >> >> Secondary GPT: >> Not Found > > Could it be this perhaps? Maybe the missing backup GPT is preventing > the creation of the pseudo-disklabel with the other partitions and > just showing it as a blank disk? > > I believe there are utilities in Linux to make sure the primary and > seconary GPT are in sync. > > -Bryan. > Unfortunately everything checks out AOK on the Linux side for that drive. I used 0xa600 for the partition type for OpenBSD. From reading it looks like that is "OpenBSD MBR". Is there a different ID that I should be using for an OpenBSD GPT partition?
Re: [Q] NVMe 1TB Samsung drive, Thinkpad X1 Carbon 4th Generation
On Sun, Dec 11, 2016 at 01:43:32PM -0500, Bryan C. Everly wrote: > [# fdisk -v sd0] > > Primary GPT: > Disk: sd0 Usable LBA: 34 to 2000409230 [2000409265 Sectors] > GUID: e044f116-3aa6-4bb0-b06e-655c4f928486 > ... > > Secondary GPT: > Not Found Could it be this perhaps? Maybe the missing backup GPT is preventing the creation of the pseudo-disklabel with the other partitions and just showing it as a blank disk? I believe there are utilities in Linux to make sure the primary and seconary GPT are in sync. -Bryan.
[Q] NVMe 1TB Samsung drive, Thinkpad X1 Carbon 4th Generation
Hi tech@, I'm trying to install OpenBSD in a partition on this drive. I created an OpenBSD type (0xa600) partition type with a GPT layout from Arch Linux when I was installing it on this same hardware (I want to dual boot using refind). You can see from the lsblk output on Linux below how things are structured: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1259:00 953.9G 0 disk ├─nvme0n1p3259:30 453.9G 0 part ├─nvme0n1p1259:10 2G 0 part /boot └─nvme0n1p2259:20 498G 0 part └─crypt 254:00 498G 0 crypt ├─lvmpool-root 254:1035G 0 lvm / ├─lvmpool-swap 254:2016G 0 lvm [SWAP] └─lvmpool-home 254:30 447G 0 lvm /home When I boot the latest snapshot install60.fs USB drive (my preferred method of installing), what I'm seeing looks like the drive is recognized, but for some reason, disklabel is not seeing the right data and says the OpenBSD area takes up the entire disk. My concern is that if I install, it will whack the existing disk structure and I'll lose my Linux install. I'd appreciate any advice on how to troubleshoot this. Here is the output of disklabel, fdisk and dmesg: [# fdisk -v sd0] Primary GPT: Disk: sd0 Usable LBA: 34 to 2000409230 [2000409265 Sectors] GUID: e044f116-3aa6-4bb0-b06e-655c4f928486 #: type [ start: size ] guid name 0: EFI Sys [2048: 4192257 ] fba5492e-ddcd-40d5-afab-fce7f2886eef EFI System 1: Linux files* [ 4196352: 1044379649 ] a3a8a6d5-d881-4529-aab2-d383db3ebb2f Linux filesystem 2: OpenBSD [ 1048578048:951831183 ] c004f9b9-5ec6-4841-89ec-6b5149a74810 OpenBSD disklabel Secondary GPT: Not Found MBR: Disk: sd0geometry: 124519/255/63 [2000409265 Sectors] Offset: 0Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- 0: EE 0 0 2 - 124519 182 63 [ 1: 2000409263 ] EFI GPT 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused [#disklabel sd0] # /dev/rsd0c: type: SCSI disk: SCSI disk label: SAMSUNG MZSLW1T0 duid: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 124519 total sectors: 2000409265 boundstart: 0 boundend: 2000409265 drivedata: 0 16 partitions: #size offset fstype [fsize bsize cpg] c: 20004092650 unused [#dmesg] OpenBSD 6.0-current (RAMDISK_CD) #21: Wed Dec 7 23:24:13 MST 2016 bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem = 16523563008 (15758MB) avail mem = 16021069824 (15278MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7c05000 (65 entries) bios0: vendor LENOVO version "N1FET44W (1.18 )" date 09/01/2016 bios0: LENOVO 20FBCTO1WW acpi0 at bios0: rev 2 acpi0: tables DSDT FACP TCPA SSDT UEFI SSDT SSDT ECDT HPET APIC MCFG SSDT SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2808.00 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT cpu0: 256KB 64b/line 8-way L2 cache cpu0: TSC frequency 280800 Hz cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG0) acpiprt2 at acpi0: bus -1 (PEG1) acpiprt3 at acpi0: bus -1 (PEG2) acpiprt4 at acpi0: bus 2 (EXP1) acpiprt5 at acpi0: bus 4 (EXP3) acpiprt6 at acpi0: bus 5 (EXP5) acpiprt7 at acpi0: bus -1 (EXP9) acpicpu at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpitz at acpi0 not configured "