this post was submitted on 12 Dec 2024
516 points (99.2% liked)

linuxmemes

21580 readers
1057 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 members of the community for any reason.
  • 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 will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 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. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    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 fork-bomb your computer.

    founded 2 years ago
    MODERATORS
     
    (page 2) 34 comments
    sorted by: hot top controversial new old
    [–] [email protected] 1 points 6 days 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

    [–] [email protected] 79 points 1 week ago (4 children)

    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.

    [–] [email protected] 4 points 6 days 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.

    [–] [email protected] 2 points 6 days ago (2 children)

    At least sata is well on its way towards dying, so the problem will solve itself in some more years.
    My machines all have nvme exclusively now, only some servers are left using sata. And I would say the type of user at risk of fucking up a dd command (which 95% of the time should be a cp command) doesn't deal with servers. Those are also not machines you plug thumb drives into commonly.

    In 5-10 years we will think of sda as the usb drive, and it'll be a fun-fact that sda used to be the boot drive.

    [–] [email protected] 3 points 6 days ago (9 children)

    does that mean that you dont use hard drives at all? how many storage have you got?

    load more comments (9 replies)
    [–] [email protected] 0 points 6 days ago (1 children)

    S-ATA still is the only way to have more than two drives in the system.

    [–] [email protected] 1 points 6 days ago

    My motherboard has 3 nvme bays.
    If I saw the need, there are cheap pcie to nvme cards, since (non-sata) nvme is just directing pcie lanes to the ssd anyway.

    But like I said below, I don't even have the need to get a single ssd at the currently maximum price-effective size of 4TB, no less two or three.
    In my observation putting mass storage into your pc is dying in favor of either not needing that much storage, or putting it in a nas or other internet-accessible device.

    Even my non-IT friends do things like put their hdd in a usb enclosure and attach it to their (internet accessible) router.

    [–] [email protected] 19 points 1 week ago (1 children)

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

    load more comments (1 replies)
    [–] [email protected] 10 points 1 week 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

    [–] [email protected] 51 points 1 week ago

    "/dev/sdb? It's sdb? With a B? Yep that's the flash drive. Just type it in... of=/dev/sd what was the letter again? B? Alright, /dev/sdb. Double check with lsblk, yep that's the small disk. Are my backups working properly? Alright here goes nothing... "

    [–] [email protected] 22 points 1 week ago (2 children)

    You all still have a LED inside USB flashdrive?

    [–] [email protected] 12 points 1 week ago (3 children)

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

    [–] [email protected] 2 points 6 days ago (1 children)

    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

    [–] [email protected] 1 points 6 days ago

    Don't worry, you can still buy USB 2.0 sticks nowadays.

    They're priced almost the same as USB 3.whatever sticks. Literally. Add an euro or 2 and double the capacity and go to usb 3.0

    [–] [email protected] 1 points 6 days ago (2 children)

    for an usb, it might work. For such an old hard drive, it won't. Linux will refuse to boot

    [–] [email protected] 1 points 6 days ago (1 children)

    I don't think so. Block device is a block device.

    Maybe you have better knowledge, please elaborate.

    [–] [email protected] 2 points 6 days ago

    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

    [–] [email protected] 6 points 1 week ago

    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 😳😳

    load more comments (1 replies)
    [–] [email protected] 16 points 1 week ago* (last edited 1 week ago)

    Remember kids, always lsblk before you dd

    [–] [email protected] 5 points 1 week ago (1 children)

    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🤷

    [–] [email protected] 2 points 6 days ago (1 children)

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

    [–] [email protected] 3 points 6 days 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

    load more comments
    view more: ‹ prev next ›