Erasing Flash Memory: Electrical Techniques And Methods

how to erase a flash memory electrically

Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. Erasing data from flash memory is not as simple as it seems. Simply hitting delete and emptying the recycle bin will not be enough as the data can be easily recovered. The process of removing sensitive data from a storage device so that it can no longer be recovered or reconstructed is called sanitization. There are various methods to erase data from flash memory, such as using software, formatting the flash drive, or using file shredding software.

Characteristics Values
Definition An electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed
Types NOR flash, NAND flash
Use Cases Computers, PDAs, digital audio players, digital cameras, mobile phones, synthesizers, video games, scientific instrumentation, industrial robotics, medical electronics
Erasing Process An electric field is created between the bulk and the control gate. The direction of the field determines whether the cell is programmed or erased.
Sanitization The process of removing sensitive data from a storage device so it can no longer be recovered or reconstructed
Secure Erasure Tools Offigneum, ATP's SecurWipe
Overwriting Overwriting the complete disk with random or null bytes may leave parts of surviving data
Formatting Formatting a flash drive does not erase all information, but rather marks the sectors as "empty"

shunzap

The challenges of erasing flash memory

Flash memory is a non-volatile memory that can retain data for years without power supplied to the chip. However, erasing flash memory comes with its own set of challenges.

One of the main challenges is that flash memory can only be erased in block units and not individual bits. This is because flash memory uses in-circuit wiring to apply an electric field to the entire chip or to predetermined sections known as blocks. While this makes the erasing process faster, it also means that deleting one or several pages in a block can be challenging. In such cases, the "deleted" data is often marked as inactive and becomes inaccessible to the user, but it is still physically stored on the NAND. This data will remain on the NAND until the internal garbage collection processes of the media erase the block to free up space.

Another challenge is ensuring that sensitive data is permanently and securely erased. When a user deletes data through the operating system, it is usually not physically deleted on the storage media. It may be moved to a temporary folder or marked as invalid, but the actual data remains until the block is fully erased and overwritten with new data. This can lead to potential data recovery by unauthorized individuals, which could have severe consequences.

Additionally, flash memory wears out over time. Each time data is erased from or written to a cell, it causes wear and tear, leading to cell degradation and eventually becoming unusable. This limits the number of write and erase cycles that can be performed on flash memory.

Furthermore, the process of sanitization, which refers to the permanent removal of sensitive data, can be challenging for flash memory. Some sanitization methods available on the market have been designed for mechanical drives such as HDDs and are not compatible with the specific attributes of NAND Flash-based media. Physical destruction of NAND chips is also more challenging due to their small size compared to HDDs.

Overall, while flash memory offers numerous advantages for data storage, securely erasing data from flash memory devices requires specialized mechanisms and considerations to overcome these challenges.

shunzap

Erasing data on a flash storage device

The process of completely removing data from a storage device so that it cannot be recovered or reconstructed is called "sanitization." Proper sanitization guarantees confidentiality and enables individuals and organizations to maintain control over their information. It is important to note that common sanitization techniques designed for mechanical drives, such as HDDs, may not be effective for NAND Flash-based media.

When deleting files from a flash storage device, simply hitting "delete" and emptying the recycle bin is insufficient. The operating system typically marks the space as "empty" or "deleted", but the data remains physically stored on the device. This data can be easily recovered, posing a risk of exposing sensitive information.

To truly erase data from a flash storage device, more comprehensive methods are required. One approach is to use specialized software tools, such as Offigneum, which is designed specifically for USB flash drives and SSDs. These tools employ powerful algorithms to securely erase data while minimizing wear on the memory cells. Another method is to use "file shredding" or "data erasure" techniques that permanently delete files, making them irretrievable.

Additionally, it is worth mentioning that some flash storage devices have built-in features for secure data erasure. For example, ATP's SecurStor feature family includes SecurWipe, which is integrated into their industrial flash storage solutions. This feature can be customized to meet specific data security requirements and protect against unauthorized access.

shunzap

Using software to erase flash memory

Erasing flash memory using software is a common method for permanently deleting data from a storage device. This process, known as "sanitization", ensures that data cannot be recovered or reconstructed, thereby protecting sensitive information. Here are the detailed steps and considerations for using software to erase flash memory:

Understanding Flash Memory and Sanitization Challenges

Before erasing flash memory, it's important to understand its unique characteristics. Flash memory, such as memory cards and solid-state drives (SSDs), often contains a complex microcontroller with proprietary software and hardware. Additionally, NAND-based flash storage devices are insensitive to magnetic forces, shock, or vibration, making traditional destruction methods ineffective.

Using Data Eraser Software

To ensure secure data erasure, it is recommended to use specialised software tools designed for flash memory sanitization. Examples include Removable Media Eraser Software by Ontrack and esptool, a Python-based utility. These software tools provide user-friendly interfaces and support various types of flash-based storage media, including USB thumb drives, SD cards, and MP3 players. They offer features such as simultaneous erasure of multiple devices, customisable reports, and compliance with legal auditing requirements.

Overwriting Data

A common technique for erasing flash memory is to overwrite the entire disk with random or null bytes. While this method may leave some surviving data, repeatedly overwriting the disk multiple times can effectively eradicate almost all information. However, it is important to note that this approach can significantly diminish the lifetime of the storage media.

