. how to make an image of /dev/sda1 (Lenny)

Lenny gervin at cableone.net
Sat Sep 20 16:00:37 UTC 2014


Thanks David and Helen for your information.
I used David's suggestion and it worked.
I thought I'd make another copy using Helen's suggestion.
I tried to install ntfsclone and apt-get could not find it.
Does it go by another name for installing?
Thanks.
Glenn
If you installed XP onto an NTFS file system, ntfsclone is more efficient 
than dd. I also compress the image using gzip. To backup an NTFS file 
system, this is the shell script I use:

timestamp=`date '+%y%m%d'`
BACKUP_DEV=${BACKUP_DEV:-/dev/sda1}
BASE=`basename $BACKUP_DEV`
(ntfsclone --save-image -o- $BACKUP_DEV |gzip -c 
 >ntfs-${BASE}-$timestamp.gz) 2>ntfs-${BASE}-$timestamp.out

And to restore:

timestamp=<timestamp-of-backup>
BACKUP_DEV=${BACKUP_DEV:-/dev/sda1}
BASE=`basename $BACKUP_DEV`
zcat ntfs-${BASE}-$timestamp.gz |ntfsclone --restore-image --overwrite 
$BACKUP_DEV -

HTH,
Helen




More information about the Ubuntu-accessibility mailing list