Hi folks, I'm on OpenBSD 7.2 and have run into an issue when formatting my WD Elements 4TB external USB disk drive with ext2fs:
> newfs_ext2fs: wtfs: write error for sector -775964770: Invalid \ > argument I can successfully format the disk with FFS, so I don't think it's a hardware issue. Thinking that it might have something to do with size I've tried using smaller partitions (1TB, 2TB) but always got the same error. Below you'll find what I'm doing (fdisk, disklabel, newfs_ext2fs). Thanks, T [===================================================================] # dmesg [=====snip=====] umass0 at uhub0 port 2 configuration 1 interface 0 "Western Digital \ Elements 2667" rev 3.10/20.07 addr 3 umass0: using SCSI over Bulk-Only scsibus3 at umass0: 2 targets, initiator 0 sd1 at scsibus3 targ 1 lun 0: <WD, Elements 2667, 2007> sd1: 3815415MB, 512 bytes/sector, 7813969920 sectors uk0 at scsibus3 targ 1 lun 1: <WD, SES Device, 2007> # fdisk -g sd1 Do you wish to write new GPT? [n] y Writing GPT. # disklabel -Eh sd1 Label editor (enter '?' for help at any prompt) sd1> p OpenBSD area: 64-7813969887; size: 7813969823; free: 7813969823 # size offset fstype [fsize bsize cpg] c: 7813969920 0 unused sd1> a a offset: [64] size: [7813969823] FS type: [4.2BSD] ext2fs sd1*> p OpenBSD area: 64-7813969887; size: 7813969823; free: 0 # size offset fstype [fsize bsize cpg] a: 7813969823 64 ext2fs c: 7813969920 0 unused sd1*> q Write new label?: [y] # newfs_ext2fs -O 1 /dev/rsd1a /dev/rsd1a: 3815414.9MB (7813969823 sectors) block size 4096, \ fragment size 4096 using 29808 block groups of 128.0MB, 32768 blks, 16384 inodes. newfs_ext2fs: wtfs: write error for sector -775964770: Invalid argument