I’m having a problem with a SanDisk USB SSD drive after using it in the R Pi with Volumio. After shutting down the Pi first, then removing the USB SSD drive, when I plug the drive into a Windows 10 PC, I get an error:
“There might be a problem with some files on this device or disc. This can happen if you remove the device or disc before all files have been written to it.”
Clck Scan and Fix, and Windows finds no problems. When I try to add more music files to the drive, however, I get another error:
An unexpected error is keeping you from copying the file. If you continue to receive this error, you can use the error code to search for help with this problem.
Error 0x80071AC3: The operation could not be completed because the volume is dirty. Please run chkdsk and try again.
So now that I’ve accumulated about 200 Gb of music files on the SSD drive (500 GB capacity), I’m wary of using it with the Pi because I have more files to add.
Note that this problem also happened with a USB Thumb drive (SanDisk Cruzer), but the problem seems to go away if I perform an “Eject” on Windows. Same technique does not resolve the problem with the SSD drive though.
It’s exFAT formatted and filled with FLAC files added via Windows Explorer which I play via Volumio. Works great, but after removing the drive and inserting it into a Windows PC, Windows says it detects a problem with the drive, but can still read the drive (all files visible and I can navigate the folders). After saying it detects a problem, I click Scan and Fix, which says there is no problem(!).
When I go to Write more FLAC files, or any file, like test.txt, it says the volume is dirty and that’s the problem I’m trying to resolve. One cannot have enough music and I want to add more folders and FLAC files to the drive.
Trouble is, this is a catch-all error that is found on every Windows OS and tells you actually very little. ‘AAaagh!’ would be more descriptive… There’s a boat-load of possible ‘solutions’ if you search on ‘usb ssd dirty volume’ in your favourite search engine. Which one actually applies to your case is going to be trial-and-error due to the nature of the thing; TL;DR nothing quick.
1- Make sure that you disconnect your drive after powering down Volumio, or eject the drive from Volumio (click on the 3 dots near your drive name when you browse it)
2- SSD Drives are very power hungry (contrary to popular belief). So I advice you to use a powered USB hub
Well, properly powering down the Pi with Volumio means Shutdown via the Volumio interface. Do not just pull the plug, if that’s what you mean
Why go through the hassle of disconnecting the drive? Volumio also shares the attached drive, so you can transfer files to it over the LAN. Yes, it is slower, but you do incremental updates regularly it sure saves the time of powering down, disconnecting, reconnecting and booting.
Yeah, that’s what I meant… I’ve just been turning it off with the power supply on/off switch. Maybe that’s why the usb drive ends up “dirty”. Presumably there’s a file open, perhaps for Write access, which causes the issue… Hopefully the power down through Volumio will do the trick!
Regarding why don’t I just add to the drive over the LAN, wirelessly, too many large files, and I do most setup of the FLAC files, tagging, etc (almost all live shows) at another location. Would take a long time to transfer over 100-200 Gb. Recently have been doing massive transfers to the external drive to build up a digital library…
When I go to System > Shutdown and click it, I continue to see the spinning icon after 30 minutes, and the Pi doesn’t seem to shut down. The red LED is still lit, but maybe this is just power connected ? Not sure what’s going on. Thinking how can the device show shutdown if it is - is this correct ?
When running, for the USB drive, I don’t see an Eject option. All I see via Browse > Media Library > USB > the three dots are the following options:
Play
Add to Queue
Clear and Play
Add to Playlist
Add to Favourites
No Eject option. Am I looking in the right place ? [EDIT: after restart, now seeing Safe Remove Media - Yes!
I’m running the latest Volumio version released in Feb 2019.
I’m VERY Happy to report that by using Safe Remove Media to remove my 500GB SSD (connected to a new, powered USB Hub > Pi) eliminates the errors I saw before!! Ie, no more "there’s a problem with the drive, run CHKDSK, and “volume is dirty” errors after connecting the drive to a Windows PC !!!