Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 09:46:35 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Rockbox users around? Possibly useful script for Rockbox players  (Read 967 times)
Thaliur
JkDefrag Hero
*****
Posts: 71


View Profile
« on: April 26, 2010, 11:35:04 pm »

Hi guys,
some time ago I cobbled together a not-quite-small script for optimizing my Ex-iPod which now became an actually useful media player after I installed Rockbox software on it.
Since this is a harddisk player, I thought it might be a good idea to get some order into my files. Of course, I wanted to keep albums closely together, without moving too many files after adding or removing some files.
To do this, I decided to put the WMP ID file (if there is one) at the beginning of the disk, to speed up whatever Windows Media player does with it, followed by a very small gap, and thenn all the files rockbox uses directly (including the databases, which are loaded into RAM on boot anyway, just like the folders. No big problems here.)
Then, after another pretty small gap, there will be playlists, if they are stored in a folder called "Playlists" or "Wiedergabelisten" (I'm German, and WMP wanted to use this folder name) or their extension is WPL (Windows Media Player Playlist) or m3u (some universal format which basically just stores file paths. I don't know the official name).
Then MyD will create a slightly larger gap and start with the music directory (has to be called "Music").
In that directory, it will first look for all direct subfolders of "Music" (presumably artists) NOT atarting with a letter, sorted ba name, followed by a gap.
Then, 26 zones, one for each letter, will follow, of course each of them with a gap, and sorted by name.


After the music files are processed, it will move the rockbox updater utility (if it is stored on the player) behind the music, since it doesn't need to be read quickly usually, and after that, it will put all the other files on the drive, if there are any.

Now, after all this talk, here's my script:

[edit] It just came to my mind that I should warn everyone about a few things:
  • The script will take a looooooooong time when you run it the first time.
  • Apparently, iPods are not made for continuous operation. The device gets really hot ater some time. Nothing happened so far, but I suggest some breaks, in case Apple didn't deem it useful to turn off an overheating hard drive.
  • Hopefully not related to the heat thing: Some files become marked as unmovable and will remain in place, so that's another reason to start over occasionally
  • Last time I checked, the rockbox software seemed unable to charge the battery when connected via USB. It's probably better to use the one useful feature of the original firmware (Disk mode - available by pressing select+play during boot) for optimization. This way, you can charge your battery and get the added benefit of no locked files in your rockbox folder

* Rockbox Optimization.MyD (6.64 KB - downloaded 87 times.)
« Last Edit: April 26, 2010, 11:42:55 pm by Thaliur » Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: April 27, 2010, 12:18:49 am »

Thank you very much for contributing your script, I appreciate it. I think it will be very useful to Rockbox users, and a good example of the flexibility of MyDefrag.

Why have you placed gaps between all the letters? I see no need for that. If you put all the music files in a single zone and use the SortByName() command then the result on the disk will be exactly the same, because the command sorts files by full path, except there will be no gaps.

Perhaps you can make a second version of your script that uses Defragment(Fast) and FastFill() instead of SortByName(). This second version would be good for maintenance, it would finish much faster. Just like the Daily and a Monthly combination of the standard MyDefrag scripts.
Logged
Thaliur
JkDefrag Hero
*****
Posts: 71


View Profile
« Reply #2 on: April 27, 2010, 09:01:51 am »

Thank you very much for contributing your script, I appreciate it. I think it will be very useful to Rockbox users, and a good example of the flexibility of MyDefrag.

Why have you placed gaps between all the letters? I see no need for that. If you put all the music files in a single zone and use the SortByName() command then the result on the disk will be exactly the same, because the command sorts files by full path, except there will be no gaps.
The gaps are there in case something new is added. If my player is fully optimized once, and I add a new Album by, let's say Blackmore's Night, all the files following the new location of this album would have to be moved.
With the gaps, though, as long as the album isn't too big, only the "B" zone will be rearranged, and the script finishes much faster.
The quick maintenance script is a good suggestion, I will try to make one this evening.
I'm a bit hesitant to use the defragment command though, since I think I saw it move unfragmented files on my PC hard disk to make room for fragmented files, and I don't want it to do that on my iPod hard drive, because this thing is awfully slow.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #3 on: April 27, 2010, 03:32:23 pm »

I'm a bit hesitant to use the defragment command though, since I think I saw it move unfragmented files on my PC hard disk to make room for fragmented files, and I don't want it to do that on my iPod hard drive, because this thing is awfully slow.
If you use Defragment(Fast) it wont move other files.

jonib
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!