Questions tagged [flash-memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
64 views

How to copy data from NAND memory to sd card?

So i need to know how to copy data from nand flash memory to an sd card in my gumstix overo, so i start by knowing if the sd card is available: Texas Instruments X-Loader 1.5.0 (Sep 16 2011 - 12:10:02)...
user avatar
0 votes
0 answers
73 views

Is there any command in Gumstix Overo that allows me to copy from NAND memory to sd card?

So i am trying to copy all the data in the NAND memory of my Gumstix Overo, through this link https://www.gumstix.com/community/support/faq/write-images-flash/ i know that there is a command, nand ...
user avatar
0 votes
1 answer
73 views

How can i copy data from NAND memory to sd card?

So basically, i have two Gumstix Overo and both are booting from their NAND flash memory, both devices use full linux image's Kernel. They are supposed to boot the same thing but one of them says that ...
user avatar
0 votes
0 answers
78 views

MLC NAND flash support in ubifs in 2021

I would like to ask about MLC NAND support in UBIFS as of 2021. I was recently bringing up a device with IMX6ULL and raw MLC NAND flash. I have built Linux 5.4 kernel, u-boot and rootfs (using ...
user avatar
0 votes
1 answer
207 views

What does fdisk's Start and End values mean when looking at a compact flash

I'm analyzing a compact flash using fdisk and by comparing it to the contents of the partition table on the CF's master boot record. I don't understand what the "Start" and "End" ...
user avatar
  • 119
1 vote
1 answer
93 views

Unable to mount cloned compact flash after using dd to clone bootable compact flash

I'm trying to clone a bootable 1GB compactflash to a second 1GB complactflash, but when I try to mount it, i get an error like so, sudo mount /dev/sdb1 /media/frank/cloned/ frank@ThinkPad2:~$ sudo ...
user avatar
  • 119
0 votes
1 answer
633 views

Which is the correct mechanism for auto-mounting a USB flash drive at boot?

I'm seeing apparently conflicting information on the proper way to auto-mount USB flash drives at boot. Most instructions on how to do it say to use an entry in fstab. Gnome Disks has a built-in ...
user avatar
  • 543
2 votes
0 answers
538 views

Can dm-crypt (LUKS2) be implemented on top of an UBI volume on a raw NAND flash?

If I have an embedded system with a raw NAND flash, with a bad blocks table etc., as I understand it, the best way to have partitions is to have have them as UBI volumes on top of MTD. UBI takes care ...
user avatar
  • 143
0 votes
0 answers
35 views

dd displays progress incorrectly when writing to flash card (faster than actual)

I am writing Raspi images on flash card with the following command dd bs=4M if=image.img of=/dev/sdf conv=fsync status=progress and it displays progress 5662310400 bytes (5,7 GB, 5,3 GiB) copied, 25 ...
user avatar
  • 2,517
1 vote
0 answers
37 views

Prevent filesystem from synchronizing

I have an embedded system running Debian with a ext4 file system on eMMC. If the power goes down, the system has about 1 second to detect and sync the file system before voltage is below threshold and ...
user avatar
  • 11
2 votes
0 answers
62 views

How to know if embedded linux contains NAND or NOR flash?

Is there any shell command that can find out if embedded linux used NAND or NOR flash?
user avatar
0 votes
1 answer
49 views

Linux partitioning vs. mount file system declaration

I'm looking a Linux device where blkid shows an eMMC partition type as ext2: /dev/mmcblk0p32: UUID="1c48ca57-c9eb-4ed1-a51a-212f7d1fd40e" TYPE="ext2" PARTLABEL="configs" ...
user avatar
  • 115
0 votes
1 answer
132 views

Format unmountable usb pendrive

I believe someone else has already encountered this very same issue. Yet, I googled a lot and couldn't find my specific case. Yesterday I created a "password reset disk" in Windows, using a ...
user avatar
0 votes
0 answers
36 views

How to install a Linux OS in pendrive and use it?

I am currently using UBUNTU in Raspberry Pi4. I have another PC that has a crashed hard disk. So what I am planning is to get rid of that HDD and use a pen-drive instead. What I am planning is to make ...
user avatar
3 votes
1 answer
839 views

Slow transfer/write speed to USB 3 flash. What are all possible solutions?

Please see the following screenshot of transferring to a USB 3 sandisk flash drive: This has been asked before but the answers didn't help. They always suggest changing this: echo $((16*1024*1024)) &...
user avatar
  • 583
-1 votes
1 answer
45 views

Why does the write speed keep changing, on a msdos file-system on toshiba 64Gb USB flashdrive

I have just bought a new 64gb toshiba 2.0usb flashdrive and put 13gb on it that took about 1 1/2 hours to transfer (max). But it started out saying about 7/8mb transfer and went to 1.3mb transfer, ...
user avatar
  • 121
1 vote
0 answers
225 views

Is it possible to resize MTD partitions at runtime?

I have a very specific need: to partially replace the content of a flash and to move MTD partition boundaries. Current map is: u-boot 0x000000 0x040000 u-boot-env 0x040000 0x010000 kernel ...
user avatar
  • 728
2 votes
1 answer
1k views

dd if=/dev/zero leaves drive contents in-tact? Bad USB stick?

I thought I could nuke all partitions of a drive by using dd if=/dev/zero of=/dev/sdX. In the past this has always worked for me, but in this case it is not working as expected. #check the partitions ...
user avatar
2 votes
1 answer
7k views

How to manually mount the virtual file systems, to copy MTD partitions

Linux version 2.6.26.5, ARM Linux Kernel on embedded device, NAND-based device. I'm at Busybox rescue shell (ash), with restricted command set. How to manually mount the virtual file systems, to copy ...
user avatar
  • 121
0 votes
1 answer
592 views

Replacing busybox in an embedded device

I'm using busybox in an embedded device. The built-in busybox is rather limited. So I want try to replace busybox in place with new, more complete version. I find some info about replacing Busybox on ...
user avatar
  • 437
1 vote
1 answer
415 views

Read raw SMART data with smartmontools from CF card

I have a Transcend CompactFlash card; its datasheet specifies the SMART data structure i.e. "Power cycle count" is bytes 115-116 in this structure. I am running on a custom embedded system with ...
user avatar
  • 111
1 vote
0 answers
75 views

JFFS2 and SQUASHFS erasing entire flash chip

I am working on an OpenWRT system for a custom board with a Flash Memory Chip. One problem is that U-Boot only works if the Flash Memory is in 3 Byte Addressing Mode while Linux needs 4 byte ...
user avatar
  • 203
1 vote
1 answer
624 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 ...
user avatar
2 votes
1 answer
891 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 ...
user avatar
1 vote
0 answers
87 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. ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
2 votes
2 answers
2k 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 ...
user avatar
1 vote
1 answer
521 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 ...
user avatar
  • 1,608
1 vote
1 answer
323 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 ...
user avatar
  • 113
1 vote
0 answers
537 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 ...
user avatar
0 votes
1 answer
102 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. ...
user avatar
  • 121
0 votes
1 answer
248 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 ...
user avatar
  • 101
1 vote
1 answer
908 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 ...
user avatar
  • 89.7k
-2 votes
1 answer
99 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 ...
user avatar
0 votes
1 answer
716 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 ... ...
user avatar
  • 1,503
0 votes
0 answers
759 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 ...
user avatar
  • 719
1 vote
1 answer
1k 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 ...
user avatar
  • 437
1 vote
0 answers
135 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 ...
user avatar
  • 1,183
4 votes
1 answer
71k views

Fix read only file system usb [closed]

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 ...
user avatar
  • 141
1 vote
1 answer
3k 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:...
user avatar
  • 1,183
1 vote
1 answer
523 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 ...
user avatar
  • 19
5 votes
1 answer
21k 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 ...
user avatar
  • 719
3 votes
0 answers
842 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 ...
user avatar
  • 201
2 votes
0 answers
151 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 ...
user avatar
  • 165
1 vote
1 answer
953 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/...
user avatar
  • 11
0 votes
1 answer
2k 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 ...
user avatar
  • 257
0 votes
1 answer
289 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 /...
user avatar
3 votes
2 answers
10k 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 ...
user avatar
  • 437
1 vote
0 answers
557 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: ...
user avatar
0 votes
1 answer
565 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 ...
user avatar
  • 981