Monday, May 26, 2014

Using a WD elements 3tb drive to backup my photos on UBUNTU

Tools



  1. md5deep
  2. cut
  3. sdiff


Actions

format the WD drive

Using Gparted format to EXT4

Mount the Western Digital Drive.

Edit fstab and add this line for the UUID
UUID=186ddeed-f1da-47cd-9b78-78336237517b /mnt/WDBOOK     ext4    rw 0       1

sgoggin@sgoggin-G31M-ES2L:~$ blkid
/dev/sda1: UUID="6c4b86a7-8336-47ef-a0a2-68634de48875" TYPE="ext4" 
/dev/sdc1: UUID="057713e2-f8eb-4fb7-a424-4be170d5672d" TYPE="ext4" 
/dev/sdc5: UUID="1dff8337-1ec2-4e10-b0bb-19b2f31ff9de" TYPE="swap" 
/dev/sdb1: LABEL="RawPhotos" UUID="120920e7-1780-47d5-b320-21d5d51e1865" TYPE="ext4" 

sgoggin@sgoggin-G31M-ES2L:~$ sudo blkid
/dev/sda1: UUID="6c4b86a7-8336-47ef-a0a2-68634de48875" TYPE="ext4" 
/dev/sdc1: UUID="057713e2-f8eb-4fb7-a424-4be170d5672d" TYPE="ext4" 
/dev/sdc5: UUID="1dff8337-1ec2-4e10-b0bb-19b2f31ff9de" TYPE="swap" 
/dev/sdb1: LABEL="RawPhotos" UUID="120920e7-1780-47d5-b320-21d5d51e1865" TYPE="ext4" 
/dev/sdh1: UUID="186ddeed-f1da-47cd-9b78-78336237517b" TYPE="ext4" 

Now use rsync to backup the photos

Now generate a md5 checksum using md5deep


  •    Navigate to the root directory 
  • Run MD5DEEP
    md5deep -rel

Compare


  • sdiff -s A.log B.log
  • the -s suppresses common lines

Need to massage the files a little because I forgot the -rel



  • cat md5deepRawPhotos.log | cut -c -34,35- > md5deepRawPhotosTrim.log
  • Removes character in position 34 to 35 from every line in the log.



No comments: