Re: Questions about the dd command



elmo wrote:
I've spent literally hours trying to find direct answers on the dozens
of websites that discuss 'dd'
but the couldn't find what I wanted.

A few questions about the ' dd ' command:

For example: sudo dd if=/dev/sda2 of=/dev/sdb2 bs=1440

1. Which is preferrable; execute the command from an installed
ubuntu (/dev/sda2) or from a ubuntu CD?

There is no point to using dd from a CD-Rom. That is silly.


2. How do you modify the example to show the data as it is being
copied?
Would this have a drastic effect on how long it takes to complete
the copy
compared to just watching a blinking cursor?

There is no way I know to see what is happening.
3. What effect on the does the ' bs = ' number have on
the time to complete the copy or the accuracy of the copy? Is
there a
default number if the the bs= is omitted from the command?

If you do not use a bs= it uses the default which is dead slow. I use bs=10000 and it is much quicker.


Suggest you read man dd where all these things come from.

Karl








--

Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: changing grub
    ... application with root privileges, such as gedit ... for command line programs. ... the list about using gksu ipo sudo for gui applications, ... Gnome, or the Ubuntu Desktop, may ...
    (Ubuntu)
  • Re: changing grub
    ... Leonard Chatagnier wrote: ... >> command line ... for Ubuntu, and is actually the binary gnome-terminal. ... The command line editors usage of key combos which are unfamiliar to me, ...
    (Ubuntu)
  • Re: Questions about the dd command
    ... execute the command from an installed ... ubuntu or from a ubuntu CD? ... Elmo, please look closely at the other ... Don't use HUP! ...
    (Ubuntu)
  • Questions about the dd command
    ... I've spent literally hours trying to find direct answers on the dozens ... of websites that discuss 'dd' ... execute the command from an installed ... ubuntu or from a ubuntu CD? ...
    (Ubuntu)
  • Re: Controlling servers (e.g. apache, samba)
    ... is a nightmare with Ubuntu, and is as difficult to remove as Norton on ... what do the developers/maintainers suggest? ... Apache - command line via ssh only - never found a web interface to ... IPTables - command line via ssh only - never found a web interface to ...
    (Ubuntu)