Linux Lite Forums

Hardware - Support => Hard Drives and SSDs => Topic started by: ian_r_h on January 29, 2018, 06:15:16 AM

Title: Deletion of Files on USB Stick not always Clearing Space
Post by: ian_r_h on January 29, 2018, 06:15:16 AM
Hi, all,

I feel fairly confident with Linux now that I can research this problem on my own, but may still need to ask for help.  That said, I do have a work-around.  I post this for now in case anyone else has the same problem.


Two other common faults have been identified on this specific laptop's USB ports with this make and model of USB stick (for completeness):-


Title: Re: Deletion of Files on USB Stick not always Clearing Space
Post by: justme2 on January 29, 2018, 07:12:45 AM
@ian_r_h  I have no answer to your problem, just to say that I use USB extension cables with linux systems and no problems. There are different types of cable though, some are just a recharging cable for phones/tablets, some long extension cables have a built-in usb hub to act as a repeater and others have the standard five straight wire connections(+, -, D1, D2, gnd).
Standard cables work fine for me - my usb sticks are too wide to sit side by side in adjacent sockets, so cables are a must. Note: only able to test on USB2, I have no USB3 ports.
Title: Re: Deletion of Files on USB Stick not always Clearing Space
Post by: bitsnpcs on January 29, 2018, 12:08:00 PM
I had problems with Sandisk 16GB being read only, and also needed reboot to solve it.
It only happened 1 time on 1 of them so far.
I got it 3 for £10 from Tesco.

Kingston Datatraveller I have some of this 8Gb ones, x1 metal champagne one, and x6 flip ones red, none of these have had any issues at all. I don't have/and haven't used any 16GB Kingston.

Others I use now some micro drive 16GB, (no branding), it had no problems for me.

I used a 10 metres usb lead with boost as per the criteria of USB format, it worked fast and no problems on everything I used it with.
I use x6 extension of usb from 2 of usb switchbox to Linux Lite computers, well there is 8 of them but only using 6 now.
I use 1 extension of usb from mouse to switchbox.
I have the usb vertical pod the usb goes into it vertically, it has wired usb extension, I won it as part of wardriving kit before, it works correctly on Linux Lite, all that kit does.
Other I used splice, usb mini and usb micro > usb extension, charging and bi directional data, it works correctly on Linux Lite for me.
Other I used data link ups to usb , its from digital multimeter into usb etc.

Also I used many times male to female 2metres and also joining this 2 +1 metres extension usb cables.
Title: Re: Deletion of Files on USB Stick not always Clearing Space
Post by: richtea on January 29, 2018, 12:53:16 PM
[[size=0px] On inserting (mounting) a USB stick, sometimes there appears to be (significantly) less space than ought to be available.[/size]]

Might this resolve the issue?


https://www.wikihow.com/Restore-or-Delete-Files-from-a-Flash-Drive%27s-Hidden-%22Trash%22-Folder (https://www.wikihow.com/Restore-or-Delete-Files-from-a-Flash-Drive%27s-Hidden-%22Trash%22-Folder)



Title: Re: Deletion of Files on USB Stick not always Clearing Space
Post by: ian_r_h on January 30, 2018, 05:55:17 AM
Thanks to everyone.

About 1/2 hour after I wrote the post I thought, "Hmmm... I wonder if (unlike Windows) Linux places files when pressing the delete key into a trash?"  Looks like I needed to write the post to clear my head.

So,

1)  On the post subject:  Linux places files into a (hidden) trash folder when pressing [DELETE].  You need to empty the trash to actually free the space; or right-click and select the Delete option and confirm permanent deletion.  So that's that solved!

2)  I guess some extension cables work and some don't?  Not a major issue for me, personally.

3)  The issue of USB sticks suddenly appearing to go read-only looks like it's been around since at least 2014 in Ubuntu.  I originally came across the problem on Ubuntu/Unity with the default file manager.  No-one seemed to have found a definitive answer as to how to solve this; possibly because no-one appeared to have established exactly why it was happening.  I only use two makes-and-models of USB stick with Linux (as mentioned in my opening post).  I can confirm that whenever I use a Kanguru USB stick, Thunar (and the Unity file manager) will claim the Kingston USB sticks are read-only until a new boot.  I don't know enough to go much further with that at the moment; and rebooting after using the Kanguru stick always solves the issue.
Title: Re: Deletion of Files on USB Stick not always Clearing Space
Post by: bitsnpcs on January 30, 2018, 02:20:12 PM
Hello ian_r_h,

an interesting thread.
It seems to affect multiple brands of usb stick.
Title: Re: Deletion of Files on USB Stick not always Clearing Space
Post by: TheDead on January 30, 2018, 07:46:43 PM
I think some configuration see the USB key has a full fledge Hard Drive and treat it as such (i.e. non-removable). Also had the same on "another OS" sometimes.
I usually just reformat/wipe these USB keys. On Macs, on bad ejects this can be awful and lock drive/crash OS.
Also, some USB3 keys in USB2/USB1 ports give all sorts of problems.

BTW, you need USB3 cable extensions if you have USB3 keys and ports. Otherwise, it will run at USB2/USB1 speed, or, I'm just guessing give other problems.

Cheers!
Title: Re: Deletion of Files on USB Stick not always Clearing Space
Post by: ian_r_h on February 01, 2018, 07:43:39 AM
At some point I will need to return to the USB sticks going read-only problem.  This may be more useful generally once I am more familiar with Linux and esp. the terminal.  I only use two brands of USB stick, so that makes it possible to simply control the variables in my case, so it may present an opportunity to investigate the problem for a more general audience too.  Maybe.

Anyway, if I remember, I'll add a link to the dedicated thread at the end of this one, once I am ready to begin...