Dear OpenBSD community, I have got some SCSI magneto-optical drive together with a new 2.3GB removable MO disk. My system has configured it as follows:
OpenBSD 4.8 (GENERIC.MP) #335: Mon Aug 16 09:09:20 MDT 2010 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP ... sd0 at scsibus0 targ 3 lun 0: <FUJITSU, MCJ3230SS, 0010> SCSI2 0/direct removable sd0: 2076MB, 2048 bytes/sec, 1063146 sec total ... (You will find a full dmesg.boot listing attached to this message.) In any case I want to use the whole disk for OpenBSD FFS. I could install some "raw" filesystem # newfs -N /dev/rsd0c /dev/rsd0c: 2076.5MB in 4252584 sectors of 2048 bytes 11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each super-block backups (for fsck -b #) at: 32, 414688, 829344, 1244000, 1658656, 2073312, 2487968, 2902624, 3317280, 3731936, 4146592, but this is not recommended in FAQ (Chapter 14) and also not my intention. So I tried to format and label the whole disk to get at a first attempt some OpenBSD partition e: # fdisk -u sd0 Do you wish to write new MBR? [n] y Writing MBR at offset 0. # fdisk sd0 Disk: sd0 geometry: 519/64/32 [1063146 2048-byte 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 - 518 63 32 [ 32: 1062880 ] OpenBSD # disklabel -E sd0 Label editor (enter '?' for help at any prompt) > a e offset: [32] size: [1062880] FS type: [4.2BSD] > p OpenBSD area: 32-1062912; size: 1062880; free: 0 # size offset fstype [fsize bsize cpg] c: 1063146 0 unused e: 1062880 32 4.2BSD 2048 16384 1 > w > q No label changes. # But the disk label seems to be unchanged: # disklabel sd0 # /dev/rsd0c: type: SCSI disk: SCSI disk label: MCJ3230SS uid: 0000000000000000 flags: bytes/sector: 2048 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 519 total sectors: 1063146 boundstart: 32 boundend: 1062912 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 1063146 0 unused # newfs -N /dev/rsd0e newfs: /dev/rsd0e: Device not configured # eject sd0 What went wrong? The procedure works for usual hard disks or memory sticks with sectors of 512 bytes. I would be grateful for any hint. (As a final aim I would like to have some bootable magneto-optical disk with root partition a: and two more partitions d: and e: ...) Thank you in advance, Jens OpenBSD 4.8 (GENERIC.MP) #335: Mon Aug 16 09:09:20 MDT 2010 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3211198464 (3062MB) avail mem = 3111899136 (2967MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf06f0 (62 entries) bios0: vendor American Megatrends Inc. version "0705" date 06/29/2010 bios0: ASUSTeK Computer INC. P7F-M WS acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT acpi0: wakeup devices BR1E(S4) UAR1(S4) PS2K(S4) PS2M(S4) EUSB(S4) USB0(S4) USB1(S4) USB2(S4) USB3(S4) USBE(S4) USB4(S4) USB5(S4) USB6(S4) BR21(S4) BR22(S4) BR23(S4) P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) USB8(S4) BR20(S4) BR24(S4) BR25(S4) BR26(S4) BR27(S4) PWRB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1867.04 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG cpu0: 256KB 64b/line 8-way L2 cache cpu0: apic clock running at 133MHz cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.73 MHz cpu1: 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG cpu1: 256KB 64b/line 8-way L2 cache cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.73 MHz cpu2: 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG cpu2: 256KB 64b/line 8-way L2 cache cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.73 MHz cpu3: 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG cpu3: 256KB 64b/line 8-way L2 cache ioapic0 at mainbus0: apid 7 pa 0xfec00000, version 20, 24 pins ioapic0: misconfigured as apic 1, remapped to apid 7 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 6 (BR1E) acpiprt2 at acpi0: bus -1 (BR21) acpiprt3 at acpi0: bus -1 (BR22) acpiprt4 at acpi0: bus -1 (BR23) acpiprt5 at acpi0: bus -1 (P0P1) acpiprt6 at acpi0: bus -1 (P0P3) acpiprt7 at acpi0: bus -1 (P0P4) acpiprt8 at acpi0: bus -1 (P0P5) acpiprt9 at acpi0: bus -1 (P0P6) acpiprt10 at acpi0: bus 1 (BR20) acpiprt11 at acpi0: bus 4 (BR26) acpiprt12 at acpi0: bus 5 (BR27) acpicpu0 at acpi0: C3, C3, C1, PSS acpicpu1 at acpi0: C3, C3, C1, PSS acpicpu2 at acpi0: C3, C3, C1, PSS acpicpu3 at acpi0: C3, C3, C1, PSS acpibtn0 at acpi0: PWRB ipmi at mainbus0 not configured cpu0: Enhanced SpeedStep 1866 MHz: speeds: 1868, 1867, 1733, 1600, 1467, 1333, 1200 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11 "Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured "Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured "Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured "Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured "Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured "Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 7 int 16 (irq 10) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia0 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x05: apic 7 int 22 (irq 7) azalia0: no HD-Audio codecs azalia0: initialization failure, detaching ppb0 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: apic 7 int 17 (irq 5) pci1 at ppb0 bus 1 em0 at pci1 dev 0 function 0 "Intel PRO/1000 PT (82575EB)" rev 0x02: apic 7 int 16 (irq 10), address 00:25:90:0f:20:d0 em1 at pci1 dev 0 function 1 "Intel PRO/1000 PT (82575EB)" rev 0x02: apic 7 int 17 (irq 5), address 00:25:90:0f:20:d1 ppb1 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05 pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x05 pci3 at ppb2 bus 3 ppb3 at pci0 dev 28 function 6 "Intel 3400 PCIE" rev 0x05 pci4 at ppb3 bus 4 ppb4 at pci0 dev 28 function 7 "Intel 3400 PCIE" rev 0x05 pci5 at ppb4 bus 5 ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 7 int 23 (irq 10) usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5 pci6 at ppb5 bus 6 vga1 at pci6 dev 1 function 0 "3DFX Voodoo3" rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ahc0 at pci6 dev 2 function 0 vendor "Adaptec", unknown product 0x0082 rev 0x02: apic 7 int 21 (irq 3) scsibus0 at ahc0: 8 targets, initiator 7 sd0 at scsibus0 targ 3 lun 0: <FUJITSU, MCJ3230SS, 0010> SCSI2 0/direct removable sd0: 2076MB, 2048 bytes/sec, 1063146 sec total pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05 ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: apic 7 int 21 (irq 3), AHCI 1.3 scsibus1 at ahci0: 32 targets sd1 at scsibus1 targ 0 lun 0: <ATA, SSDSA2SH064G1GC, 045C> SCSI3 0/direct fixed sd1: 61057MB, 512 bytes/sec, 125045424 sec total sd2 at scsibus1 targ 1 lun 0: <ATA, SSDSA2SH032G1GN, 045C> SCSI3 0/direct fixed sd2: 30517MB, 512 bytes/sec, 62500000 sec total cd0 at scsibus1 targ 5 lun 0: <Optiarc, DVD RW AD-7260S, 1.00> ATAPI 5/cdrom removable ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 7 int 18 (irq 11) iic0 at ichiic0 sdtemp0 at iic0 addr 0x18: stts424e02 iic0: addr 0x19 00=00 01=00 02=00 03=00 04=00 05=c2 06=10 07=03 08=01 09=00 0a=00 0b=00 words 00=006f 01=0000 02=0000 03=0000 04=0000 05=c22c 06=104a 07=0300 sdtemp1 at iic0 addr 0x1a: stts424e02 iic0: addr 0x1b 00=00 01=00 02=00 03=00 04=00 05=c2 06=10 07=03 08=01 09=00 0a=00 0b=00 words 00=006f 01=0000 02=0000 03=0000 04=0000 05=c278 06=104a 07=0300 spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM registered ECC PC3-10600 with thermal sensor spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM registered ECC PC3-10600 with thermal sensor spdmem2 at iic0 addr 0x52: 4GB DDR3 SDRAM registered ECC PC3-10600 with thermal sensor spdmem3 at iic0 addr 0x53: 4GB DDR3 SDRAM registered ECC PC3-10600 with thermal sensor isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lm0 at isa0 port 0x290/8: W83627DHG mtrr: Pentium Pro MTRR support uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 softraid0 at root ahc0: target 3 synchronous at 20.0MHz, offset = 0xf root on sd1a swap on sd1b dump on sd1b