Author Topic: Defrag Internal Flash?  (Read 2700 times)

jamesannan

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Defrag Internal Flash?
« on: January 19, 2006, 03:16:00 am »
Does anyone know what this message means?

On starting up mail, I get told the internal flash is fragmented, and an offer to defrag ("this may take some time"). It doesn't matter whether I say yes or no, mail starts up ok and the message is repeated next time. I'm also having trouble deleting multiple mail messages, supposedly due to lack of space (which I don't believe).

Is there anything I can do to stop the message? Can I actually defrag the internal flash? It's been (rarely) mentioned here before, but no useful answers supplied. This is on a standard 860.

Thanks,

James

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Defrag Internal Flash?
« Reply #1 on: January 20, 2006, 05:01:56 am »
There is no benefit to defragging the internal flash memory that I know.  Access time will not be noticeably faster on a flash drive as it might be on a hard disk after defragging.

You can run out of temporary file space.  The default amount of "/tmp" file space is 1MB of RAM on my C760.  It is defined in the "/etc/fstab" file.  If you have a flash card, then you might be able to specify a directory on your flash card as the mount point for the "/tmp" directory and be limited only by the amount of free space on the flash card.  I have not tried this myself.  It is possible that using the "/tmp" directory on a flash card might interfere with the boot process.
« Last Edit: January 20, 2006, 05:18:04 am by qx773 »

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Defrag Internal Flash?
« Reply #2 on: January 20, 2006, 05:40:09 am »
Quote
Does anyone know what this message means?
This has nothing to do with fragmentation of the file system on your flash.

It is a message related to the internal "DTM" database used by the Sharp ROM. This database is used to store Contacts, Events, Tasks, Memos and Mails. It can become fragmented in any area so you can receive this message also from Address Book or Calendar.

Simply say "yes" and everhing should be fine again. If not, the database might be corrupt. AFAIK, there is no "repair" tool. So, you can just delete or reinstall from a backup.

-- hns
« Last Edit: January 20, 2006, 05:41:43 am by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Defrag Internal Flash?
« Reply #3 on: January 22, 2006, 04:23:02 am »
Just as a side note qx773 is correct, there is no benifit as the seek time for flash is several magnitudes lower than that of a hard drive (nS|uS vs mS)
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Defrag Internal Flash?
« Reply #4 on: January 24, 2006, 05:54:04 am »
Quote
On starting up mail, I get told the internal flash is fragmented, and an offer to defrag ("this may take some time"). It doesn't matter whether I say yes or no, mail starts up ok and the [div align=\"right\"][a href=\"index.php?act=findpost&pid=111539\"][{POST_SNAPBACK}][/a][/div]


are u sure it's not simply trying to compact your mail folders, which can sort of be viewed as "defragging?"

try adding a swap file to give the Z more 'elbow room' and close all other apps whilst mail is compacting folders?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.