Operating System Functions

For basic data removal, you can use built-in functions within your operating system. On Windows, right-click on the flash drive, select "Format", and confirm the erasure. On a Mac, open the Applications folder, access the Utilities folder, and follow the prompts to erase the flash drive. Similarly, you can use the "Erase" tab in the left panel to initiate the erasure process.

Additional Considerations

It's important to recognise that simply deleting or formatting a device may not always guarantee secure data removal. For highly sensitive information, combining software erasure with physical destruction methods can provide an extra layer of security. Additionally, consider using disk encryption techniques to enhance data protection.

shunzap

The mechanics of erasing flash memory

Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory are NOR flash and NAND flash, named for the NOR and NAND logic gates. Both types use the same cell design, consisting of floating-gate MOSFETs, but they differ at the circuit level. In NAND flash, the relationship between the bit line and the word lines resembles a NAND gate, while in NOR flash, it resembles a NOR gate.

The process of removing sensitive data from a storage device so that it can no longer be recovered or reconstructed is called "sanitization." Proper sanitization ensures confidentiality and enables organizations to maintain control over the information they are safeguarding. However, some common sanitization methods used for mechanical drives such as HDDs may not be effective for NAND-based flash storage devices. NAND-based storage devices are insensitive to magnetic forces, shock, or vibration, so destruction mechanisms based on these methods will not work. Additionally, physical destruction can be challenging due to the small size of NAND chips.

To erase flash memory, an electric field is applied to the entire chip or to predetermined sections known as blocks. This erases the targeted area of the chip, which can then be rewritten. Flash memory erases data in blocks or pages, which are groups of sectors, rather than individual bits, as is the case with EEPROM. Erasing in blocks allows for simplifications to the IC, reducing the cost of flash memory compared to EEPROM. By erasing a large number of bits in parallel, flash memory works much faster than traditional EEPROMs.

When flash memory is erased, all the bits are set to 1s (not 0s). While bits and bytes can be individually flipped from 1s to 0s, changing them back to 1s can only be done in bulk. The electrons in the cells of a flash memory chip can be returned to normal ("1") by applying an electric field with a higher-voltage charge. This process is known as Fowler-Nordheim tunnelling.

To erase a flash drive on a PC or Mac, you can follow these general steps:

  • Right-click on the flash drive in the "Devices and Drives" section.
  • Click the "Erase" tab.
  • Select a format (for use on a Windows PC, select MS-DOS (Fat)).
  • Click "Erase" to confirm and initiate the erasure.

shunzap

Erasing flash memory on a PC or Mac

Erasing data on a flash storage device is not as easy as it seems. The process of removing sensitive data from a storage device so that it can no longer be recovered or reconstructed is called "sanitization". Proper sanitization ensures confidentiality and enables appropriate control over the information.

If you are looking to erase flash memory on a Mac, you can use the built-in Disk Utility application. Here's how:

  • Plug the USB flash drive into your Mac.
  • Launch Disk Utility. You can do this by pressing Command+Space to open the Spotlight search dialog, typing "Disk Utility", and pressing "Enter". Alternatively, you can open a Finder window, select "Applications" in the sidebar, and head to Utilities > Disk Utility.
  • Select the USB flash drive from the list of devices.
  • Click on Erase and then choose what format you would like to format the USB flash drive to. If you plan on using the flash drive on both Mac and Windows, format the USB Flash drive to FAT32 or exFAT so that you can use it on both operating systems.
  • Click the "Erase" button. Depending on the size and speed of your flash drive, it may take a minute or two. Once the formatting process is finished, you should be able to transfer files to the newly formatted flash drive.

If you are looking to erase flash memory on a PC, here are the general steps:

  • Right-click your flash drive. It’s under the “Devices and drives” header in the right panel.
  • Click Format.
  • Click Start. A confirmation message will appear, letting you know that all data on the drive will be erased.
  • Click OK. Windows will now remove all of the data from your flash drive.

Please note that even if the data is permanently deleted in the operating system, it is initially only deleting the respective file names from the directory. On the storage media, the respective data is marked as invalid but remains there until the block is fully erased and filled with new data. Overwriting the whole disk repeatedly should eradicate almost all the data, but you cannot be sure of it, and it will severely diminish the lifetime of the card.

Frequently asked questions

Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. It is used in computers, PDAs, digital audio players, digital cameras, mobile phones, etc.

Erasing data on a flash memory device is not as simple as hitting delete. Deleting files on a computer only marks the space as "empty" and does not actually erase the data. To ensure data is fully erased, use a "file shredding" software such as Offigneum, which is designed to be compatible with USB flash drives and SSDs.

The process of removing sensitive data from a storage device so it can no longer be recovered nor reconstructed is called "sanitization."

Mechanical drives are sensitive to magnetic and physical forces, so degaussing (using magnetic fields) and physical destruction are effective ways to erase data. NAND-based storage devices, on the other hand, are insensitive to magnetic forces, shock, or vibration, so these methods will not work.

On a PC, right-click on the flash drive, select "Format," click "Start," and then "OK." On a Mac, plug in the flash drive, open the Applications folder, double-click Utilities, select your flash drive, click the "Erase" tab, select a format, click "Erase," and then "Erase" again.

Written by
Reviewed by

Explore related products

Share this post
Print
Did this article help you?

Leave a comment