Password:
dd: /dev/rdisk12: Invalid argument
0+0 records in
0+0 records out
0 bytes transferred in 0.000036 secs (0 bytes/sec)
$
You want to wipe the disk, right? So, you write zeros to the raw device, not the other way round.So it should be something like this:dd if=/dev/zero of=/dev/rdisk12 bs=16M count=1000 status=progress--Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)[How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
Am 01.11.2025 um 15:33 schrieb paul beard <paul...@gmail.com>:not sure what you are trying to do here but at first glance it looks like if and of are reversed, if you are trying to write /dev/zero to the device. is /dev/rdisk12 what diskutil list returns?
Am 01.11.2025 um 16:00 schrieb paul beard <paul...@gmail.com>:Ah. So you want to verify what 'diskutil info rdisk12' returns?
So I wanted to physically read the device once.
newfs_
newfs_apfs newfs_exfat newfs_fskit newfs_hfs newfs_msdos newfs_udf
Christophs-MBP:~ root# ls -al /dev/rdisk12
crw-r----- 1 root operator 0x100001e Nov 1 23:02 /dev/rdisk12
Christophs-MBP:~ root# dd if=/dev/rdisk12 of=/dev/null
dd: /dev/rdisk12: Invalid argument
0+0 records in
0+0 records out
0 bytes transferred in 0.000052 secs (0 bytes/sec)
Christophs-MBP:~ root#
cr--r----- 1 root operator 0x1000032 Nov 2 11:35 rdisk14s0
cr--r----- 1 kuku operator 0x1000031 Nov 2 11:35 rdisk14
br--r----- 1 root operator 0x1000032 Nov 2 11:35 disk14s0
br--r----- 1 kuku operator 0x1000031 Nov 2 11:35 disk14
Christophs-MBP:~ root# dd if=/dev/rdisk14s0 of=/dev/null bs=2048 count=2
2+0 records in
2+0 records out
4096 bytes transferred in 1.509344 secs (2714 bytes/sec)
Christophs-MBP:~ root#
The dd is working on the character device, not block device.I tried it out on a CD on my Mac right before:
cr--r----- 1 root operator 0x1000032 Nov 2 11:35 rdisk14s0
cr--r----- 1 kuku operator 0x1000031 Nov 2 11:35 rdisk14
br--r----- 1 root operator 0x1000032 Nov 2 11:35 disk14s0
br--r----- 1 kuku operator 0x1000031 Nov 2 11:35 disk14
e.g:
Christophs-MBP:~ root# dd if=/dev/rdisk14s0 of=/dev/null bs=2048 count=2
2+0 records in
2+0 records out
4096 bytes transferred in 1.509344 secs (2714 bytes/sec)
Christophs-MBP:~ root#
This is a FreeBSD vs Mac compatibility issue. On a Mac you can
actually write to /dev/zero as well as reading from it as long as
you know the password. With FreeBSD the only bitbucket is
/dev/null unless you're using zfs, in which case you can create a
zvoid device - a bit like a zvol but write-only. It's very popular
with organisations that need to keep files for a long time buyt
never want to read them. Linux has a similar filing system called
btrfs, but it's buggy and occasionally you can read some of the
files back at a later date.
But your big mistake was going for the 10Tb model. For an extra $5 the 25Tb version is much faster and doesn't have this problem.
Regards, Frank.
Regards, Frank.