Posts Tagged ‘usb’

“No space left on device” error on empty drives

Thursday, March 15, 2012 posted by CSch

It may occur that when you try to copy files from your hard disk to an external device such as an external HDD or a USB key, you get an error stating that there was no free space left on your device although you just erased everything from it to make some. This is most likely due to limitations of the file system your drive uses – newer drives might already use the NTFS file system while older will still use FAT32 or even FAT16.

The thing is that FAT32 formatted drives only support files up to a maximum size of 4GB – for example if you try to put an image file of 6 GB onto an external, FAT32 formatted hard drive of 320 GB with 100 GB of those still free and not in use, the copying will fail. To change this, you have to format the target drive to the NTFS file system.

Formatting will erase all data on a drive, so backup everything you have on it beforehand. Afterwards, right-click the drive in your file browser and choose Format….

On the appearing window, there will likely be an FAT file system on the File System drop-down menu (if it already says NTFS there, this guide won’t solve your problems). Before you change anything, double-check that you picked the right drive. Then change the file system to NTFS and click Start.

Using the ReadyBoost Feature on Windows Vista/7

Friday, January 20, 2012 posted by CSch

ReadyBoost is a Windows feature that uses USB sticks or other flash drives such as SD cards to “speed up your computer”. However the concrete use is not to add the device’s memory to your RAM but to use fast accessible devices as cache storage.

Because of this fact, there are certain conditions that have to be met. The first of course is that you use a flash drive with high reading-rates and access times. If these are lower than those of your hard drive, it will give you nothing. The second is, that you do not turn off your computer every time you complete your work – if you do so every evening, the cache on your flash drive will not even get the chance to properly build up to be used before you shut the computer down. The better choice is to hibernate your computer.
Hibernation is disabled by default on many computers and is not available in the shutdown menu. You can circumvent this however by entering the following into an elevated command prompt (search for cmd, right-click it and Run as administrator):

powercfg -H on

Afterwards right-click on your desktop and create a new shortcut pointing to shutdown.exe /h. Using this shortcut will cause your machine to go into hibernated state (your computer does not use any power here – it just saves the state the current programs are in and cleans the RAM cache, they are restored to that state after turning on the machine again. This happens using a large file where the states are stored in).
Upon hibernating, the flash cache will not be deleted and hence unfolds its use over time.

Another important issue is writing on drives and the defragmentation of drives. The more you write on the drive, the more the flash cache has to be changed – this can result in lower efficiency. If you also defragment the drive, you damage your cache even more – at some point it will become ineffective. Do that only before you choose to completely restart or shutdown your computer (turn off auto defragmentation if you have such things enabled by some kind of software!). Of course, trying to defragment the flash cache will make it unusable.

If you have everything prepared, insert your flash device into the machine. On the what-to-do-with-it prompt, choose Speed up my system using Windows ReadyBoost. Remember not to defragment, restart or shutdown the machine to be able to fully use the device.

Now if you have a decent amount of cache on your flash drive and requests are send to open something, the RAM cache is the first location to look at – if there is nothing there but on your ReadyBoosted drive, the computer will calculate whether it is faster to get the files from your cache or from your hard drive – this is the way ReadyBoost actually can make your machine faster and it has nothing to do with increasing RAM or similar issues.

Enable USB Support In Virtualbox (Ubuntu)

Thursday, December 22, 2011 posted by CSch

Enabling USB Support in Virtualbox means to be able to access USB drives plugged into your physical machine on your virtual machines. To accomplish this, you first need to download the newest version of Virtualbox (4.1.8 at the time of this writing), which is not available in the Ubuntu repositories but on the Virtualbox homepage:

https://www.virtualbox.org/wiki/Downloads

Uninstall any previously installed version if present and then install the downloaded Debian package with a package installer taking care of dependencies, such as gdebi.
Next, head back to the homepage and install the Virtualbox Extension pack which supports USB 2.0.
Now you have to make yourself member of the vboxusers group. Go to the Users and Groups Settings in your Control Panel and hit Manage Groups. Scroll down to the vboxusers group and hit Properties. Check the box next to your username and click OK.

Last but not least you have to enable USB for the virtual machine. Close it if it is running and enter the Settings window. On the left panel, select USB. Check Enable USB Controller as well as Enable USB 2.0 (EHCI) Controller. Then click the button with the small green plus-symbol and add the USB device you need:

If you run the machine a USB symbol will indicate that USB is enabled and a device is running on virtual machine: