logoalt Hacker News

nulloremptytoday at 4:44 PM2 repliesview on HN

What's the simplest way to rewrite the data without actually copying the data? Like in place rewrite - you write what you read.


Replies

hpb42today at 6:23 PM

Wouldn't a ZFS Scrub get the job done?

fhdkweigtoday at 5:16 PM

I've seen "dd if=/dev/removable of=/dev/removable" suggested. I don't know if it actually works or if the OS optimizes it to a no-op.

show 2 replies