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.
Computer equivalent of vacuum decay in our universe…
Always
lsblk
beforedd
. The order of /sdX might change from boot to boot. Only /nvme doesn’t change.First thing I do after loading the liveusb is write the “mylsblk” which does the much more sane thing of:
lsblk -o NAME,LABEL,PARTLABEL,UUID,SIZE,MOUNTPOINTS
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.
deleted by creator
–status=progress. So happy when they added this.
If only I could remember to set
status=progress
…I always end up using
killall -USR1
from another terminalSo I don’t have to install ddrescue every time I clone a disk from a live USB anymore? Awesome
I am become dd, the destroyer of disks
i always just
cat /dev/??? > /dev/null
to make sure the usb blinks
More like *screams into the void*
Me laughing with /dev/nvme0n1p1
well i mean, the original meme was referring to a usb device with an led…
That’s a good way of doing it
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.The RPIs are moving to nvme too, though indeed a bit slower than desktop machines. My virtual machines use /dev/vdx, and I don’t typically connect USB drives to my virtual machines with the intent to flash them :)
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 🤡
We seriously need a series of DD-Command 4 Dummies guides<br> Also you guys have USB drives with lights ???
heh i do it hardcore, my USB has no light ;)
Don’t confuse if and of!
don’t cross the streams
/dev/disk/by-id/xxx works for me. Never made a mistake.
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
Doesn’t dd pick sda by default?
No
Sounds like someone’s not up to date with their backups.
Yeah once I forgot I had an external drive on one of the USB ports on my PC and created an Ubuntu drive with dd and just sent it do /dev/sdb …lost all movies I had on it. After that I always check with df -h or fdisk -l
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