We seriously need a series of DD-Command 4 Dummies guides<br> Also you guys have USB drives with lights ???
Doesn’t dd pick sda by default?
No
Commands like
dd
are the best. Good ole greybeard-era spells with arcane syntax and the power to casually wipe out the whole universe (from their perspective ofc) if used haphazardly or not in respectful manner.What do you mean? Explicitly having to set
if=
andof=
is way harder to screw up than mixing up the order of arguments for e.g.cp
.I could swear the argument order to “ln” swaps every now and then!
Unless you forget what if and of mean. With
cp
it’s simply “cp what where”. Never had problems remembering that.is it really hard to remember infile and outfile?
No, but you’re just typing if and of, not infile and outfile, and the letters are right next to each other on a qwerty kbd. One can haphazardly misuse a lot of commands, it’s just that some commands may lead to nastier outcomes than others.
I never had any problems with
cp
either. But the post makes it seem likedd
is somehow more error prone, which makes no sense to meWell, usually dd is not used as often as cp, so there’s a bigger chance of messing up the parameters, unless you’re careful and rtfm first.
i always just
cat /dev/??? > /dev/null
to make sure the usb blinks
Me laughing with /dev/nvme0n1p1
That’s a good way of doing it
More like *screams into the void*
–status=progress. So happy when they added this.
So I don’t have to install ddrescue every time I clone a disk from a live USB anymore? Awesome
If only I could remember to set
status=progress
…I always end up using
killall -USR1
from another terminal
/dev/disk/by-id/xxx works for me. Never made a mistake.
Don’t confuse if and of!
don’t cross the streams
Why doesnt everyone switch from Windows???
It’s a joke. Nobody switching to Linux would organically encounter dd. There’s like a million friendlier alternatives for everything it does.
(I swear to God if someone replies to me with 1 niche use case of dd that there’s no alternative to, I’m gonna kick a dog into the sun)
I assume Steve was also making a joke. But who knows, in this topsy-turvy world?
Oh, he’s also Steve. lol I was extremely confused by this reply.
What’s the alternative? On Windows I use Rufus usually.
I believe Balena Etcher is on Linux, and someone else in the thread mentioned something called Popsicle.
I always use dd though. Only borked my system once, and I blame that more on the liquor
Don’t drink and ddrive
If you made it this far into linux, you already know why you had to switch
Sounds like someone’s not up to date with their backups.
This is the only reason why I still use GUI for making Linux USBs. Can’t trust my ADHD ass to write the correct drive name. Also, none of my USB drives have a light.
Popsicle is pretty nice, it doesn’t let you choose the internal drives afaik.
Luckily, this problem will disappear soon as we’re moving to systems with only nvme drives. Kinda hard to mistake /dev/nvmexny for /dev/sdx.
Are we though? My RPI uses a SD card and is labels it as
sd
and the same is true for virtual machines.I’m a cheap ass who mostly gets old hardware, so it’ll probably be a while before I get to see the benefits of that.
Well, try not to shred too many SATA SSDs then until you get there 🤡
Always
lsblk
beforedd
. The order of /sdX might change from boot to boot. Only /nvme doesn’t change.Why is this?
It’s a design thing. BIOS can know NVMe disks’ location because they’re directly mounted to PCIe. SATA isn’t like this. Similar logic with the RAM slots.
heh i do it hardcore, my USB has no light ;)
ls /dev > /tmp/before
<insert usb>
ls /dev > /tmp/after
<repeat two more times>
diff /tmp/before /tmp/after
<sweating>
You could just open gnome disks
ok grandma, go back to facebook /s
I am become dd, the destroyer of disks
Remember kids, always lsblk before you dd