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?

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?

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?

1. You should not use dd to copy a filesystem that is currently mounted,
because parts of it may be cached in RAM. The copy would be
inconsistent. So you better boot from a ubuntu CD.
2. Standard dd does not have a "progress bar" option. However, it will
report its progress when sent a SIGHUP.
3. I don't know, make measurements yourself. 1440 is a somewhat strange
value, use a multiple of 512 (The standard blocksize)

HTH,
Heinrich


--
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: 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)
  • Re: problems saving in openoffice
    ... So I transferred the directory to my little server and reinstall ... Or be brave and try to do it from a command ... $ sudo chown -R user:user Documents/ ... like about Ubuntu. ...
    (Ubuntu)
  • rsync bug?
    ... To the fedora webserver, if i run this command once it will upload files, and create backups of files deleted, with .rsync extension. ... If i run the command again, it will delete those '.rsync' files on the fedora server, because they don't exist on the local ubuntu box. ...
    (comp.os.linux.misc)