Monah Baki [[email protected]] wrote: > # newfs /dev/rsd0a > /dev/rsd0a: 123.0MB in 251840 sectors of 512 bytes > 4 cylinder groups of 30.74MB, 3935 blocks, 7872 inodes each > newfs: wtfs: write error on block 16: Input/output error > > Same error. I never seen this error before and I've used newfs before. >
you're writing a disklabel from another size image to a flash that is probably smaller. try: dd if=/dev/zero of=/dev/rsd0c bs=1m count=1 fdisk -i sd0 disklabel -E sd0 > On Sat, Jan 30, 2016 at 8:10 PM, Edgar Pettijohn > <[email protected]> wrote: > > On 01/30/16 18:15, Monah Baki wrote: > >> > >> Hi all, > >> > >> Trying to newfs an old 128MB flashcard on my OpenBSD 5.7, so I can > >> install OpenBSd on it to run on a Soekris. > >> > >> # dmesg | grep sd0 > >> sd0 at scsibus5 targ 1 lun 0: <Generic-, Multi-Card, 1.00> SCSI4 > >> 0/direct removable serial.0bda0309201209010309 > >> sd0: 123MB, 512 bytes/sector, 251904 sectors > >> > >> # disklabel sd0 > >> # /dev/rsd0c: > >> type: SCSI > >> disk: vnd-a43c9e59 > >> label: > >> duid: 770fe5cc30020c20 > >> flags: > >> bytes/sector: 512 > >> sectors/track: 63 > >> tracks/cylinder: 255 > >> sectors/cylinder: 16065 > >> cylinders: 15 > >> total sectors: 251904 > >> boundstart: 0 > >> boundend: 0 > >> drivedata: 0 > > > > > > http://marc.info/?l=openbsd-misc&m=105156642420865&w=2 > > The math doesn't add up. > > > >> 3 partitions: > >> # size offset fstype [fsize bsize cpg] > >> a: 251840 64 4.2BSD 1024 8192 0 > >> c: 251904 0 unused > >> > >> > >> # fdisk sd0 > >> Disk: sd0 geometry: 15/255/63 [251904 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 2 - 14 254 63 [ 64: 240911 ] > >> OpenBSD > >> > >> > >> # newfs -S 512 /dev/rsd0a > >> /dev/rsd0a: 123.0MB in 251840 sectors of 512 bytes > >> 4 cylinder groups of 30.74MB, 3935 blocks, 7872 inodes each > >> newfs: wtfs: write error on block 16: Input/output error > > > > Have you tried: > > #newfs /dev/rsd0a > > > > I've done a few flashcards and never had to use anything but the default. > > > > > >> > >> I tried 3 other 128MB flashcards, and a 32MB too, same results. > >> > >> Any help will be highly appreciated, and if you need any additional info > >> too. > >> > >> > >> > >> Thanks > >> Monah

