How to: Enable disabled USB in Windows

How to: Enable disabled USB in Windows

Note: This assumes you have administrator rights on the Windows PC in question. Valid for all version of Windows I was able to test it on. (XP, 2000, Windows 7)

Note #2: This command edits the Registry. Doing so incorrectly can severely mess up your machine. If you do not feel comfortable editing the Registry, contact your IT department or local Computer Shop.

Some Virus and Malware will disable the USB ports in Windows to keep themselves from getting “cleaned” off the machine. Note that this does not affect the USB Keyboard or Mouse in any way.

1. Click Start, and then click Run.
2. In the Open box, type “regedit,” and then click OK.
3. Locate, and then click the following registry key: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUsbStor
4. In the right pane, double-click “Start”.
5. In the Value data box, type “3” without quotes
6. Click Hexadecimal if it is not already selected, and then click OK.
6. Quit Registry Editor
7.) Restart Computer

To re-disable, in step 5 use “4” instead.

If you do not have administrative rights to the computer, contact your IT department, or your local Computer Repair Shop.

How To: Use Dump to back up a full filesystem

How To: Use Dump to back up a full filesystem

Way back in the day when tape drives first started being heavily used to do backups of Unix machines, the dump command was created. In typical Unix simplicity the dump command “dumps” files from one device to another device. This can be a tape drive, a hard drive, even a network share. rsync does a similar process but is meant for immediate use of those files.

First step is to be sure dump is installed. If not use, rpm, yum, port, apt-get, or your local repository method to install dump on your system.

The quickest command to get started is: dump -0 -j9 -f /pathtosavebackup /pathtobackup

This would give us a down and dirty dump of the requested path, or if / is used in the second part of the command, the full file system starting at the root.

-j9 tells the command to compress (using tar) the file as much as possible.

-f defines the device (or filesystem path) to dump too. Keep in mind that this command could not be used to dump files from the local filesystem back to the local filesystem.

The bad news is that this will take quite a while depending on how much data needs to be dumped, how fast the hard drives (or tape drive) is, and if backing up to a network share, how fast the ethernet connection is. In my tests 100gb filesystem got compressed down to 23gb, and took about fives hours across a 10/100 connection.

After the dump is done, tar can be used to unarchive the file to a new file system.