WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: life time on USB live cd or TCL use  (Read 3362 times)

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
life time on USB live cd or TCL use
« on: April 20, 2011, 10:07:10 AM »
A new topic for tife time for TCL on USB (or ubuntu live cd).

Ours machines are actually on ubuntu 8.04 live cd, installed on USB key.
Our application is on ro disks, and user configuration or counters are written synchronized on two rw partitions.

After 1.5 years, there is some bad files on live cd partition (where kernel, ... and squashfs is written on fat32 filesystem).

The only 'actions' are formating counter partition when there is file access error.



We will use TCL on one actual machine (runs ok) and probably futurs products.
(i've got problem with starting X on an other machine).

With TCL, same usage would be done.


I suppose formating partition may acces to MBR and may contribute recduting usb life time.

Who have any information or experiment confirming (or not i expect) what i can suppose ?


Thanks,
Daniel.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: life time on USB live cd or TCL use
« Reply #1 on: April 20, 2011, 11:57:48 AM »
Your question is not clear.
Just reading the MBR will not reduce the life of the drive.

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: life time on USB live cd or TCL use
« Reply #2 on: April 20, 2011, 12:02:28 PM »
I know about "reading"  ;)

I said :
Quote
I suppose formating partition may acces to MBR and may contribute reducting usb life time.

D.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: life time on USB live cd or TCL use
« Reply #3 on: April 20, 2011, 12:30:54 PM »
Hi Daniel
The main thing that limits the life is the number of times you write to it. Formatting counts as a write.
The easiest way to extend the life is to write your data to a file in RAM and update the device only
when you shut down. If you insist on constantly writing to the device you will have to implement some
form of wear leveling it you want to extend it's life.

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: life time on USB live cd or TCL use
« Reply #4 on: April 20, 2011, 12:37:54 PM »
Thanks Rich!

I precise the partition witch 'loose files' is not the formated partition!

The question is : formating a device partition may reduce MBR life time, or not ? (disk in extended partition, or not).

Wear leveling is implemented in usb devices. It runs ok if there is umpartioned size (space remaining to be used if necessary).

D.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: life time on USB live cd or TCL use
« Reply #5 on: April 20, 2011, 12:40:14 PM »
Wear leveling is built-in for USB flash drives.
I still don't see what accessing the MBR has to do with anything.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: life time on USB live cd or TCL use
« Reply #6 on: April 20, 2011, 12:56:30 PM »
Hi Daniel
Most likely formating will update the partition table in the MBR and effect it's life. How often are
you formatting and why?

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: life time on USB live cd or TCL use
« Reply #7 on: April 20, 2011, 01:06:47 PM »
The mbr is automatically created when the first partition is created.

If you delete the partition, and create a new one, the mbr will be written to.

If you just format an existing partition, the mbr is not written to.

Writing to the mbr should not affect the life of the usb drive any more than writing to any other part of the drive.


USB drives can normally be written to thousands of times before they fail.

Formatting is writing to it once. You should be able to write to it thousands more times.


To maximize the life of a usb drive:

Use the ext2 filesystem, as it is not a journalling filesystem. This reduces the amount of writing.

Use backup in Tiny Core, not persistent home and opt. When you save something, it will be saved to ram. The usb drive will only be written to when you turn the computer off. Unless you backup sooner.
Many people see what is. Some people see what can be, and make a difference.

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: life time on USB live cd or TCL use
« Reply #8 on: April 21, 2011, 09:18:46 AM »
Thanks to everybody!

I've got informations about USB and wear leveling:

Commercial USB key are using 'BAD flash'!
Manufacturers may plug 8Gb in order to obtain a 4Gb usb key correct size (destructed sectors).

Wear leveling is flash managed over usb 'official' size.
This size is constructor dependant (choice) x mb to 100mb ?

More :
No guaraty is done for life time!

In fact, i can have some bad usb key witch have the problem.


That's why i'm looking for USB DOM (industrial usb). (more write number, write speed increased ...)


But i have an other problem:
When i write many data (200Mb program installation), i've got crc errors when checking after copy, (detected) or bad written file, even if crc tells no error. (very more on industrial than commercial usb key)

It is explained with the USB RAM buffer (bigger than the commercial USB because of speed).
--> When the usb key said "write finished ok", the RAM buffer is not empty, and writing not terminated.
Even if sync or umount is done : usb traffic is finished, not usb internal write.


Then, i'm looking to know how i can know when that's finished.
One possibility is to "eject" the usb device.
Is it possible on a disk partition ? (same result?)

But i don't remove usb key : is it possible to "insert a partition" ?

or ?

Thanks
Daniel.





Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: life time on USB live cd or TCL use
« Reply #9 on: April 21, 2011, 02:47:41 PM »
Logically there should be less of a concern for MBR in comparison to all other sectors, as write cycles lifetime is measured by the thousands, and hardly anyone would update a MBR thousands of times...
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)