Sponsored Content
Full Discussion: dd cloning of whole disk
Operating Systems Linux Ubuntu dd cloning of whole disk Post 302690945 by Royalist on Thursday 23rd of August 2012 04:06:04 PM
Old 08-23-2012
ddrescue unsuccessful

OK so I have now tried ddrescue.

The following was the syntax that I used in the Ubuntu Remix version of live CD Ububtu 12.04 (my present OS is 11.10):

From the command line on the live CD 'sudo lshw -short -c Disk' to determine the input and outputs: source '/dev/sdb output /dev/sda'

Then 'sudo ddrescue -f -g /dev/sdb /dev/sda 23-08-2012.log'

After about ten minutes(and whilst I was on the telephone) the screen suddenly went blank followed by 'no signal'. Up to then it had been reporting progress. From then the red light remained on for more than an hour. I left it to carry on. After three hours the light had dimmed and it was possible to get the screen back. The results reported that it was finished and a lot of bytes processed. I am currently searching for the log file.

The result was that the input disk was unchanged as I would hope, but so was the target disk. So nothing was achieved.

The target disk had previously been cloned with 'dd'. I bowed to the weight of the recommendations received here, to try ddrescue. SO WHAT HAVE I DONE WRONG PLEASE!!
Smilie
 

9 More Discussions You Might Find Interesting

1. SCO

Disk cloning

Hello everybody, :confused: I have to change the system disk on an old PC running SCO 5.0.5. The disk is up and running, this is a preventive action. My experience on UNIX is very limited and I look for the easyest solution to clone this unit. Is it possible with commands or through a clone... (2 Replies)
Discussion started by: mhachez
2 Replies

2. HP-UX

Hpux Disk Cloning

hello, Anybody that has already running script or command that can disk clone the hpux machine thanks (2 Replies)
Discussion started by: eykyn17
2 Replies

3. Solaris

Disk cloning using ufsrestore

I am using ufsdump and ufsrestore to clone the root disk on one of my servers. I would like to automate this as much as possible, but have run into a problem where it prompts for changing the owner/mode when it is complete. Any ideas for running this in the background and not being prompted? ... (4 Replies)
Discussion started by: patricko0317
4 Replies

4. Red Hat

cloning a server

I wish to clone a RedHat EL5 server. What's the easiest way to do this? Thanks :) (4 Replies)
Discussion started by: wazzu62
4 Replies

5. Solaris

Problem by cloning boot disk.

Hello guys! I use the Solaris 10 x86 machine. I need to clone the boot disk. Why, when I copy slice 1 - there is a following: # ufsdump 0f - /dev/rdsk/c0d0s1 | (cd /mnt && ufsrestore rf - ) DUMP: Warning - super-block on device `/dev/rdsk/c0d01` is corrupt - run fsck Dump: The Entire... (6 Replies)
Discussion started by: wolfgang
6 Replies

6. Filesystems, Disks and Memory

Automated disk cloning

Hi, I'm running Ubuntu on my laptop. To keep my data safe and easy disaster recovery as well I bought similar HDD to one installed in my laptop with higher capacity and using USB box I'm doing disk clone to it. So at any time I can replace disk and carry on with my work as before. I'm trying... (2 Replies)
Discussion started by: uvaio
2 Replies

7. Shell Programming and Scripting

Cloning

Hi, Is there disadvantages if we do AIX Serevr cloning to the new AIX server. Thanks in advance (0 Replies)
Discussion started by: kmsekhar
0 Replies

8. HP-UX

HP-UX server cloning

Hello Friends, Am in requirement to clone a Live HP-UX server here's details OS: HpUX B-11.11 with mirrored LVM disks . S/ws: Remedy, XML engine, Annoysystem, Oracle All Oracle, XMl and Remedy data is on SAM LUN which is used for clustering . My requirement to create a clone server and... (10 Replies)
Discussion started by: Shirishlnx
10 Replies

9. Linux

Disk cloning ?

Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome this as the fdisk now returns as "... (1 Reply)
Discussion started by: hadimotamedi
1 Replies
PARTX(8)						       System Administration							  PARTX(8)

NAME
       partx - tell the kernel about the presence and numbering of on-disk partitions

