Questions tagged [ubifs]

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

34 questions
8
votes
3 answers

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 officially reported as unsupported: ubi: Reject…
malat
  • 2,708
  • 4
  • 27
  • 47
6
votes
2 answers

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 are mapped into files, like when you say that…
TheMeaningfulEngineer
  • 5,735
  • 15
  • 64
  • 113
5
votes
1 answer

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 have a Ubuntu VM as well.
Marco
  • 124
  • 2
  • 13
5
votes
1 answer

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 possible 1 block (I know that's not good). This…
Daniel Alder
  • 838
  • 11
  • 26
4
votes
0 answers

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 of wear levelling and MTD handles erase blocks…
ruben2020
  • 185
  • 7
3
votes
1 answer

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…
3
votes
1 answer

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 to it, and so I need to ubidetach this device,…
code_fodder
  • 217
  • 1
  • 4
  • 11
3
votes
3 answers

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 reading the documentation: The machine ID is usually…
Brendan
  • 133
  • 5
3
votes
1 answer

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 0x720000 -- 100% complete. OK U-Boot> nand markbad…
user199251
  • 31
  • 1
  • 2
2
votes
1 answer

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 the remaining flash space. It contains a writable…
PoVa
  • 132
  • 1
  • 6
2
votes
1 answer

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 as /, with a separate writeable partition for…
Grodriguez
  • 906
  • 2
  • 11
  • 31
2
votes
1 answer

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 read: device 0 offset 0x280000, size 0x800000 …
xyx
  • 747
  • 1
  • 8
  • 22
2
votes
0 answers

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
  • 701
  • 2
  • 10
  • 21
2
votes
2 answers

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 trying different file system formats, where some…
user3085931
  • 886
  • 3
  • 15
  • 28
1
vote
1 answer

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 +IDN -PCRE2 default-hierarchy=hybrid I have two…
cajjed
  • 95
  • 1
  • 11
1
2 3