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
...

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 and 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

Reply via email to