SYNOPSIS
       partx [-a|-d|-P|-r|-s|-u] [-t type] [-n M:N] [-] disk
       partx [-a|-d|-P|-r|-s|-u] [-t type] partition [disk]

DESCRIPTION
       Given a device or disk-image, partx tries to parse the partition table and list its contents.  It can also tell the kernel to add or remove
       partitions from its bookkeeping.

       The disk argument is optional when a partition argument is provided.  To force scanning a partition as if it were a whole disk (for example
       to list nested subpartitions), use the argument "-" (hyphen-minus).  For example:

	      partx --show - /dev/sda3

       This will see sda3 as a whole-disk rather than as a partition.

       partx  is  not  an fdisk program - adding and removing partitions does not change the disk, it just tells the kernel about the presence and
       numbering of on-disk partitions.

OPTIONS
       -a, --add
	      Add the specified partitions, or read the disk and add all partitions.

       -b, --bytes
	      Print the SIZE column in bytes rather than in human-readable format.

       -d, --delete
	      Delete the specified partitions or all partitions.

       -g, --noheadings
	      Do not print a header line with --show or --raw.

       -l, --list
	      List the partitions.  Note that all numbers are in 512-byte sectors.  This output format is DEPRECATED in favour of --show.  Do  not
	      use it in newly written scripts.

       -n, --nr M:N
	      Specify  the range of partitions.  For backward compatibility also the format M-N is supported.  The range may contain negative num-
	      bers, for example --nr -1:-1 means the last partition, and --nr -2:-1 means the last two partitions.  Supported range specifications
	      are:

		     M	    Specifies just one partition (e.g. --nr 3).

		     M:     Specifies the lower limit only (e.g. --nr 2:).

		     :N     Specifies the upper limit only (e.g. --nr :4).

		     M:N    Specifies the lower and upper limits (e.g. --nr 2:4).

       -o, --output list
	      Define the output columns to use for --show, --pairs and --raw output.  If no output arrangement is specified, then a default set is
	      used.  Use --help to get list of all supported columns.  This option cannot be combined with the --add, --delete, --update or --list
	      options.

       -P, --pairs
	      List the partitions using the KEY="value" format.

       -r, --raw
	      List the partitions using the raw output format.

       -s, --show
	      List  the partitions.  The output columns can be selected and rearranged with the --output option.  All numbers (except SIZE) are in
	      512-byte sectors.

       -t, --type type
	      Specify the partition table type.

       --list-types
	      List supported partition types and exit.

       -u, --update
	      Update the specified partitions.

       -S, --sector-size size
	      Overwrite default sector size.

       -v, --verbose
	      Verbose mode.

       -V, --version
	      Display version information and exit.

       -h, --help
	      Display help text and exit.

EXAMPLES
       partx --show /dev/sdb3
       partx --show --nr 3 /dev/sdb
       partx --show /dev/sdb3 /dev/sdb
	      All three commands list partition 3 of /dev/sdb.

       partx --show - /dev/sdb3
	      Lists all subpartitions on /dev/sdb3 (the device is used as whole-disk).

       partx -o START -g --nr 5 /dev/sdb
	      Prints the start sector of partition 5 on /dev/sdb without header.

       partx -o SECTORS,SIZE /dev/sda5 /dev/sda
	      Lists the length in sectors and human-readable size of partition 5 on /dev/sda.

       partx --add --nr 3:5 /dev/sdd
	      Adds all available partitions from 3 to 5 (inclusive) on /dev/sdd.

       partx -d --nr :-1 /dev/sdd
	      Removes the last partition on /dev/sdd.

SEE ALSO
       addpart(8), delpart(8), fdisk(8), parted(8), partprobe(8)

AUTHORS
       Davidlohr Bueso <dave@gnu.org>
       Karel Zak <kzak@redhat.com>

       The original version was written by Andries E. Brouwer <aeb@cwi.nl>.

ENVIRONMENT
       LIBBLKID_DEBUG=all
	      enables libblkid debug output.

AVAILABILITY
       The partx command is part of the util-linux package and is available  from  Linux  Kernel  Archive  <https://www.kernel.org/pub/linux/utils
       /util-linux/>.

util-linux							   December 2014							  PARTX(8)
All times are GMT -4. The time now is 01:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy