First off -- I didn't have time to read all the replies. I started to read them, but the 1st reply was a copy of your note (maybe there was something appended to the end, I dunno, TLDLook). If your current drive is still working, why not copy from your currently booted system? Else, yes -- most rescue setups should support the copy (unless new is USB3, then depends on rescue version & what it contains). 2. Don't do that! You will be copying a fragmented file system onto a new drive. Ick! Create the new drive with ideal settings for the new drive. Then use whatever util your filesystem has for doing a full backup and restore. I.e. -- xfs_dump/restore -- will dump and restore all extended file attributes, permissions devices, hard links. Many utils like tar, won't. I only mention the xfs util, as I know it does dump and restore everything... 2.a -- is there a need to do "dd" to the 1st disk? I.e... seems like it might be prudent to do a dump/restore from your HD to the USB disk as well. 2.b -- I use this disk copy script to copy disks (for xfs.. for other file systems, sub in that file system's full dump & restore util (or find a general dump/restore that handles ACL's xattr's, set-capability-bits (different from SETUID/SETGID)... etc for your file system). Script:
more xfscopy #dated 2011-feb-6 #!/bin/bash -ue # $1=source # $2=target
# -b # = blocksize # -l # = level (0=all) # -J = inhibit inventory update # -p # = progress report every # seconds # next to last arg is '-' for stdout/in & out # last arg is for source or destination mount points mbuffer_size=1024M xfs_bs=128k xfs_report_interval=300 # prios c:1=real(don't use), 2=best-effort(timeshare); 3=idle # in Best effort, -n=0-7 where 0=highest, 7=lowest, but not strict! # dump_cprio=-19 restore_cprio=-10 dump_dprio="-c3" restore_dprio="-c 2 -n3" nice=/usr/bin/nice ionice=/usr/bin/ionice $nice $dump_cprio $ionice $dump_dprio \ xfsdump -b $xfs_bs -l 0 -p $xfs_report_interval -J - "$1" | \ $nice -5 mbuffer -m $mbuffer_size -L | \ $nice $restore_cprio $ionice $restore_dprio \ xfsrestore -b $xfs_bs -B -F -J - "$2" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org