LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Used dd command with no options (https://www.linuxquestions.org/questions/linux-newbie-8/used-dd-command-with-no-options-853508/)

silvyus_06 12-31-2010 09:01 PM

Used dd command with no options
 
Hi guys.
I'm very scared.
I was in the CLI experimenting with lynx and then i thought hmmm let's see what this dd thing can do and usually when i run commands without parameters just gives me an brief idea about what can i use.

With dd it just hangs on there like it would be doing something ...

I immediatly quit that terminal and then i couldn't mount my ntfs big important lifesaver partition . I rebooted and now i can . I just want to ask what damage could dd make if run without any parameters ...

I'm so worried .. I don't have any external backup medium.

lupusarcanus 12-31-2010 09:21 PM

Quote:

Originally Posted by silvyus_06 (Post 4209228)
Hi guys.
I'm very scared.
I was in the CLI experimenting with lynx and then i thought hmmm let's see what this dd thing can do and usually when i run commands without parameters just gives me an brief idea about what can i use.

With dd it just hangs on there like it would be doing something ...

I immediatly quit that terminal and then i couldn't mount my ntfs big important lifesaver partition . I rebooted and now i can . I just want to ask what damage could dd make if run without any parameters ...

I'm so worried .. I don't have any external backup medium.

Hmm... I dunno. I've done that a few times before and nothing bad happened. TBH, though I could be wrong, I don't think anything happens since dd has no input or output targets given.

cepheus11 12-31-2010 09:30 PM

From the man page:

Quote:

if=FILE
read from FILE instead of stdin
...
of=FILE
write to FILE instead of stdout
So, dd without parameters should behave like cat without parameters: dump stdin to stdout. It seems to hang because it waits for input forever, which it doesn't get.

Quote:

Originally Posted by silvyus_06 (Post 4209228)
I'm so worried .. I don't have any external backup medium.

You really should.

silvyus_06 12-31-2010 09:42 PM

Quote:

Originally Posted by cepheus11 (Post 4209244)
From the man page:



So, dd without parameters should behave like cat without parameters: dump stdin to stdout. It seems to hang because it waits for input forever, which it doesn't get.

.

thanks . i undeerstand ..

Quote:

You really should
*starts crying*

cepheus11 12-31-2010 09:48 PM

Quote:

Originally Posted by silvyus_06 (Post 4209252)
*starts crying*

No need to cry, no harm done yet :) . But let me quote a signature I once read somewhere: "There are only 2 types of users. Those who do backups, and those who never had a harddrive fail."

silvyus_06 12-31-2010 09:50 PM

Quote:

Originally Posted by cepheus11 (Post 4209256)
No need to cry, no harm done yet :) . But let me quote a signature I once read somewhere: "There are only 2 types of users. Those who do backups, and those who never had a harddrive fail."

i guess i'm the second type :)

[solved]

lupusarcanus 12-31-2010 09:56 PM

I never do backups... lol.

silvyus_06 12-31-2010 10:02 PM

Quote:

Originally Posted by leopard (Post 4209259)
I never do backups... lol.

that's because you use a MAC :P

this thread is really going offtopic .. maybe someone could close it :)

lupusarcanus 12-31-2010 10:31 PM

[QUOTE=silvyus_06;4209264]that's because you use a MAC :P/QUOTE]

How is... What does... What do... I don't... Why is... Why... What? Is there something special about OS X that I don't know about? Lol?

I just don't take backups because I don't really have too much on my computer in the first place. To be honest, most of my stuff can easily be re-downloaded from someplace on the 'net in a few hours or so.


All times are GMT -5. The time now is 06:57 PM.