Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [ubifs]

ubifs (unsorted block image filesystem) is a file system for use with raw flash memory media.

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

Puzzlement on PEBs reservation in Linux UBIFS

I am working on an embedded Linux system (kernel-5.10.24), and the system is using 128MB NAND FLASH as storage. I enabled the MTD and UBIFS in the kernel, and divided the NAND FLASH into 3 MTD devices,...
wangt13's user avatar
  • 431
0 votes
1 answer
14 views

create UBIFS firmware image with a list of bad blocks?

I have a router that has two firmware partitions with the same UBI based firmware images inside. They're both damaged because of bad NAND blocks. However I can flash a fresh firmware image using the ...
Shamblr's user avatar
0 votes
0 answers
45 views

Surprise in measuring UBIFS on NAND performance in Linux

I am working on an embedded Linux system (Linux-5.10.24), and there is a raw NAND FLASH as storage device on which UBI/UBIFS is used as file system. Now I am trying to measure and compare the UBIFS ...
wangt13's user avatar
  • 431
1 vote
1 answer
176 views

How to generate a raw UBI image with 2 UBI volumes?

I am working on an embedded Linux (kernel-5.24), where UBIFS is used as filesystem for both rootfs and user configuration data. Now I am trying to generate one single UBI image to burn the NAND FLASH (...
wangt13's user avatar
  • 431
0 votes
1 answer
213 views

How to build a UBIFS image to make use of the remaining space of MTD?

I am working on an embedded Linux system (kernel-5.24) and the development host is running WSL2 in Windows. There is a NAND FLASH of 128MB in the embedded system (PEB is 128KiB, page size is 4096 ...
wangt13's user avatar
  • 431
0 votes
1 answer
103 views

Question on tuning file system cache in Linux UBIFS on MTD

I am working on an embedded Linux system, where kernel is 5.10.24, and UBIFS on MTD is used. The testing team had a test, which writes a disk file (open, write, close in order), then powers system off....
wangt13's user avatar
  • 431
0 votes
0 answers
256 views

Using UBINIZE to create a UBI image, but the resulting image has different properties from the original file

My goal is to gain root access to a UBI filesystem. I used ubi_reader with the command to get the description for my file (rootfs.ubi). Here is the command I used: ubireader_display_info rootfs.ubi ...
Wakil Ur Rahman's user avatar
0 votes
0 answers
278 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 ...
Filip Kubicz's user avatar
4 votes
0 answers
1k 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 ...
ruben2020's user avatar
  • 185
0 votes
1 answer
785 views

Why is the size of the log files larger than the disk capacity? linux + ubifs

I am using a Linux-based switch and it has created many logs due to some known bugs. The problem is that the log files even exceed the physical flash size. I would like to ask what happened to the ...
Cloud Blue's user avatar
0 votes
0 answers
6k views

Getting content from an extracted ubi image

I dumped a NAND flash a while ago and analyzed the dump with binwalk. Binwalk could find a SQUASHFS filesystem but unfortunately it was not possible to retrieve the data because it is monted on top of ...
Ramazuri's user avatar
3 votes
1 answer
2k views

mtdparts arguments seems ignored by linux kernel since Buster upgrade

Running Debian on my NAS for years. Vanilla Debian with linux-image-kirkwood/linux-image-kernel. Bootloader is u-boot. With Debian Stretch (4.9.0-11-marvell) it was fine : u-boot handed the parameter ...
Jocelyn delalande's user avatar
0 votes
1 answer
884 views

UBI layout volume not found

I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the ...
Simon Doppler's user avatar
1 vote
1 answer
468 views

Can a UBIFS be set as ACL?

Running Debian Buster on Kernel 4.20.17 with systemd 241: +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 ...
cajjed's user avatar
  • 95
4 votes
1 answer
8k views

How do you completely switch the root files system on Linux?

I am running my rootfs on a flash device (MTD device with UBIFS) - Note: it's a bitbake system so its not full-blown ubuntu or anything. I want to be able to format that device and write a new rootfs ...
code_fodder's user avatar
2 votes
1 answer
7k views

Using squashfs on top of ubi as root file system

I'm trying to use a compressed squashfs ubi volume as my root file system. The idea is to have two ubi volumes. Volume one contains a read-only squashfs file system. Volume two is re-sizable and uses ...
PoVa's user avatar
  • 132
1 vote
0 answers
638 views

du command shows larger size than nand erase block size in ubifs. How to check the exact size in ubifs?

I use UBIFS for rootfs. I would like to check the size of each direcotries in /. When I checked with du command, it shows larger than mtd size. Would you tell me the way how can I check the correct ...
user8257918's user avatar
8 votes
3 answers
2k views

Linux: Alternative to UBIFS on MLC NAND

The status of UBIFS in Linux on top of MLC NAND has never been exactly perfect. And while this entry has now been removed from the FAQ nowadays, the support for UBIFS on top of MLC NAND has now been ...
malat's user avatar
  • 3,092
0 votes
1 answer
353 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 ...
sg1993's user avatar
  • 101
0 votes
1 answer
1k views

How to use ubifs image with modprobe? To extract ubifs image

I try to do something like this - link. All examples in the web are not working at all. modprobe ubi mtd=0 modprobe: module ubi not found in modules.dep modprobe ubi modprobe: module ubi not found ...
Bulat's user avatar
  • 103
0 votes
1 answer
2k views

Read-only filesystem - Considerations and Loss of Functionality

I'm creating an embedded system using Buildroot. Currently, my Buildroot configuration ensures the rootfs is remounted as read/write during startup. However I would like to remove this feature and ...
Mattmatician's user avatar
5 votes
1 answer
9k views

How can I change a single file from an UBI image

I have an ubi image file (.ubi) and I want to change a single file from that image (/etc/network/interfaces to be precise). How can I change a single file from that ubi image? I'm using OS X but I ...
Marco's user avatar
  • 158
0 votes
1 answer
772 views

Opening raw UBI partition for writing on Linux if it's mounted and used by init

I need to update a raw UBI partition with a new UBIFS image from Linux userspace with superuser rights, however I'm getting EBUSY (Device or resource busy) error whenever I'm trying to open my ...
gsnoff's user avatar
  • 3
0 votes
0 answers
1k 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 ...
Ravi's user avatar
  • 759
0 votes
1 answer
3k views

How to get the exact file size in linux? [duplicate]

I would like to get individual file size, all used file size in the disk and usable the maximum file size in the disk. In linux, commands for checking file sizes such as "du", "df", "ls -l" are ...
s_k's user avatar
  • 1
3 votes
3 answers
1k views

Persistent systemd machine-id in a stateless (UBI/UBIFS) embedded linux environment

I have an embedded linux machine which has a read-only root filesystem which is loaded from a UBI/UBIFS. Every time the device boots it creates a new systemd machine-id which I understand from ...
Brendan's user avatar
  • 133
0 votes
2 answers
2k views

UBI file system Error -16

During bootup, the storage partition is getting loaded. However I see this error message. What is this error 16 represents? UBI error: ubi_open_volume: cannot open device 0, volume 0, error -16 I ...
Ravi's user avatar
  • 759
1 vote
0 answers
722 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: ...
code_fodder's user avatar
3 votes
1 answer
6k views

u-boot how to mark bad blocks

While in U-boot in an arm based board (wb45n), I manually erase and then mark a block bad. U-Boot> nand erase 0x00720000 20000 NAND erase: device 0 offset 0x00720000, size 0x20000 Erasing at ...
user199251's user avatar
2 votes
1 answer
2k 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 ...
Grodriguez's user avatar
1 vote
1 answer
936 views

Programming NAND with generated UBI binary

Our system generates a UBI partition that is being created in NAND on first boot. The system is able to read and write files there. I'm trying to create a binary file that we can use for a NAND 'gang' ...
screenshot345's user avatar
5 votes
1 answer
4k views

Surprisingly big overhead when creating small ubifs volume

On an mtd partition with 39 erase blocks (= 4.9 MiB), I tried to format a ubifs. The resulting file system has free space of 2.2M uncompressed data when reserved blocks are reduced to the minimum ...
Daniel Alder's user avatar
0 votes
1 answer
272 views

rootfs.ubi doesn't allow login to shell

I have built rootfs.ubi using buildroot 2012.11. On boot I'm not able to login to buildroot login prompt also. Linux is built with UBI and UBIFS support. Earlier I encountered this behaviour if ...
kingvittu's user avatar
2 votes
1 answer
595 views

UBI is "pausing" before boot

I have installed a ubifs image on my embedded board, but at boot time, when I turn on my board, the boot is paused for a few seconds (approx. 10 seconds) with this output: Booting from nand ... NAND ...
xyx's user avatar
  • 767
2 votes
0 answers
787 views

How to check UBIFS for errors?

My ARM system uses NANDFlash and UBIFS. IS there a command that will let me check the filesystem, report any errors or warnings, and also report the current compression level?
SeanLabs's user avatar
  • 701
2 votes
2 answers
2k views

Could not mount UBIFS on SD card

I guess this is not a big problem, still I can't see what's the matter. I'm building Images for an Embedded Linux (2.6.39) ARM9 System with Buildroot 2013.11, which is booting from an SD card. I was ...
user3085931's user avatar
6 votes
2 answers
8k views

Backup of a ubi file system with dd?

A have a root file system (file system - image containinf folder structure and content) on a flash drive. The flash drive uses UBI as the underlying file system file system - the way the data blocks ...
TheMeaningfulEngineer's user avatar