i always just
cat /dev/??? > /dev/null
to make sure the usb blinks
That’s a good way of doing it
More like *screams into the void*
Me laughing with /dev/nvme0n1p1
You all still have a LED inside USB flashdrive?
I buy them specifically with LED. It s helpful for data transfer, but also helpful for doing a flash of new OS to old nas hardware… You have to hold reset button in on nas until you see it start to read USB (by LED) then you know you can release the reset button.
Yep! I just installed Void about ten minutes ago off a 2GB stick from the mid-2000s. Somehow, those little sticks just keep going!
Same! I have a 4gb white SanDisk stick, from like 12-14 years ago and is still working 💀💀 it even died on me once, and started working again after a few days 😳😳
for an usb, it might work. For such an old hard drive, it won’t. Linux will refuse to boot
I don’t think so. Block device is a block device.
Maybe you have better knowledge, please elaborate.
i know it from experience. When i wanted to install a modern Linux on a 2009 hdd, it installed, but simply refused to boot, even though hdsentinel said the hdd is 100℅ healthy
Keep them around. I was playing with and testing some ~15 years old mobos for work, and they would not boot from any USB3.0 stick I tried. Same images on an 8GB USB2.0 stick booted with no problem.
Name and shame: Biostar motherboard
Remember kids, always lsblk before you dd
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
Why doesnt everyone switch from Windows???
If you made it this far into linux, you already know why you had to switch
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
Doesn’t dd pick sda by default?
No
I am become dd, the destroyer of disks
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.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.
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.
heh i do it hardcore, my USB has no light ;)
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.
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 🤡
Are we though? My RPI uses a SD card and is labels it as
sd
and the same is true for virtual machines.
–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
/dev/disk/by-id/xxx works for me. Never made a mistake.
Don’t confuse if and of!
don’t cross the streams
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.