Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory DD copy excluding empty blocks? Post 302265229 by Merkilo on Saturday 6th of December 2008 04:15:16 AM
Old 12-06-2008
DD copy excluding empty blocks?

I'm not 100% sure if this was the right place to post in but here i go:

I'm attempting to migrate a physical windows disk onto my SAN through the use of the dd copy command. I'm booting into knoppix, running dd, and then bringing the server back up into windows running on the SAN. Everything boots just fine, but what I realized is the dd command is copying the empty blocks on the disk. Not only is this greatly extending the time of the copy, but I'm losing my thin provisioning, which is a key benefit of having the SAN. I'd really like to make this a working solution so my question is: Is there any way to do a dd copy without copying the empty blocks on the drive?

Oh and resizing the partition before the copy is not an option
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy Directories excluding files

Hi guys, I want to copy folder and sub folders only. I don't want the files. If i use cp -r command it will copy entirely with files. Could any one suggest me. Thanks in advance (1 Reply)
Discussion started by: karthik82
1 Replies

2. UNIX for Advanced & Expert Users

copy a whole partition excluding specified.

Scenario: I would want to copy my / to /mnt, and to avoid recursion exclude /mnt. cp -avx / /mnt If i use the above i believe it would run recursively, and end up in mess. So how to do it ?! Basically this / is sda1, and /mnt is sda2 and sda1 is where only OS is available & currently... (2 Replies)
Discussion started by: thegeek
2 Replies

3. UNIX for Advanced & Expert Users

Copy Structure excluding some folders

Hi I want to copy the structure from one place to another. -> cd /hol/; -> find . -type d | cpio -pvdm /abc/cat; while copying the structure I want to exclude some directories like test1 and Test. I have read somewhere that this can be done with -prune option. Could anyone... (2 Replies)
Discussion started by: soumodeep123
2 Replies

4. UNIX for Dummies Questions & Answers

Convert 512-blocks to 4k blocks

I'm Unix. I'm looking at "df" on Unix now and below is an example. It's lists the filesystems out in 512-blocks, I need this in 4k blocks. Is there a way to do this in Unix or do I manually convert and how? So for container 1 there is 7,340,032 in size in 512-blocks. What would the 4k block be... (2 Replies)
Discussion started by: rockycj
2 Replies

5. Shell Programming and Scripting

how to split this file into blocks and then send these blocks as input to the tool called Yices?

Hello, I have a file like this: FILE.TXT: (define argc :: int) (assert ( > argc 1)) (assert ( = argc 1)) <check> # (define c :: float) (assert ( > c 0)) (assert ( = c 0)) <check> # now, i want to separate each block('#' is the delimeter), make them separate files, and then send them as... (5 Replies)
Discussion started by: paramad
5 Replies

6. UNIX for Dummies Questions & Answers

find/xargs/*grep: find multi-line empty "try-catch" blocks - eg, missing ; not in a commented block

How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases? This would seem to involve find, xargs, *grep, regex, etc. In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Discussion started by: lifechamp
0 Replies

7. Shell Programming and Scripting

Copy files/directories excluding multiple paterns

my directory structure is like below: basedir\ p.txt q.htm r.java b\ abc.htm xyz.java c\ p.htm q.java rst.txt my requirement is i want to copy all the files and directories... (0 Replies)
Discussion started by: ajayyadavmca
0 Replies

8. Shell Programming and Scripting

Row blocks to column blocks

Hello, Searched for a while and found some "line-to-column" script. My case is similar but with multiple fields each row: S02 Length Per S02 7043 3.864 S02 54477 29.89 S02 104841 57.52 S03 Length Per S03 1150 0.835 S03 1321 0.96 S03 ... (9 Replies)
Discussion started by: yifangt
9 Replies

9. UNIX for Dummies Questions & Answers

Copy non-empty files into subdirectory

How to Copy non-empty files into subdirectory I have directory A there are bunch of files: a.txt a.txt.target b.txt b.target.txt....... How can i find out the non-empty file within *.txt.target and copy them into a subdirectory B? Thank you. (2 Replies)
Discussion started by: grace_shen
2 Replies

10. Web Development

Php help to copy form field if empty

I have an input form with several fields. What I would like to achieve is to auto populate or copy certain fields if they are empty when the form is submitted. I would like to use php if not then javascript but not jquery if possible - I have sort of had a go but I really have no idea... (4 Replies)
Discussion started by: barrydocks
4 Replies
volcopy_ufs(1M) 					  System Administration Commands					   volcopy_ufs(1M)

NAME
volcopy_ufs - make an image copy of a ufs file system SYNOPSIS
volcopy [-F ufs] [generic_options] fsname srcdevice volname1 destdevice volname2 DESCRIPTION
volcopy makes a literal copy of the ufs file system using a blocksize matched to the device. OPTIONS
The following option is supported: generic_options options supported by the generic volcopy command. See volcopy(1M). OPERANDS
The following operands are supported: fsname represents the mount point (for example, root, u1, etc.) of the file system being copied. srcdevice or destdevice the disk partition specified using the raw device (for example, /dev/rdsk/cld0s8, /dev/rdsk/cld1s8, etc.). srcdevice and volname1 the device and physical volume from which the copy of the file system is being extracted. destdevice and volname2 the target device and physical volume. fsname and volname are limited to six or fewer characters and recorded in the superblock. volname may be `-' to use the existing volume name. EXIT STATUS
The following exit values are returned: 0 Successful file system copy. non-zero An error has occurred. FILES
/var/adm/filesave.log a record of file systems/volumes copied ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
cpio(1), dd(1M), labelit(1M), volcopy(1M), attributes(5), ufs(7FS) NOTES
volcopy does not support copying to tape devices. Use dd(1M) for copying to and from tape devices. SunOS 5.11 15 Apr 2003 volcopy_ufs(1M)
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy