August 22, 201312 yr Hey all, I think this might be a dumb Q because i am a linux noob but this data is very important to me and I would rather be safe than sorry. So i have had photos scattered over 3 drives allowing the share to do its thing. I decided to buy a dedicated drive (w/in unraid) for photos in an effort to prevent lightroom from spinning up all my drives all the time. So i found the commands on the wiki to move the files (mv command) but some had an error. So i reverted to cp -r method and it appears to have worked. Is there a way to verify that everything within the photos folder on disk2 has a copy on disk4 before I start deleting? I realize i should be able to count the files but several folders were merged from multiple drives and that seems like a tedious method. Thanks in advance!
August 22, 201312 yr One thing you could try is the "du" command. If you run that command against your folder on disk 4, it will show you the total size of that folder, ex: du -h /mnt/disk4/Pictures The -h stands for human readable, I believe, and will output the file size in MB or GB, like so: root@Saidar:~# du -h /mnt/disk2/Comics/ 130M /mnt/disk2/Comics/Supergirl 554M /mnt/disk2/Comics/Bleach 177M /mnt/disk2/Comics/Detective Comics 145M /mnt/disk2/Comics/Batgirl 136M /mnt/disk2/Comics/Avengers Assemble 122M /mnt/disk2/Comics/Batman - The Dark Knight 55M /mnt/disk2/Comics/The Mice Templar/Vol 1 Prophecy 51M /mnt/disk2/Comics/The Mice Templar/Vol 2 Destiny 145M /mnt/disk2/Comics/The Mice Templar/Vol 4 Legend 250M /mnt/disk2/Comics/The Mice Templar 171M /mnt/disk2/Comics/Aquaman 147M /mnt/disk2/Comics/Deadpool 87M /mnt/disk2/Comics/Conan the Barbarian 160M /mnt/disk2/Comics/Animal Man 192M /mnt/disk2/Comics/The Stand 592M /mnt/disk2/Comics/Naruto 53M /mnt/disk2/Comics/Larfleeze 140M /mnt/disk2/Comics/Justice League Dark 57M /mnt/disk2/Comics/Iron Man 41M /mnt/disk2/Comics/Star Wars 2013/Star Wars 32M /mnt/disk2/Comics/Star Wars 2013/Darth Vader and the Ninth Assassin 25M /mnt/disk2/Comics/Star Wars 2013/Star Wars Legacy 97M /mnt/disk2/Comics/Star Wars 2013 140M /mnt/disk2/Comics/Warlord of Mars 98M /mnt/disk2/Comics/Wolverine 127M /mnt/disk2/Comics/Ender's Game 31M /mnt/disk2/Comics/Ultron 150M /mnt/disk2/Comics/Green Lantern Corps 143M /mnt/disk2/Comics/Justice League 71M /mnt/disk2/Comics/Nauscaa of the Valley of the Wind 108M /mnt/disk2/Comics/Red Lanterns 61M /mnt/disk2/Comics/Thor - God of Thunder 226M /mnt/disk2/Comics/Green Lantern 45M /mnt/disk2/Comics/Action Comics 119M /mnt/disk2/Comics/Ghost in the Shell 158M /mnt/disk2/Comics/Artifacts 111M /mnt/disk2/Comics/Nightwing 94M /mnt/disk2/Comics/Batman Incorporated 82M /mnt/disk2/Comics/Indestructible Hulk 104M /mnt/disk2/Comics/Warlord of Mars - Dejah Thoris 77M /mnt/disk2/Comics/Green Lantern - New Guardians/Annuals 173M /mnt/disk2/Comics/Green Lantern - New Guardians 49M /mnt/disk2/Comics/Fantastic Four 220M /mnt/disk2/Comics/A Game of Thrones 52M /mnt/disk2/Comics/Deadpool Killustrated 36M /mnt/disk2/Comics/Captain America 162M /mnt/disk2/Comics/Before Watchmen 86M /mnt/disk2/Comics/Batman and Robin 84M /mnt/disk2/Comics/X-Men Legacy 113M /mnt/disk2/Comics/Trinity of Sin - The Phantom Stranger 221M /mnt/disk2/Comics/Wheel of Time/01 Eye of the World 221M /mnt/disk2/Comics/Wheel of Time 39M /mnt/disk2/Comics/Deadpool Kills Deadpool 35M /mnt/disk2/Comics/Guardians of the Galaxy 37M /mnt/disk2/Comics/Constantine 131M /mnt/disk2/Comics/Superboy 99M /mnt/disk2/Comics/Superman 62M /mnt/disk2/Comics/Superman Unchained 340M /mnt/disk2/Comics/Elephantmen 351M /mnt/disk2/Comics/Dark Tower 170M /mnt/disk2/Comics/Wasteland 81M /mnt/disk2/Comics/Avengers 27M /mnt/disk2/Comics/Swamp Thing/Annuals 129M /mnt/disk2/Comics/Swamp Thing 107M /mnt/disk2/Comics/Superior Spider-Man 106M /mnt/disk2/Comics/Attack on Titan 7.8G /mnt/disk2/Comics/ Once you have the size of your final folder, you can run du -h against the original folders, and add up the results. If the numbers don't add up, then some files/folders are missing. There may be a better way, as I'm nowhere near the linux level of some (most ) of the folks here, but that's the first thing that came to my mind.
August 22, 201312 yr If you have a windows box on the network you could run clonespy against the disk shares to generate a list of identical files, and delete the identical ones on the source drives.
Archived
This topic is now archived and is closed to further replies.