Shop OBEX P1 Docs P2 Docs Learn Events
OT: usb flashdrives — Parallax Forums

OT: usb flashdrives

hitswarehitsware Posts: 156
edited 2008-01-15 01:49 in General Discussion
Are·usb flashdrives the type of memory that 'wears out'·after a certain number of writes/reads ?·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-13 22:02
    All flash memory including USB memory stick drives "wear out" after large numbers of writes. These drives are made with internal controllers that check when a "sector" begins to wear out and will relocate the sector to a different portion of the memory space. This is not particularly different from floppy drives or hard disks which can also develop defects in particular sectors and the drive controller and/or the operating system will mark the sector as bad and use a different sector for the information. Often the drives (like floppies and hard disks) will have extra sectors set aside for just this purpose.
  • hitswarehitsware Posts: 156
    edited 2008-01-14 17:00
    Thank You,
    At the risk of getting too OT:
    Is there more to a 'flash drive' than just the stick?
    I.E. I'm about to get a new PC with usb ports on the front.
    Can I set 1 of them (from BIOS) as a bootable drive?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-14 17:44
    It's likely that your new PC would be able to boot from the flash drive.
    Check the manual on the BIOS.

    I'm not sure what you mean "more to a 'flash drive'". USB devices are
    divided into various classes and "mass storage" is one of those that include
    hard disks and devices that look like hard drives, like flash drives.
  • hitswarehitsware Posts: 156
    edited 2008-01-14 18:25
    Mike Green said...
    I'm not sure what you mean "more to a 'flash drive'".
    http://us.st11.yimg.com/us.st.yimg.com/I/supermediastore_1982_183779780

    The pic shows the whole 'drive' as opposed to a floppy which inserts into a drive ?
    So the usb port is a socket for the drive, rather than the drive itself ?
    And if bootable this would mean usb runs from the bios rather than the OS ?
    Thanks again [noparse]:)[/noparse]
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-14 18:53
    The flash drive does include both the memory itself and a controller. The BIOS would
    have enough code in it to initialize the USB and the flash drive and to be able to support
    enough basic I/O to read in the boot block which would read in enough of the operating
    system for that to get going. Once Windows is operating, it probably doesn't use the
    BIOS routines since those are fairly primitive.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-01-14 21:13
    This thread is being moved from the BASIC Stamp Forum to the Sandbox Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • hitswarehitsware Posts: 156
    edited 2008-01-14 22:40
    Then one could build a PC with flashdrives replacing all moving part drives.



    ·
  • Harrison.Harrison. Posts: 484
    edited 2008-01-15 01:49
    People do this all the time. A quick search on google will give you tons of results for Linux distros that are built for booting off of a usb drive. Beware that USB flash devices are much slower than conventional HDs.

    The preferred setup seems to be CF (Compact Flash) cards with an IDE converter. This allows the computer to function normally since the CF card appears as a standard hard drive.

    You will likely need to tweak the OS you are installing to minimize disk writes on boot. There are lots of instructions on how to do this for Windows / Linux. This will greatly extend the life of your flash device.

    Harrison
Sign In or Register to comment.