{"id":6124,"date":"2017-01-20T13:29:48","date_gmt":"2017-01-20T13:29:48","guid":{"rendered":"https:\/\/stevepedwards.today\/DebianAdmin\/?p=6124"},"modified":"2023-10-28T23:29:10","modified_gmt":"2023-10-28T22:29:10","slug":"cheap-but-handy-usbsata-backup-gizmos-from-the-web","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/DebianAdmin\/cheap-but-handy-usbsata-backup-gizmos-from-the-web\/","title":{"rendered":"Cheap But Handy USB\/SATA\/IDE Backup Gizmos from the Web"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_6124\" class=\"pvc_stats all  \" data-element-id=\"6124\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>Linux' ability to copy and\/or replace data easily for backup purposes is second to none with tools such as cp, rsync and dd, so\u00a0with cheap hardware like these below, making\/changing Windows or Linux drive\/partition\/file backups from spare SATA hard drives is even easier, as you don't need to take the cover off a tower to supply power from spare connectors you may not even have in the running PC. Ideal for IT Field Techs or anyone really...<\/p>\n<p>The two I bought this week (\u00a313 and \u00a33 resp) show a mains powered unit required to power SATA\/IDE hard disks with 2 amp current;<\/p>\n<p><span style=\"color: #00ff00;\"><a style=\"color: #00ff00;\" href=\"https:\/\/www.ebay.co.uk\/itm\/351853736993?_trksid=p2060353.m2749.l2649&amp;ssPageName=STRK%3AMEBIDX%3AIT\">https:\/\/www.ebay.co.uk\/itm\/351853736993?_trksid=p2060353.m2749.l2649&amp;ssPageName=STRK%3AMEBIDX%3AIT<\/a><\/span><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/mainsSATA.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6128\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/mainsSATA.jpg\" alt=\"\" width=\"1000\" height=\"1000\" \/><\/a><\/p>\n<p>and a USB\/mains 12V, 2A PSU optionally powered device, ideal for low power 5V SSD drives if you don't have a generic 12V PSU to use with hard disks:<\/p>\n<p><span style=\"color: #00ff00;\"><a style=\"color: #00ff00;\" href=\"https:\/\/www.ebay.co.uk\/itm\/391662246422?_trksid=p2060353.m2749.l2649&amp;ssPageName=STRK%3AMEBIDX%3AIT\">https:\/\/www.ebay.co.uk\/itm\/391662246422?_trksid=p2060353.m2749.l2649&amp;ssPageName=STRK%3AMEBIDX%3AIT<\/a><\/span><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/USBSATA.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6129\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/USBSATA.jpg\" alt=\"\" width=\"1000\" height=\"1000\" \/><\/a><\/p>\n<p>So how can you use them?<\/p>\n<p>Some methods for different situations should give you some ideas...<\/p>\n<p>First, to see them register in linux:<\/p>\n<p>stevee@T3400 ~ $ <span style=\"color: #0000ff;\">tail -f \/var\/log\/syslog<\/span><\/p>\n<p>Now attach all the connectors - best to plug in the power last - depending on your kit and what you want to do, something like:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/SATAs.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-6132\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/SATAs.jpg\" alt=\"\" width=\"846\" height=\"1504\" \/><\/a><\/p>\n<p>When the mains PSU is connected, whether an IDE or SATA, you should see the device ID show similar to:<\/p>\n<p><span style=\"color: #ff0000;\">Jan 20 13:58:18 T3400 kernel: [12794.948018] usb 2-6: new high-speed USB device number 5 using ehci-pci<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:19 T3400 kernel: [12795.081278] usb 2-6: New USB device found, idVendor=1738, idProduct=b0b7<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:19 T3400 kernel: [12795.081283] usb 2-6: New USB device strings: Mfr=4, Product=5, SerialNumber=6<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:19 T3400 kernel: [12795.081286] usb 2-6: SerialNumber: 20160726<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:19 T3400 kernel: [12795.081568] usb-storage 2-6:1.0: USB Mass Storage device detected<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:19 T3400 kernel: [12795.081908] scsi host9: usb-storage 2-6:1.0<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:19 T3400 mtp-probe: checking bus 2, device 5: \"\/sys\/devices\/pci0000:00\/0000:00:1d.7\/usb2\/2-6\"<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:19 T3400 mtp-probe: bus: 2, device: 5 was not an MTP device<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.080931] scsi 9:0:0:0: scsi scan: INQUIRY result too short (5), using 36<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.080940] scsi 9:0:0:0: Direct-Access SAMSUNG HD251HJ PQ: 0 ANSI: 0<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.081311] sd 9:0:0:0: Attached scsi generic sg5 type 0<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.082123] sd 9:0:0:0: [sde] 488397168 512-byte logical blocks: (250 GB\/232 GiB)<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.084373] sd 9:0:0:0: [sde] Write Protect is off<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.084379] sd 9:0:0:0: [sde] Mode Sense: 3b 00 00 00<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.085407] sd 9:0:0:0: [sde] No Caching mode page found<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.085411] sd 9:0:0:0: [sde] Assuming drive cache: write through<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.116316] sde: sde1 sde2 &lt; sde5 &gt;<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:20 T3400 kernel: [12796.127919] sd 9:0:0:0: [sde] Attached SCSI disk<\/span><br \/>\n<span style=\"color: #ff0000;\">Jan 20 13:58:21 T3400 kernel: [12797.161528] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: (null)<\/span><br \/>\n<strong><span style=\"color: #ff0000;\">Jan 20 13:58:21 T3400 udisksd[2542]: Mounted \/dev\/sde1 at \/media\/stevee\/e91e6b73-aa2d-44e7-ab71-5cddb44f0808 on behalf of uid 1000<\/span><\/strong><\/p>\n<p>If you have valid, readable data on the disk, it's contents window should open also:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/tail.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-6134\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/tail-1024x576.png\" alt=\"\" width=\"590\" height=\"332\" \/><\/a><\/p>\n<p>Ah, it's a spare Linux Mint install..what a surprise!<\/p>\n<p>So what machine was it originally from? You can find out by window or command line, as the file system auto mounted at :<\/p>\n<p>\/media\/stevee\/e91e6b73-aa2d-44e7-ab71-5cddb44f0808<\/p>\n<p>so, read it's hostname in it's \/etc\/hostname:<\/p>\n<p><span style=\"color: #0000ff;\">sudo vi \/media\/stevee\/e91e6b73-aa2d-44e7-ab71-5cddb44f0808\/etc\/hostname<\/span><br \/>\n[sudo] password for stevee:<\/p>\n<p><span style=\"color: #ff0000;\">intelmint<\/span><\/p>\n<p>That machine does not exist anymore as it's now a dedicated W10 box (tech support reasons only I assure you!)<\/p>\n<p>What might you want to do before you put this disk in a spare PC?<\/p>\n<p>Maybe update your current home directory contents to this disk? This is easy using your current backup aliases and rsync assuming you have aliases setup already, or type them from scratch into a\u00a0<strong><span style=\"color: #ff0000;\">.bash_aliases<\/span><\/strong> file.<\/p>\n<p>I now use my T3400 as my main PC via a TV, with enlarged fonts for less eye strain wearing glasses on laptops, so I have multiple backup aliases set up and saved in <strong><span style=\"color: #ff0000;\">.bash_aliases<\/span><\/strong>\u00a0so I can run them manually when I like, to keep my other PC's backed up remotely from the T3400. If I download a file from the Internet, I can back it up instantly to any other PC set up for an alias as below:<\/p>\n<p>stevee@T3400 ~ $ <span style=\"color: #0000ff;\">ls -ha .\/<\/span><br \/>\n<span style=\"color: #ff0000;\">. .dbus .Heaven .openshot .viminfo<\/span><br \/>\n<span style=\"color: #ff0000;\">.. Desktop .hplip Pictures VirtualBox VMs<\/span><br \/>\n<span style=\"color: #ff0000;\"><strong>.bash_aliases<\/strong> .dmrc .ICEauthority .pki .Xauthority<\/span><br \/>\n<span style=\"color: #ff0000;\">.bash_history Documents ID .profile .xsession-errors<\/span><br \/>\n<span style=\"color: #ff0000;\">.bash_logout Downloads .kchmviewer Public \u00a0<\/span><br \/>\n<span style=\"color: #ff0000;\">.cache .gconf .linuxmint .selected_editor<\/span><br \/>\n<span style=\"color: #ff0000;\">.cinnamon .gksu.lock .local .ssh<\/span><br \/>\n<span style=\"color: #ff0000;\">.config .gnome .mozilla Templates<\/span><br \/>\n<span style=\"color: #ff0000;\">Contacts .gnome2 Music Videos<\/span><\/p>\n<p>stevee@T3400 ~ $ <span style=\"color: #0000ff;\">alias<\/span><br \/>\n<span style=\"color: #ff0000;\">alias BIGducks='du -cBG * | sort -nr | head -11'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias MEducks='du -cBM * | sort -nr | head -11'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias alert='notify-send --urgency=low -i \"$([ $? = 0 ] &amp;&amp; echo terminal || echo error)\" \"$(history|tail -n1|sed -e '\\''s\/^\\s*[0-9]\\+\\s*\/\/;s\/[;&amp;|]\\s*alert$\/\/'\\'')\"'<\/span><br \/>\n<strong><span style=\"color: #ff0000;\">alias buAMDA8='rsync -e ssh --progress \/home\/stevee\/* stevee@AMDA8:\/home\/stevee\/ --exclude=~\/. \u00a0 \u00a0-vah'<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">alias budell490='rsync -e ssh \/home\/stevee\/* stevee@dell490:\/home\/stevee\/ --exclude=~\/. --delete-excluded --exclude=VirtualBox\\ VMs\/ -vah'<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\">alias budellmint='rsync -e ssh \/home\/stevee\/* stevee@dellmint:\/home\/stevee\/ --exclude=~\/. --exclude=Videos --exclude=VirtualBox\\ VMs\/ -vah'<\/span><\/strong><br \/>\n<span style=\"color: #ff0000;\">alias ducks='du -cks * | sort -rn | head -11'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias egrep='egrep --color=auto'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias fgrep='fgrep --color=auto'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias grep='grep --colour=auto'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias l='ls -CF'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias la='ls -A'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias ll='ls -alF'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias ls='ls --color=auto'<\/span><br \/>\n<span style=\"color: #ff0000;\">alias myip='dig +short myip.opendns.com @resolver1.opendns.com'<\/span><\/p>\n<p>Most of these were explained in older Posts, and are critical in keeping network admin to a lazy minimum! They should be self explanatory, as an alias is just a short version of a longer, less convenient command to type. The key things are the rsync switches -vah:<\/p>\n<p>verbose: shows me transfer details live<\/p>\n<p>archive: saves directories recursively<\/p>\n<p>human-readable: shows sizes in k,m, g byte sizes<\/p>\n<p>I'm going to use an existing alias\/rsync command for my current T3400 user account that backs up an identical clone of my account files (except hidden files) to another networked PC, then amend it to suit writing to the local spare disk's user account instead:<\/p>\n<p><span style=\"color: #0000ff;\">alias budellmint='rsync -e ssh \/home\/stevee\/* stevee@dellmint:\/home\/stevee\/ --exclude=~\/. --exclude=Videos --exclude=VirtualBox\\ VMs\/ -vah'<\/span><\/p>\n<p>First, it a local copy, so ssh is not required, just rsync alone.<\/p>\n<p>Also, I think I want to save the VirtualboxVM machines I have on the T3400 also, so I don't exclude this folder, but I don't want to copy my local hidden files still, such as massive google caches etc. so keep the <span style=\"color: #0000ff;\"><strong>--exclude=~\/.<\/strong><\/span>\u00a0function. <strong>Always add the rsync dry run (-n) option to check it works as you want and does not delete things it should not!<\/strong><\/p>\n<p>However I don't care what old user files are in this drive's \/stevee directory, so will delete them with the <span style=\"color: #ff0000;\">--delete-excluded<\/span> switch:<\/p>\n<p><span style=\"color: #0000ff;\">rsync \u00a0 \/home\/stevee\/* \u00a0--delete-excluded \u00a0\/media\/stevee\/e91e6b73-aa2d-44e7-ab71-5cddb44f0808\/home\/stevee\/ \u00a0 \u00a0--exclude=~\/. \u00a0 -vahn<\/span><\/p>\n<p>This dry run copies all my current home directory except the hidden App cache\/user files to the spare disk home account AND deletes what is on the drive that is not in my current home directory:<\/p>\n<p>It scrolls fast, so if you want to see what may\u00a0be deleted, pipe it through less and check the lines:<\/p>\n<p><span style=\"color: #0000ff;\">\u00a0rsync \u00a0 \/home\/stevee\/* \u00a0--delete-excluded \u00a0\/media\/stevee\/e91e6b73-aa2d-44e7-ab71-5cddb44f0808\/home\/stevee\/ \u00a0 \u00a0--exclude=~\/. \u00a0 -vahn | less<\/span><\/p>\n<p><span style=\"color: #ff0000;\">sending incremental file list<\/span><br \/>\n<span style=\"color: #ff0000;\"><strong>deleting<\/strong> Desktop\/hardinfo_report8.html<\/span><br \/>\n<span style=\"color: #ff0000;\"><strong>deleting<\/strong> Desktop\/hardinfo_report.html<\/span><br \/>\n<span style=\"color: #ff0000;\"><strong>deleting<\/strong> Documents\/Taxing a vehicle - GOV.UK_files\/selection-buttons.js<\/span><br \/>\n<span style=\"color: #ff0000;\">...<\/span><\/p>\n<p>When happy it will copy correctly <strong>and not delete what it shouldn't<\/strong>, remove the dry run (n):<\/p>\n<p><span style=\"color: #0000ff;\">\u00a0rsync \u00a0 \/home\/stevee\/* \u00a0--delete-excluded \u00a0\/media\/stevee\/e91e6b73-aa2d-44e7-ab71-5cddb44f0808\/home\/stevee\/ \u00a0 \u00a0--exclude=~\/. \u00a0 -vah<\/span><\/p>\n<p>Note that although the<span style=\"color: #ff0000;\"><strong> \/media<\/strong><\/span> directory belongs to root, the sub-directories; <span style=\"color: #ff0000;\"><strong>\/stevee\/<\/strong>e91e6b73-aa2d-44e7-ab71-5cddb44f0808<\/span> is where the disk\u00a0file system is mounted, of which, IT'S <span style=\"color: #ff0000;\">\/home\/stevee<\/span> folder still\u00a0belongs to you from the prior install, so allowing you write access to it.<\/p>\n<p>As the future is SSD, and they are at least 2x faster than most SATA HDs (check USB3 etc.) then the cheaper \u00a33 gizmo is worth having in the tool kit as it powers 5V USB direct to the drive if your USB port\u00a0can do it, and has 2 connectors for extra power for those USB ports\u00a0that can't.<\/p>\n<p>Just connect up and plug in as you would any other external USB drive, and as 128GB SSD drives have dropped to around \u00a330 on Ebay, it won't be too far away to have only these drives in all your kit.<\/p>\n<p>Regarding dd, there really is no need to clone linux OSs as it's far quicker to re-install and replace home directory backups than use dd due to speed.<\/p>\n<p>For cloning proprietary disks like Windows, it still can't be beaten for price - it's free!! - if you have a linux system anyway - which EVERY IT user should these days, you don't need a functional Windows system to run Win only cloning software that can copy a boot drive.<\/p>\n<p>Win server OS's offer system drive mirroring, but\u00a0it may\u00a0be very time consuming to make\/break mirrors to have spare cloned drives for your Win server systems so\u00a0dd is probably the quicker and more convenient option overall.<\/p>\n<p>You can boot a linux system on your Win PC, then clone that Win drive using one of these USB\/SATA devices without removing covers etc.<\/p>\n<p>Just check the clone\u00a0works so you KNOW you have a functional, ready-to-go backup for the inevitable future HD failure...if you are a small business without a system drive backup, then you would need to allow at least a day's downtime to re-install Win from scratch - Windows DVDs, all licensed software, hours of updates all over again, backup files for how many user accounts? etc...yawn...<\/p>\n<p>But then! If you are a small business, why are you paying for Windows in the first place? Mint desktops are free and do everything and more - securely - that any Windows user usually does.<\/p>\n<p>For cloning, I go by my rough DD past tests experience of <strong><em>about<\/em><\/strong>\u00a01.5 - 4hrs to dd 80GB of data to a hard disk - but it all depends on hardware\/system speed.<\/p>\n<p>Disk geometry is the only factor to be aware of - even with linux journaled file systems - you may have to run fsck on an unmounted cloned linux drive before you boot it (hence why you may as well re-install from scratch as there is no cost\/license issue anyway - and it's FAR quicker - 6 mins from USB install to first\u00a0functional desktop with Rafaela) if you used disks of different sizes and geometries - so the file system can re-order the data correctly for sector size\/inodes etc. and actually boot properly.<\/p>\n<p>Windows does a reasonable job of checking it's file system if dirty (just slow, like everything it does), but if you use different disk types\/sizes\/geometries it's not guaranteed it will re-organize itself correctly unless identical disk geometries are used - may be important (see the Win10 clone trials with DD later) else you have to re-install on a new drive from scratch for the same machine for a 2nd backup drive - then go through the whole update\/Apps\/backups re-install process again - very time consuming!<\/p>\n<p>So it's worth having a clone of your Windows system drive for each machine - especially for a workplace\/small business that doesn't have an OEM deal or a full time IT staff member to do it all when a drive fails on a critical Win PC..usually at the worst possible time! At least you can change a drive quickly - even if it's files are old - as these can be updated\u00a0by recent backups - which of course you have!???.<\/p>\n<p>Other handy uses for these gizmos include running linux CAV anti virus on a contaminated Windows drive, or searching for lost files or partitions with testdisk, and of course using any spare hard disks as quick n dirty back up drives.<\/p>\n<p>Use these gizmos to test any drive controller and disk hardware faults - if a drive stops working in a PC it could be controller failure or heat - maybe not a failed drive - removing it and checking it outside will verify this as Disks shows SMART data such as airflow temp records:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/disktemp.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6153\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/disktemp.png\" alt=\"\" width=\"954\" height=\"609\" \/><\/a><\/p>\n<p>What sort of bottleneck are these gizmos? They are USB2 limited so the performance of the SSD drive is around 40MB\/s (320Mb\/s) read:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/speed-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6156\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/speed-1.png\" alt=\"\" width=\"642\" height=\"683\" \/><\/a><\/p>\n<p>I found the cheaper gizmo could power 2.5\" SATA hard disks from a generic 0.5A, 12V PSU, and showed the same 40MB\/s read speed as above:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/speed2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6159\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/speed2-1.png\" alt=\"\" width=\"642\" height=\"683\" \/><\/a><\/p>\n<p>Interesting to see the access\u00a0time differences between SSD and hard disk! HDs are about 17 times slower in comparison! 0.9ms V 17ms.<\/p>\n<p>An IDE drive though showed the read rate at\u00a036MB\/s\/ - not much slower.<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/ide-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6447\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/ide-1.png\" alt=\"\" width=\"642\" height=\"683\" \/><\/a><\/p>\n<p>The write rates are about the same - don't be too quick to bin the robust old IDE drives just yet in older PCs! Old PCs make great dedicated network servers - backups, Apache file\/webservers, MySQL servers, Network Intrusion Detection Systems (NIDS) using Snort etc.<\/p>\n<p>Other Linux tricks I've used these types of gizmos for - that saved a print company's bacon many times - was cloning a Win2003 boot\u00a0drive (Sage accounts, customer job database App, no external backups or re-install options) that ran out of partition space (it had been installed with only 3GB of C: drive space by an IT tech!) to a larger drive, then resized that partition using GParted:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/gp.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6173\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/gp.png\" alt=\"\" width=\"777\" height=\"469\" \/><\/a><\/p>\n<p>Similarly with GParted, I replaced a Factory Reset partition on my\u00a0laptop as in the old Win7 replacement Post:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"uUU5xQtR0G\"><p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/re-install-win-7-with-no-dvd-and-replace-laptop-auto-recovery-partition\/\">Re-install Win 7 With No DVD and Replace Laptop Auto Recovery Partition<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\"Re-install Win 7 With No DVD and Replace Laptop Auto Recovery Partition\" &#8212; Linux Admin, WebDev, Comms &amp; IT\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/re-install-win-7-with-no-dvd-and-replace-laptop-auto-recovery-partition\/embed\/#?secret=8G3jkAC5H6#?secret=uUU5xQtR0G\" data-secret=\"uUU5xQtR0G\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>The more expensive gizmo comes with a Win driver disk of you want to use it. (I wouldn't risk attaching a virus ridden Windows drive to another working Windows system to run an AV scan personally, before trying linux cleaning options first).<\/p>\n<p>For example, here is a Win10 drive attached to my T3400 using the mains SATA\/USB device that won't mount as normal - is it a new, deliberate Win10 method to stop linux accessing Win10 in write mode or just another Win bug? The drive was booted and checked as clean on it's own to check this then trying again I still get:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/w10err.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6176\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/w10err.png\" alt=\"\" width=\"878\" height=\"1007\" \/><\/a><\/p>\n<p>It will mount -ro which would be enough to virus scan it but not clean it using that warning command above with -ro instead:<\/p>\n<p>stevee@T3400 ~ $ <span style=\"color: #0000ff;\">sudo mount -t \"ntfs\" -ro \"uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177\" \"\/dev\/sdd2\" \"Public\/\"<\/span><br \/>\nstevee@T3400 ~ $ <span style=\"color: #0000ff;\">ls Public\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Documents and Settings Program Files (x86) Windows<\/span><br \/>\n<span style=\"color: #ff0000;\">$GetCurrent Recovery Windows10Upgrade<\/span><br \/>\n<span style=\"color: #ff0000;\">hiberfil.sys $Recycle.Bin Windows10Upgrade24074.exe<\/span><br \/>\n<span style=\"color: #ff0000;\">pagefile.sys swapfile.sys Windows10UpgraderApp.exe<\/span><br \/>\n<span style=\"color: #ff0000;\">PerfLogs $SysReset $WINDOWS.~BT<\/span><br \/>\n<span style=\"color: #ff0000;\">ProgramData System Volume Information Windows.old<\/span><br \/>\n<span style=\"color: #ff0000;\">Program Files Users<\/span><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/cavwin10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6188\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/cavwin10.png\" alt=\"\" width=\"602\" height=\"242\" \/><\/a><\/p>\n<p>Same for file recovery - as you can read, you can recover:<\/p>\n<p>stevee@T3400 ~ $ <span style=\"color: #0000ff;\">sudo testdisk \/dev\/sdd2<\/span><br \/>\nTestDisk 6.14, Data Recovery Utility, July 2013<br \/>\nChristophe GRENIER &lt;grenier@cgsecurity.org&gt;<br \/>\nhttps:\/\/www.cgsecurity.org<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/tdisk-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-6179\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/tdisk-1-1024x725.png\" alt=\"\" width=\"590\" height=\"418\" \/><\/a><\/p>\n<p>Or unmount and resize in Gparted - as it unmounts anyway for this op it can be resized, and the new partition data is written to the MBR anyway (beware UEFI disks!?) so should work as Win OS dependent - whether it boots again after is a different matter with Win10! - I haven't done it yet:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/gpres.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6182\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/gpres.png\" alt=\"\" width=\"775\" height=\"774\" \/><\/a><\/p>\n<p>After this the system partition is now :<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/gpsml.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6186\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/gpsml.png\" alt=\"\" width=\"777\" height=\"542\" \/><\/a><\/p>\n<p>So, will it boot? It did, but seemed delayed at log in\u00a0re-adjusting to it's new size..?<\/p>\n<p>Now I need to know if Win10 Upgrade version will mount ok in Linux as Win 7 does...I haven't checked it yet! Just assumed it will! No it bloody doesn't!!<\/p>\n<p>stevee@Dell490 ~ $ <span style=\"color: #0000ff;\">sudo mount -t ntfs-3g \/dev\/sda2 Public\/<\/span><br \/>\n<span style=\"color: #ff0000;\"><strong>Windows is hibernated<\/strong>, refused to mount.<\/span><br \/>\n<span style=\"color: #ff0000;\">Failed to mount '\/dev\/sda2': Operation not permitted<\/span><br \/>\n<span style=\"color: #ff0000;\">The NTFS partition is in an unsafe state. Please resume and shutdown<\/span><br \/>\n<span style=\"color: #ff0000;\">Windows fully (no hibernation or fast restarting), or mount the volume<\/span><br \/>\n<span style=\"color: #ff0000;\">read-only with the 'ro' mount option.<\/span><\/p>\n<p>Funny... my Win10 laptop is doing the exact same thing when booting from an external linux drive as is my HP tower! It won't mount the Windows drives with the same warning\u00a0as above.<\/p>\n<p>And you wonder why I can't stand the oh dear!ing shit that is Windows???<\/p>\n<p>And these bastards have joined the\u00a0Linux Foundation?? I can guarantee it's mainly to steal other's ideas, as they have always done...<\/p>\n<p>In the mean time, you are stuck with Win10 only tools for tech repair...pile of shite...<\/p>\n<p>Great, I've got to tech support this crap without my main toolkit available now.<\/p>\n<p>All a virus writer has to do is attack this\u00a0function\u00a0to keep the drive dirty and not be mountable in linux - great...<\/p>\n<p>Research required...and it's...down to the hiberfile it seems at first google..?<\/p>\n<p>stevee@Dell490 ~ $ <span style=\"color: #0000ff;\">sudo ntfsfix \/dev\/sda2<\/span><br \/>\n<span style=\"color: #ff0000;\">Mounting volume... Windows is hibernated, refused to mount.<\/span><br \/>\n<span style=\"color: #ff0000;\">FAILED<\/span><br \/>\n<span style=\"color: #ff0000;\">Attempting to correct errors... <\/span><br \/>\n<span style=\"color: #ff0000;\">Processing $MFT and $MFTMirr...<\/span><br \/>\n<span style=\"color: #ff0000;\">Reading $MFT... OK<\/span><br \/>\n<span style=\"color: #ff0000;\">Reading $MFTMirr... OK<\/span><br \/>\n<span style=\"color: #ff0000;\">Comparing $MFTMirr to $MFT... OK<\/span><br \/>\n<span style=\"color: #ff0000;\">Processing of $MFT and $MFTMirr completed successfully.<\/span><br \/>\n<span style=\"color: #ff0000;\">Setting required flags on partition... OK<\/span><br \/>\n<span style=\"color: #ff0000;\">Going to empty the journal ($LogFile)... OK<\/span><br \/>\n<span style=\"color: #ff0000;\">Windows is hibernated, refused to mount.<\/span><br \/>\n<span style=\"color: #ff0000;\">Remount failed: Operation not permitted<\/span><\/p>\n<p>No. It's the shutdown method used! What??! Running chkdsk\u00a0now in cmd as Admin:<\/p>\n<p>C:\\WINDOWS\\system32&gt;<span style=\"color: #0000ff;\">chkdsk<\/span><\/p>\n<p>No errors found - clean system...<\/p>\n<p>and shut down using <span style=\"color: #0000ff;\">c:&gt;shutdown \/s<\/span><\/p>\n<p>And that did it!! It now mounts...how typically illogical and shit as usual...but C: is now mountable:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/w10up.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-6202\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/w10up-1024x781.png\" alt=\"\" width=\"590\" height=\"450\" \/><\/a><\/p>\n<p>So, after all that shit, is it possible to run a CAV scan? No logical reason why not. The thing to check on the other PCs is to switch off ANY low power\/sleep related functions, especially on laptops, but I KNOW this desktop did not have power saves set, as I undo it to stop screens going off - hate those green party freaks...so why it should have any hibernation settings on I don't know - some daft Win10 default somewhere I suppose...<\/p>\n<p>Finally!<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/cav10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-6209\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2017\/01\/cav10.png\" alt=\"\" width=\"602\" height=\"238\" \/><\/a><\/p>\n<p>If you unmount it again after, then it's shown as clean by:<\/p>\n<p>stevee@Dell490 ~ $ <span style=\"color: #0000ff;\">sudo ntfsfix \/dev\/sda2<\/span><br \/>\n<span style=\"color: #ff0000;\">Mounting volume... OK<\/span><br \/>\n<span style=\"color: #ff0000;\">Processing of $MFT and $MFTMirr completed successfully.<\/span><br \/>\n<span style=\"color: #ff0000;\">Checking the alternate boot sector... OK<\/span><br \/>\n<span style=\"color: #ff0000;\">NTFS volume version is 3.1.<\/span><br \/>\n<span style=\"color: #ff0000;\">NTFS partition \/dev\/sda2 was processed successfully.<\/span><\/p>\n<p>(I now found out that MS Win10 has released a free DL \"Refesh\/Re-install\" ISO for DVD\/USB boot to solve all these Upgrade version problems - just shows they generally cannot write anything that works well when they do their shit \"bolt on\" upgrade versions - it's always a fudge compromise).<\/p>\n<p>This DL also fixed my Acer laptop's \"Memory Management\" issue that would not restart.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_6124\" class=\"pvc_stats all  \" data-element-id=\"6124\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>Linux' ability to copy and\/or replace data easily for backup purposes is second to none with tools such as cp, rsync and dd, so\u00a0with cheap hardware like these below, making\/changing Windows or Linux drive\/partition\/file backups from spare SATA hard drives is even easier, as you don't need to take the cover off a tower to <a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/cheap-but-handy-usbsata-backup-gizmos-from-the-web\/\" class=\"more-link\">...<span class=\"screen-reader-text\">\u00a0 Cheap But Handy USB\/SATA\/IDE Backup Gizmos from the Web<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-6124","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"a3_pvc":{"activated":true,"total_views":1,"today_views":0},"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/6124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/comments?post=6124"}],"version-history":[{"count":1,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/6124\/revisions"}],"predecessor-version":[{"id":10072,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/6124\/revisions\/10072"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/media?parent=6124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/categories?post=6124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/tags?post=6124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}