LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2007, 08:51 AM   #1
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Rep: Reputation: Disabled
simple stupid question about the dd command


ok the deal is i have 2 computers involved in this a laptop and a desktop...

the desktops relevant specs are:

80 gig hard drive
P3 550 megahertz
256 mb ram
Debian linux
KDE desktop



the laptop:

40 gig hard drive
Celeron M 1.5 gigahertz(?)
1024 mb ram
DSL live CD
NO desktop



the command im running i read here on these forums posted by AwsomeMachine and others it is


Code:
dd if=/dev/hda of=/dev/hda
its supposed to be for debugging a hard drive and repairing in/out errors

i 1st tested it on my desktop to make sure it works it took 2 hours and worked as advertised


the reason i needed it for my laptop was because im getting a wrong reading on free space in winblows so i popped in a live CD and 1st ran fdisk -l to get the right hard drive then ran the dd command that was 10 hours ago its still running!!!!



to sum that up i ran the same command on 2 computers and the faster one is taking over 5 times as long and counting!!!!!
 
Old 09-15-2007, 10:03 AM   #2
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Original Poster
Rep: Reputation: Disabled
ok i rebooted and winblows started right up
 
Old 09-15-2007, 10:05 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I don't know anything about your dd command.

It appears you read from one disk and write it back to the same disk. Seems to be doing nothing if it works at all.

The laptop and desktop PC are also confusing because a Linux can't see one from the other unless it is networked but dd got nothing to do with it.

Can't answer you question because can't understand what you want to achieve. Perhaps you should post the "fdisk -l" output here.
 
Old 09-15-2007, 10:48 AM   #4
vikaschauhan
LQ Newbie
 
Registered: Sep 2007
Location: New Delhi, India
Distribution: Slackware 13.0
Posts: 5

Rep: Reputation: 0
THe speed of read/write access doesn't only depend only on processors and memory.It also depends on other features, like speed of u'r hard drive,The availaibility of DMA,u'r motherboard model ,I guess.If u have 2 hard drives,and they r not synchronised,the also read/write performance goes down. The dd command is also doing a peculiar job(Reading from a drive,and writing back to the same drive).Although,I have not tried the command before.
 
Old 09-15-2007, 11:13 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by tommytomthms5 View Post
the command im running i read here on these forums posted by AwsomeMachine and others it is

Code:
dd if=/dev/hda of=/dev/hda
its supposed to be for debugging a hard drive and repairing in/out errors
Blindling executing commands without knowing what they do is a dangerous game.

You are lucky not having run another command AwesomeMachine suggested in the same post which would have totally erased your disk (dd if=/dev/zero of=/dev/hda ... <-- DON'T RUN THAT).

The former command doesn't repair bad disk, it just can help you detecting if bad blocks are present on you disk. It shouldn't be run on a disk with mounted partitions as there is a very slight but non-null risk to loose data because of it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple/stupid question - LAN setup soccercisco Linux - Networking 8 09-05-2007 07:15 PM
eval suse 10 simple stupid update question towsonu2003 SUSE / openSUSE 5 10-07-2005 03:02 PM
simple cp command question basher400 Linux - Newbie 7 06-08-2005 08:26 AM
Stupid Newbie with simple question... tufkid Linux - Newbie 11 12-25-2004 10:40 PM
Stupid GNOME Question - Probable simple answer. jordo2323 Linux - Newbie 7 11-22-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration