532
top 50 comments
sorted by: hot top new old
[-] waigl@lemmy.world 81 points 2 years ago

IMHO, it was a mistake to make USB block storage use the same line of names also used for local hard disks. Sure, the block device drivers for USB mass storage internally hook into the SCSI subsystem to provide block level access, and that's why the drives are called sd[something], but why should I as an end user have to care about that? A USB drive is very much not the same thing for me as a SCSI harddisk. A NVMe drive on the other hand, kinda sorta is, at least from a practical purpose point of view, yet NVMe drives get a completely different naming scheme.

That aside, suggest you use lsblk before dd.

[-] BCsven@lemmy.ca 19 points 2 years ago

Yeah lsblk, lsscsi, fdsik -l , go have a coffee, come back later and hit enter on dd

[-] Cenzorrll@lemmy.world 7 points 2 years ago

Yeah lsblk, lsscsi, fdsik -l , go have a coffee, come back later and hit enter on dd

Then realize you typed the command wrong and panic when you don't get an error.

load more comments (1 replies)
[-] naeap@sopuli.xyz 11 points 2 years ago

I still made the mistake, when I sleep deprived switched if and of somehow
My then girlfriend wasn't exactly happy, that all here photos and music, which we just moved off old CDs, that couldn't be read correctly anymore, and I spent quite some time to finally move them

Obviously the old CDs and the backup image were thrown out/deleted just a few days earlier, because I proudly had saved the bulk of it - and being poor students having loads of storage for multiple backups wasn't in reach.
Backing them up again to fresh CDs was on the plan, but I quickly needed a live USB stick to restore my work laptop...

Since then I'm always anxious, when working with dd. Still years later I triple check and already think through my backup restoration plan
Which is a good thing in itself, but my heart rate spikes can't be healthy

[-] grue@lemmy.world 5 points 2 years ago

While we're at it, can we also rename the hard drive block devices back to hd instead of sd again? SATA might use the SCSI subsystem, but SATA ain't SCSI.

load more comments (15 replies)
[-] muhyb@programming.dev 58 points 2 years ago

Always lsblk before dd. The order of /sdX might change from boot to boot. Only /nvme doesn't change.

[-] extremeboredom@lemmy.world 6 points 2 years ago
[-] muhyb@programming.dev 17 points 2 years ago

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.

load more comments (1 replies)
load more comments (1 replies)
[-] BeatTakeshi@lemmy.world 54 points 2 years ago

I am become dd, the destroyer of disks

[-] debil@lemmy.world 48 points 2 years ago

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.

[-] ftbd@feddit.org 23 points 2 years ago

What do you mean? Explicitly having to set if= and of= is way harder to screw up than mixing up the order of arguments for e.g. cp.

[-] FiskFisk33@startrek.website 8 points 2 years ago

I could swear the argument order to "ln" swaps every now and then!

[-] debil@lemmy.world 5 points 2 years ago

Unless you forget what if and of mean. With cp it's simply "cp what where". Never had problems remembering that.

[-] imsufferableninja@sh.itjust.works 14 points 2 years ago

is it really hard to remember infile and outfile?

[-] debil@lemmy.world 5 points 2 years ago

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.

load more comments (2 replies)
load more comments (1 replies)
[-] tabularasa@lemmy.ca 42 points 2 years ago

--status=progress. So happy when they added this.

[-] lengau@midwest.social 6 points 2 years ago

If only I could remember to set status=progress...

I always end up using killall -USR1 from another terminal

[-] the_crotch@sh.itjust.works 2 points 2 years ago

So I don't have to install ddrescue every time I clone a disk from a live USB anymore? Awesome

[-] SexualPolytope@lemmy.sdf.org 27 points 2 years ago* (last edited 2 years ago)

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.

load more comments (5 replies)
[-] dadarobot@lemmy.sdf.org 24 points 2 years ago

i always just

cat /dev/??? > /dev/null

to make sure the usb blinks

[-] rtxn@lemmy.world 19 points 2 years ago
[-] InnerScientist@lemmy.world 10 points 2 years ago

More like *screams into the void*

[-] AnnaFrankfurter@lemmy.ml 6 points 2 years ago

Me laughing with /dev/nvme0n1p1

load more comments (1 replies)
[-] hellfire103@lemmy.ca 4 points 2 years ago

That's a good way of doing it

[-] lnxtx@feddit.nl 22 points 2 years ago

You all still have a LED inside USB flashdrive?

[-] hellfire103@lemmy.ca 12 points 2 years ago

Yep! I just installed Void about ten minutes ago off a 2GB stick from the mid-2000s. Somehow, those little sticks just keep going!

[-] f4f4f4f4f4f4f4f4@sopuli.xyz 2 points 2 years ago

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

load more comments (1 replies)
load more comments (4 replies)
[-] BCsven@lemmy.ca 8 points 2 years ago

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.

[-] Voyajer@lemmy.world 16 points 2 years ago* (last edited 2 years ago)

Remember kids, always lsblk before you dd

[-] 1985MustangCobra@lemmy.ca 13 points 2 years ago

heh i do it hardcore, my USB has no light ;)

[-] hakunawazo@lemmy.world 7 points 2 years ago
[-] autonomous@lemmy.ml 4 points 2 years ago

don't cross the streams

[-] heisenbug4242@lemmy.world 6 points 2 years ago

/dev/disk/by-id/xxx works for me. Never made a mistake.

[-] SaltyIceteaMaker@lemmy.ml 5 points 2 years ago

worst case for me would be ereasing my ventoy drive.

cause i for sure wont be partitioning any of my nvme drives. so the only mistake i can make is like type sda instead of sdb which would just be another usb drive🤷

load more comments (2 replies)
[-] philluminati@lemmy.ml 5 points 2 years ago* (last edited 2 years ago)

ls /dev > /tmp/before

ls /dev > /tmp/after

diff /tmp/before /tmp/after

<sweating>
[-] possiblylinux127@lemmy.zip 3 points 2 years ago

You could just open gnome disks

[-] 1985MustangCobra@lemmy.ca 11 points 2 years ago

ok grandma, go back to facebook /s

[-] avidamoeba@lemmy.ca 5 points 2 years ago

Sounds like someone's not up to date with their backups.

[-] MITM0@lemmy.world 4 points 2 years ago* (last edited 2 years ago)

We seriously need a series of DD-Command 4 Dummies guides Also you guys have USB drives with lights ????

load more comments
view more: next ›
this post was submitted on 12 Dec 2024
532 points (98.9% liked)

linuxmemes

32869 readers
58 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS