Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Folders and Files mysteriously being removed? (clip+)
« previous next »
  • Print
Pages: [1]

Author Topic: Folders and Files mysteriously being removed? (clip+)  (Read 3244 times)

Offline spiderlance

  • Member
  • *
  • Posts: 7
Folders and Files mysteriously being removed? (clip+)
« on: June 02, 2011, 08:57:45 AM »
Just got a clip+ and installed rockbox on it.

Put the USB mode into MSC

Copy and Paste music to my 16gb MicroSDHC under the folder MUSIC

unplug and boot back into RockBox then update the database.

check to make sure my songs are there. they are.

I did this two more times, then when i checked my songs. they are all gone, and some of the folders are gone too.

I plugged it back in and looked the SD card in explorer. the card is about 50% full but there is NOTHING on there, just a few empty folders.

This is frustrating me, someone tell me what I'm doing wrong.

thanks in advance
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #1 on: June 02, 2011, 10:42:20 AM »
Are you in MTP mode?
Logged

Offline spiderlance

  • Member
  • *
  • Posts: 7
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #2 on: June 03, 2011, 03:31:46 AM »
Quote from: saratoga on June 02, 2011, 10:42:20 AM
Are you in MTP mode?

read the second line of my post, no I'm in MSC
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #3 on: June 03, 2011, 03:38:26 AM »
Are you unmounting properly?
Logged

Offline spiderlance

  • Member
  • *
  • Posts: 7
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #4 on: June 03, 2011, 04:35:41 AM »
Nope, I just pull the plug when it's done copying. does this actually make a difference somehow?
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #5 on: June 03, 2011, 04:38:23 AM »
Quote from: spiderlance on June 03, 2011, 04:35:41 AM
does this actually make a difference somehow?

Yes. It tends to cause exactly the sort of issues you're seeing.
Logged

Offline spiderlance

  • Member
  • *
  • Posts: 7
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #6 on: June 03, 2011, 04:45:34 AM »
Quote from: gevaerts on June 03, 2011, 04:38:23 AM
Yes. It tends to cause exactly the sort of issues you're seeing.
alright I'll do it this way and let you know how it goes.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #7 on: June 03, 2011, 04:49:01 AM »
Quote from: spiderlance on June 03, 2011, 04:35:41 AM
Nope, I just pull the plug when it's done copying. does this actually make a difference somehow?

Maybe a bit of explanation here:

The FAT filesystem has some part that are required to get changed frequently (mostly the FAT). Writing such changes to the disk every time will make writes slow, and similar is true for reading. Therefore all major OS cache those parts of the filesystem. Now if you simply unplug the player the OS has no way to write changes done to the cached parts back to the disk since that is gone. Messing up the FAT can cause serious problems. As a result it is really important to unmount a disk (and this does apply to all disks, and is also true -- to some differet degree -- for otherfilesystems). Windows has a "safels remove hardware" icon in the systray for a reason, OS X will also tell you to not do this and the desktop environments on Linux usually have something like that too.

If you already did it wrong the filesystem will contain errors, and you shoupd really check it before doing anything else.
« Last Edit: June 03, 2011, 04:51:17 AM by bluebrother »
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline spiderlance

  • Member
  • *
  • Posts: 7
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #8 on: June 03, 2011, 05:28:56 AM »
Okay, I've reformatted the card about 3 times, I've tried safely removing the device and the files I just copied are not the card (yet taking up space??).
Also another thing I noticed; the first copy I did worked fine, BUT, while rockbox showed all the music I copied, the OF only showed about half the files I copied. and it seems like it randomly picked which files to show. this was after a full format on the card and safely removing the device.

Quote from: bluebrother on June 03, 2011, 04:49:01 AM
Maybe a bit of explanation here:

The FAT filesystem has some part that are required to get changed frequently (mostly the FAT). Writing such changes to the disk every time will make writes slow, and similar is true for reading. Therefore all major OS cache those parts of the filesystem. Now if you simply unplug the player the OS has no way to write changes done to the cached parts back to the disk since that is gone. Messing up the FAT can cause serious problems. As a result it is really important to unmount a disk (and this does apply to all disks, and is also true -- to some differet degree -- for otherfilesystems). Windows has a "safels remove hardware" icon in the systray for a reason, OS X will also tell you to not do this and the desktop environments on Linux usually have something like that too.

If you already did it wrong the filesystem will contain errors, and you shoupd really check it before doing anything else.

Thanks for clearing that up, would I be able to use NTFS on this card?
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #9 on: June 03, 2011, 05:33:54 AM »
Quote from: spiderlance on June 03, 2011, 05:28:56 AM
Thanks for clearing that up, would I be able to use NTFS on this card?

1) No you wouldn't - Rockbox doesn't read NTFS.

2) It wouldn't help - you should ALWAYS safely unmount a filesystem before you physically unplug it. Doesn't matter if it's NTFS / FAT / <insert other file system here>
Logged

Read The Manual Please

Offline spiderlance

  • Member
  • *
  • Posts: 7
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #10 on: June 03, 2011, 05:42:42 AM »
Alright, thats okay. well after formatting and using the safely remove device option, the problem still occurs.

the first time I add songs works fine, everything shows up.

the second time, I add the songs wait for the copy, safely remove. and they are not on the card, next time I plug the card back in, they are gone.

I might have to resort to copying all my music at once. which is annoying. it wont let me copy more music, if I want to copy more music I will have to reformat and start again. which is balls. I used rockbox on my iriver H320 many years ago and I remember it being an awesome firmware that I never had any problems with.

Any other ideas?
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #11 on: June 03, 2011, 01:14:53 PM »
Maybe you have a bad card.  Is there any difference in behavior if you load files onto the card with a card reader? 

This doesn't seem to be a problem with Rockbox since you see the same sort of behavior with the original firmware.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #12 on: June 03, 2011, 02:21:51 PM »
Quote from: spiderlance on June 03, 2011, 05:42:42 AM
Alright, thats okay. well after formatting and using the safely remove device option, the problem still occurs.

did you check the filesystem for errors? On Windows use chkdsk /f x: from a cmd.exe window (replace x: with the correct drive letter), on Linux fsck.vfat. If the card has errors safely ejecting it won't magically fix them, and with filesystem errors any weird behaviour can occur.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #13 on: June 03, 2011, 04:03:56 PM »
I'm pretty sure spiderlance has formatted and has been safely removing/unmounting since then.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline spiderlance

  • Member
  • *
  • Posts: 7
Re: Folders and Files mysteriously being removed? (clip+)
« Reply #14 on: June 06, 2011, 05:46:40 AM »
hey guys, havnt had much time lately, but I ran a chkdsk just now and there wasnt any errors. I also tried copying the files onto the card with a normal card reader and it worked fine, so it would seem it's not a problem with the card. I'd say it's most likely a problem with the official firmware after I've added songs to the card and it does that "Refreshing your media" stuff.

EDIT:

okay I have had a bit of luck, and I don't know why I didnt try this sooner, I was copying my folders into the "MUSIC" folder on the SD card, this time I just copied them to the root folder, I have added songs a few times now and nothing has gone missing yet. "refreshing your media" seems to replace the "MUSIC" with the subfolders "AUDIOBOOKS" and "PODCASTS", so it probably does other things too (like delete your files). not sure if this is a bug but it might be worth investigating.
« Last Edit: June 06, 2011, 05:55:00 AM by spiderlance »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Folders and Files mysteriously being removed? (clip+)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.107 seconds with 15 queries.