当前位置:网站首页>UBI error: ubi_ read_ volume_ table: the layout volume was not found
UBI error: ubi_ read_ volume_ table: the layout volume was not found
2022-06-21 14:23:00 【JDSH0224】
1.ubi command
ubifs Common command
flash_erase /dev/mtdx 0 0 erase
ubiformat /dev/mtdx Format disk
ubiattach /dev/ubi_ctrl -m x Add partition
ubimkvol /dev/ubi0 -Nrootfs -m
ubimkvol /dev/ubi0 -Nrootfs -s xxxxKiB
ubimkvol /dev/ubi0 -Ndatafs -s xxxxKiB
mount -t ubifs ubi0:rootfs /xxxxx
mount -t ubifs ubi0:datafs /xxxx2. Problems and Solutions
[[email protected] /]#ubiattach /dev/ubi_ctrl -m 8
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_attach_mtd_dev: failed to attach mtd8, error -22
ubiattach: error!: cannot attach mtd8
error 22 (Invalid argument)
It's wrong because /dev/mtd8 Partition is not formatted , Therefore, the following operations are required
[[email protected] /]#ubiformat /dev/mtd8
ubiformat: mtd8 (nand), size 822083584 bytes (784.0 MiB), 6272 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 6271 -- 100 % complete
ubiformat: 4523 eraseblocks have valid erase counter, mean value is 1
ubiformat: 1731 eraseblocks are supposedly empty
ubiformat: 18 bad eraseblocks found, numbers: 274, 275, 328, 329, 810, 811, 1360, 1361, 1490, 1491, 2074, 2075, 2114, 2115, 6268, 6269, 6270, 6271
ubiformat: warning!: only 4523 of 6254 eraseblocks have valid erase counter
ubiformat: mean erase counter 1 will be used for the rest of eraseblock
ubiformat: continue? (y/N) y
ubiformat: use erase counter 1 for all eraseblocks
ubiformat: formatting eraseblock 6271 -- 100 % complete
Or right /dev/mtd8 Erase the partition
[[email protected] /]#flash_eraseall /dev/mtd8
Erasing 128 Kibyte @ 2220000 - 4% complete.
Skipping bad block at 0x02240000
Skipping bad block at 0x02260000
Erasing 128 Kibyte @ 28e0000 - 5% complete.
Skipping bad block at 0x02900000
Skipping bad block at 0x02920000
Erasing 128 Kibyte @ 6520000 - 12% complete.
Skipping bad block at 0x06540000
Skipping bad block at 0x06560000
Erasing 128 Kibyte @ a9e0000 - 21% complete.
Skipping bad block at 0x0aa00000
Skipping bad block at 0x0aa20000
Erasing 128 Kibyte @ ba20000 - 23% complete.
Skipping bad block at 0x0ba40000
Skipping bad block at 0x0ba60000
Erasing 128 Kibyte @ 10320000 - 33% complete.
Skipping bad block at 0x10340000
Skipping bad block at 0x10360000
Erasing 128 Kibyte @ 10820000 - 33% complete.
Skipping bad block at 0x10840000
Skipping bad block at 0x10860000
Erasing 128 Kibyte @ 30f60000 - 99% complete.
Skipping bad block at 0x30f80000
Skipping bad block at 0x30fa0000
Skipping bad block at 0x30fc0000
Skipping bad block at 0x30fe0000
Erasing 128 Kibyte @ 31000000 - 100% complete.
in the light of ubiattach and flash_eraseall The command operation /dev/mtd8 Capacity of 784M, The former takes time 59 second 、 The latter takes time 25 second , Choose from the production benefit flash_eraseall command .
Add partition again , Successful implementation
[[email protected] /]#ubiattach /dev/ubi_ctrl -m 8
UBI device number 0, total 6254 LEBs (794107904 bytes, 757.3 MiB), available 6106 LEBs (775315456 bytes, 739.4 MiB), LEB size 126976 bytes (124.0 KiB)
[Create a volume
[[email protected] /]#ubimkvol -m /dev/ubi0 -N my-ubifs
Set volume size to 775315456
Volume ID 0, size 6106 LEBs (775315456 bytes, 739.4 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "my-ubifs", alignment 1
mount
[[email protected] /]#mkdir /mnt/ubifs
[[email protected] /]#mount -t ubifs -o sync,noatime ubi0_0 /mnt/ubifs
[[email protected] /]#mount
rootfs on / type rootfs (rw)
/dev/root on / type cramfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=29636k,nr_inodes=7409,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /mnt type ramfs (rw,relatime)
ramfs on /etc type ramfs (rw,relatime)
ramfs on /clou type ramfs (rw,relatime)
ramfs on /home type ramfs (rw,relatime)
ramfs on /var/empty type ramfs (rw,relatime)
/dev/mtdblock5 on /mnt/app type yaffs2 (rw,relatime)
/dev/mtdblock6 on /mnt/ext type yaffs2 (rw,relatime)
ubi0_0 on /mnt/ubifs type ubifs (rw,sync,noatime)
Mount successfully :ubi0_0 on /mnt/ubifs type ubifs (rw,sync,noatime)
边栏推荐
- What fun things can a desk service do
- 理财产品的赎回时间是怎么规定的?
- Never change
- Sort query results according to the input order of fuzzy query jancode
- Write a compile time annotation
- The code remotely calls aria2 to download URL resources or BT seeds
- Cmake upgrade
- The whole process of Netease cloud music API installation and deployment [details of local running projects and remote deployment]
- Redis learning (1) -- overview and common commands
- MySQL failover and master-slave switchover based on MHA
猜你喜欢

Compile time annotation automatically generates dataholder

Qt-3-basic assembly 2
![[graduation project recommendation] - personnel management system](/img/b5/4235b54fa0da9e4637010a68bf848b.jpg)
[graduation project recommendation] - personnel management system

Explanation of vim, makefile and GDB tools

Open source FTP server FileZilla server

Swift return button

Redisson distributed lock design from a bug

DP question brushing record

Navigation bar switching, message board, text box losing focus

CSDN is the only one: detailed tutorial teaching on how to connect multiple mobile phones by appium+pytest+allure+jenkins
随机推荐
Implementation principle and difference between C value type and reference type
Blazer page element authorization -- use of the authorizeview component
[test process and theory - test process system]
Add SSL security certificate to web site
Iterm2 file transfer with remote server
Qt-3-basic components
Installation of MySQL 8.0.19 under alicloud lightweight application server linux-centos7
Is it safe to open an account online? Can a novice open an account
MySQL - table operation
Gensim error attributeerror: type object 'word2vec' has no attribute 'load_ word2vec_ format‘
Compile time annotation
2021-2022 recall of the final exam questions of non relational database of Shandong University
Oracle client11 and pl/sql12 installation
Disputes between chromedriver, geckodriver, microsoftwebdriver, iedriverserver and operadriver
How is the redemption time of financial products stipulated?
How does JMeter implement interface association?
Making my footprint map using API
Pyqt5 learning notes of orange_ Basic structure of pyqt5 GUI program
Open source FTP server FileZilla server
Alibaba cloud link tracking is on the Net project (Jaeger trace)