PDA

View Full Version : Interactive writing to persistance area in FLASH a concern?



rrolsbe
11-11-2006, 06:01 PM
I followed the instructions at the following web site to install a bootable copy on knoppix 5.02 to a USB Thumb drive and create a persistant area on the same Thumb drive. If I choose to use the persistant information at boot time, I assume the mounted IMG is actively writing to the USB flash, correct? Is there an option to write the persistant imformation from the USB drive to the RAM drive at boot up then save to USB drive on shutdown.? With this option the IMG file containing the persistant information would only be updated once per session thereby minimizing writes to the flash. Comments/Ideas???

http://www.howudune.com/knoppix.php

Cuddles
11-15-2006, 10:03 PM
rrolsbe,

Hmmm, interesting... I think the differances are "Persistant" and "Save Config"

Persistant makes a image that is used to load, install, etc... files and configurations to a drive. Persistant is one step above "Save Config", and not only allows you to do more things having it, but, also stores more things on that. Whereas, the "Save Config", afaik, saves the /home user area, correct me if I am wrong.

I am working off of memory, and its been a while... so... from what I recall, both use a file to store everything, within that file, something like knoppix.img or something. Depending on what you select, persistant or save config, determines what is stored on it...

I cant imagine a big deal on the run times... you are either going to "flush" the data in one step, when you say so, or, smaller "chunks" on a persistant. If the issue was that great, hard drive installs would be waiting to flush everything when you go and shutdown, instead of doing it "every-so-often". Also, you dont need to worry about the wear factor, as does people who use a hard drive, no mechanical moving parts. I would think the MTBF on flash media is way longer than a hard drive.

Just some thoughts, not quite sure if I gave any answers,
MS Cuddles
-=- Come to the Dark Side, we have penguins -=-

knoppu
11-21-2006, 07:00 PM
I would think the MTBF on flash media is way longer than a hard drive.

you should maybe only give advice based on knowlege rather than I should think.

flash memory devices have a large but finite number of write cycles before burning out.

One thing to be particularly careful of is mounting vfat with the sync option. This will not only be very slow but will thrash the hell out of the FAT sector. On some cheaper devices this can lead to VERY premature failure especially when writing large ammounts of data like the OP indicates.

On the other hand if it's not mounted -o sync make sure you run sync command or umount the device AND GIVE IT TIME TO FLUSH before pulling it out.

Bearing in mind that Knoppix usb is not working this may mean several minutes maybe l0s of mins depending on what is being written out. Please watch the LED activity on the drive.


I am not sure what Knoppix does by default and I'm not going to hunt it down or reboot knoppix to find out. Its an important linux issue that is well worth knowing about anyway.

See the bugs page if you make much use of USB devices.
:wink: