Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [flash-memory]

The tag has no usage guidance.

1
vote
1answer
19 views

Limit on continuously writing to a log file

I am using Debian running on a BeableBone Black with 4GB of internal flash storage. My program is continuously writing / appending to a log file that I created with >> every minute, all day ...
0
votes
1answer
9 views

U-boot messages regarding partition switches not understood

I am using a BeagleBone board with the default Debian image flashed to the internal emmc. I'm trying to understand the U-boot messages below that I get over serial when the device starts, especially ...
1
vote
0answers
21 views

Is it possible to access linux/ramdisk code memory from its running system?

I'm working with an embedded Linux device that has to be auditioned by a regulatory agency. The agency will select a few devices in the field to check if the code running is the same as auditioned. ...
0
votes
1answer
17 views

Interpreting /proc/partitions

I'm confused about the partitions size of a flash memory in my embedded linux device: / # cat /proc/partitions major minor #blocks name 240 0 93184 ndda 240 1 85168 ndda1 ...
1
vote
2answers
49 views

Rootfs versus kernel confusion [closed]

I know that they are two different entities. Rootfs is a file system which describes how to store and access data. The kernel is actual code which executes. However, isn't the kernel code stored ...
1
vote
1answer
53 views

How to format a rogue flash drive? (GParted tries to touch file system footer beyond actual capacity, and freezes up indefinitely) [closed]

On a limbo-type fake USB or SD card, all sectors starting from a specific position on the drive are unavailable (zeroes only or ones only or unreadable sector response). A flash drive might indicate ...
1
vote
1answer
57 views

Passwordless encryption of flash drive

I am using Ubuntu and I have an encrypted flash drive which synchronizes with a folder on my desktop whenever I plug it into the computer (using rsync and a systemctl service that runs the bash script ...
1
vote
0answers
155 views

Cannot access nand or emmc partition from linux

I have a i.mx6 based board running using buildroot and linux. This board have two storages nand and emmc. The nand had full rootfs and kernel on itself. I am now booting from SD card. From the boot ...
0
votes
1answer
31 views

Moving an Linux OS image from a 4 GB flash drive to a hard drive

I have a small flash drive (4 GB) that has a stripped down version of Redhat Linux. I'm currently attempting to move this OS from the flash drive to a much bigger hard drive (500 GB) that is bootable. ...
0
votes
0answers
34 views

Apply incremental patches on ubifs volume

To update a ubifs volume by replacing it with entirely new content, ubiupdatevol from mtd-utils can be used: ubiupdatevol /dev/ubiX_Y /path/to/ubifs.img Is there a way to apply patch on ubifs volume ...
1
vote
1answer
265 views

How can I create a bootable flash drive for Lbuntu and also store temporarily other personal files in the same flash drive?

I have a flash drive, whose information given by sudo fdisk -l is Device Boot Start End Sectors Size Id Type /dev/sdb1 1 7864319 7864319 3.8G c W95 FAT32 (LBA) I would like to ...
-2
votes
1answer
45 views

Question regarding naming EEPROM [closed]

EEPROM stands for electronically erasable programmable read-only memory. If it's erasable and programmable then why it's called read-only memory? Question should suggest that I am new in all these ...
0
votes
1answer
133 views

f3read - what is the difference between corrupted, changed and overwritten sectors?

I'm using f3 to test hundreds of USB flash memory sticks for errors. Here's an example output from a faulty drive. First writing test files with f3write: Free space: 3.74 GB Creating file 1.h2w ... ...
0
votes
0answers
134 views

Bad block management in MTD devices

I have read about bad block management on NAND devices (very basic and probably incorrect understanding). My query is that if I do a dd read of /dev/mtdblocN and compute sha1, will it change over ...
0
votes
0answers
224 views

UBIFS going into Read only mode

I have a customer unit having UBIFS file system on it. Unit is up and running fine. The unit under goes a test of power cycling (AC mode-Battery mode- AC mode). At some point of time the unit(UBIFS ...
1
vote
1answer
561 views

How can I backup Linux kernel image

Board with ARM926EJ CPU, running embedded Linux v2.6.26.5, on NAND Flash device, NAND 32MiB. Linux is on MTD partitions on NAND device. How can I backup Linux kernel image (SP2Xcybertan_rom_bin) from ...
1
vote
0answers
37 views

Search data stored on memory for particular string

Is it possible to search data stored on memory for particular string? Example: we want display memory contents corresponding to particular string in code, is possible search for this string and ...
1
vote
1answer
13k views

Fix read only file system usb

I have a usb flash memory which I can't do anything on it because its read only: sudo fdisk -l Device Boot Start End Sectors Size Id Type /dev/sdc1 * 2048 7864319 7862272 3.8G ...
1
vote
1answer
839 views

Backup Nand Flash memory area

Linux version 2.6.26.5 embedded system on board. Device use full Image's Kernel. File system stored on NAND Flash memory, Hynix NAND 32MiB 3,3V 8-bit. # printenv baudrate=115200 ethaddr=FF:FF:FF:FF:...
1
vote
1answer
192 views

flash memory write-protected problem and bad superblock

I have problem with my flash memory. after connecting it I have /dev/sdc but I don't have any /dev/sdc# and after mounting the flash; I get the wrong fs type and bad superblock and write-protected ...
1
vote
1answer
7k views

df command shows 100% full, even after deleting files it shows same usage (100%)

Nand Flash storage partition shows as 100% full with df command. When manually calculated the usage it is about 7-80%(max) only. Deleted few files (say around 50~60MB), still df command output did not ...
3
votes
0answers
554 views

Flashing to BBBw from an SD card

I have been flashing images to to my eMMC from a SD card and have not been having the normal behavior. From my research the typical process to Flash an image from an SD card is: Download a compressed ...
1
vote
0answers
105 views

How does the kernel decide to make an SD card filesystem read-only?

I understand that low-level NAND flash can effectively wear out and that an SD card controller (residing on the card itself) is responsible for managing the flash and exposing a comparatively simple ...
1
vote
0answers
544 views

How to know the MTD char device Read/Write details? [closed]

I want to know the amount of bytes Read/Write on MTD char device. What is the way to get it? It would be OK either via C or terminal. I am mounting the mtd device as embedded device. mtd partitions ...
1
vote
1answer
432 views

Save U-Boot environment variables without Flash connected

I've seen multiple blog posts of people getting around the U-Boot bootdelay 0 environment variable to get to the U-Boot CLI. An example is here. The general process, as I understand it, is: Desolder/...
1
vote
0answers
201 views

How to read seemingly dead USB flash drive [closed]

A familiy member asked me if I could look at a USB flash drive with valuable content that "didn't work on the Mac". Thought I could try it on my Linux machine with more tools to work with. But I can't ...
0
votes
1answer
620 views

How to build a readonly root filesystem in Arch-ARM

I have the following set-up: hw: RPi 3 Model B os: 4.4.37-1-ARCH #1 SMP armv7l GNU/Linux file system: /boot(vfat), /(ext4), /var(ext4) partitions: three; mounted: /boot, /, /var storage: mlc nand ...
0
votes
1answer
134 views

moving /media mounted drives on tmpfs

I recently bought a new usb to run my linux-on-the-go system. I am aware of block limited write-cycles, so I am trying to minimize disk writes. I know that when I insert a disk, it mounts inside /...
2
votes
1answer
3k views

Access root filesystem from U-boot

I'm trying to debug an embedded device, connection via serial port, connected with USB to UART cable. Embedded Linux v.2.6.26.5 How to access the root filesystem "/" and subdirectories under the root ...
1
vote
0answers
279 views

Using busybox with UBI files system on an MTD flash device, du and df commands give incorrect values

I have mounted a UBIFS on my MTD partition which is 191.9MB in size. When I run mtdinfo -a the partition shows: mtd6 Name: data2fs Type: nor Eraseblock size: 65536 (64KB) Amount of Erase Blocks: ...
0
votes
1answer
128 views

Can linux be run on a flash drive long term

I have an arch install with the root partition on a flash drive. Additionally, I have an external hard drive which has my HOME and SWAP partitions on it. I have read online that using a flash ...
0
votes
1answer
1k views

Unallocated space in empty flash drive

Hello, I am trying to recover unallocated space in my flash drive. I'm not quite sure how it got to this point. I have tried the following commands: resize2fs sudo resize2fs /dev/sdc1 resize2fs 1.42....
0
votes
1answer
1k views

“The specified directory 'media/fa/FAF9-!C03' is not valid” Error when trying to open USB sticks!

I have an ARM-based computer(nanopi m1) that has 3 USB ports that all work good with other devices like mouse, keyboard, wireless dongle. but when I try any USB flash memories it doesn't work! What's ...
1
vote
1answer
58 views

Missing sdb1 on new flash drive, but works ok

recently in the lab we bought some HDs and a new flash drive for research stuff. My surprise was when I tried to connect them to linux. Gnome mounted them normaly, but did not exist the /dev/sdb1 ...
0
votes
1answer
442 views

How to read BIOS Flash Memory?

In the "Intel® Desktop Board DQ77MK Technical Product Specification", there is a section called "BIOS Flash Memory Organization". The content of this section is The Serial Peripheral Interface ...
0
votes
1answer
143 views

Override mtdparts after kernel has booted

Information about mtd partitions can be passed to the kernel via the kernel command line (mtdparts parameter) or via the device tree. Is it possible to override this after the kernel has booted?
1
vote
1answer
671 views

Does it make sense to have separate ubi volumes for safety with ubifs?

In the pre-ubifs days it was common practice in embedded systems to setup several (MTD) partitions in flash for protection. For example, a partition containing a read-only file system could be mounted ...
1
vote
1answer
2k views

Resize partition table using gdisk

I want to change my partition table (using openWRT Linux OS) due to a new flash memory card - 1GB instead of 256MB. For this, I've installed gdisk tool, and ran it using 'gdisk /dev/mmcblk0' command. ...
0
votes
0answers
304 views

Can't mount/use usb flash drive

I have corrupted flash drive. Can't use on any OS. Decided to do manual mounting. I ran the dmesg which shows: [ 553.570621] usb 3-6: new high-speed USB device number 14 using xhci_hcd [ ...
2
votes
2answers
3k views

Why my rsync slow down over time?

I'm trying to backup some files from my PC to an external hard-drive using rsync. The copy works fine but takes a lot of time even for the standard USB 2.0. For an USB 2.0 the real transfer speed ...
3
votes
3answers
59 views

Should I erase previous Linux on a bootable live usb first when I want to create a different one?

I have an UEFI laptop. I've created a bootable live usb flash with a Linux and then decided I wanted to install another distributive of Linux. How can I properly create a bootable usb again: should I ...
0
votes
1answer
102 views

Check if it's an external flash drive or usb flash stick?

When a usb flash stick or usb external drive get connected, is there any way to check whether it's a usb stick or external flash drive by means of Linux? Is there any utility or something like that?
0
votes
0answers
299 views

Flash an OS to an eMMC, from uSD with larger capacity than eMMC

With a Debian distro installed into a 8GB uSD (although uSD memory is almost free), I need to flash this distro into the 4GB eMMC of a BeagleBone Black board, based on AM335x SoC. The S2 switch ...
3
votes
1answer
4k views

How is erasing MTD with “dd if=/dev/zero” different from “flash_eraseall”?

flash_eraseall <mtd device> is specifically provided command to erase all of the MTD (device). What is the difference between it and dd if=/dev/zero of=<mtd device>?
0
votes
2answers
79 views

Can't understand if my USB stick is buggy

I have a USB stick of 16Gb, Verbatim, that is valuable for me as a gift as much as a tool. Lately I had a problem - a file I have carried over on that stick was damaged. So I have run badblocks -wsv ...
0
votes
0answers
838 views

I cannot open up my flash drive

I have a flash drive that has a storage space of 8GB, a mark of ASA MANHATTAN. When I plug it in my computer, I get the following message: This location could not be displayed. Sorry, could not ...
2
votes
1answer
1k views

How to check the erase block size of a Usb flash under Linux?

How to check the erase block size of a USB flash under Linux? Someone said /proc/mtd might be helpful, while for my Centos7 server, there isn't such file. Thanks in advance. Updated on Jan 28 2016: ...
2
votes
1answer
397 views

How to disable asking for root password while ejecting USB drives?

When I mount usb drive it mounts successfully, but when I hit triangle button in Thunar (Eject) - I'm asked for root password! Executing $ udisks --eject /dev/sdd in console doesn't require root ...
0
votes
2answers
883 views

What is Memory Technology Device?

Documentation and webpages are not very clear on this. Is it a Linux technology? Is it a type of storage device? Some other questions: If it is a Linux technology, what types of storage does it work ...
32
votes
6answers
5k views

How can I securely delete the contents of a thumb drive so data can't be recovered.

I would like to know how to delete a USB flash drive via the terminal if possible so data can't be recovered.