• waigl@lemmy.world
    link
    fedilink
    arrow-up
    50
    ·
    6 months 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
      link
      fedilink
      arrow-up
      13
      ·
      6 months ago

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

      • Cenzorrll@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        6 months 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.

    • grue@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      6 months 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.

  • muhyb@programming.dev
    link
    fedilink
    arrow-up
    37
    ·
    6 months ago

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

      • muhyb@programming.dev
        link
        fedilink
        arrow-up
        12
        ·
        6 months 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.

    • ReginaPhalange@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      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
      
  • debil@lemmy.world
    cake
    link
    fedilink
    arrow-up
    30
    ·
    6 months 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.

  • SaltyIceteaMaker@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    6 months 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🤷

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 months ago

      I want a immutible Linux that restricts access to critical components. I wouldn’t mind running my desktop in a container.

      • iopq@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        6 months ago

        NixOS store (app folder) is read only. You literally can’t mess with it. It doesn’t really need a container, most things are locked down already. Of course you could mess up your home folder, but that’s on you then

  • ZeroOne@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    6 months ago

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

  • philluminati@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    6 months ago

    ls /dev > /tmp/before

    <insert usb>

    ls /dev > /tmp/after

    <repeat two more times>

    diff /tmp/before /tmp/after

    <sweating>
    
  • ThunderLegend@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    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