All pastes #2048233 Raw Edit

Anonymous

public text v1 · immutable
#2048233 ·published 2011-04-19 13:06 UTC
rendered paste body
root@cn-w4-cctv:~#    ln -fs /proc/mounts /etc/mtab 
root@cn-w4-cctv:~# uname -a
Linux cn-w4-cctv 2.6.38-2-kirkwood #1 Thu Apr 7 20:03:04 UTC 2011 armv5tel GNU/Linux
root@cn-w4-cctv:~# ubiformat /dev/mtd2 -s 512
ubiformat: mtd2 (nand), size 531628032 bytes (507.0 MiB), 4056 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 4055 -- 100 % complete  
ubiformat: 4048 eraseblocks have valid erase counter, mean value is 0
ubiformat: 8 bad eraseblocks found, numbers: 1375, 1381, 1383, 1391, 1395, 1397, 1399, 1411
ubiformat: formatting eraseblock 4055 -- 100 % complete  
ubiformat: 4048 eraseblocks have valid erase counter, mean value is 0
ubiformat: 8 bad eraseblocks found, numbers: 1375, 1381, 1383, 1391, 1395, 1397, 1399, 1411
ubiformat: formatting eraseblock 4055 -- 100 % complete  
root@cn-w4-cctv:~# ubiattach /dev/ubi_ctrl -m 2 
[  320.137447] UBI: attaching mtd2 to ubi0
[  320.141303] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[  320.147639] UBI: logical eraseblock size:    129024 bytes
[  320.153075] UBI: smallest flash I/O unit:    2048
[  320.157798] UBI: sub-page size:              512
[  320.162439] UBI: VID header offset:          512 (aligned 512)
[  320.168297] UBI: data offset:                2048
[  320.573440] UBI: max. sequence number:       0
[  320.588565] UBI: attached mtd2 to ubi0
[  320.592375] UBI: MTD device name:            "root"
[  320.597269] UBI: MTD device size:            507 MiB
[  320.602269] UBI: number of good PEBs:        4048
[  320.606991] UBI: number of bad PEBs:         8
[  320.611447] UBI: number of corrupted PEBs:   0
[  320.615913] UBI: max. allowed volumes:       128
[  320.620551] UBI: wear-leveling threshold:    4096
[  320.625277] UBI: number of internal volumes: 1
[  320.629733] UBI: number of user volumes:     0
[  320.634197] UBI: available PEBs:             4004
[  320.638915] UBI: total number of reserved PEBs: 44
[  320.643729] UBI: number of PEBs reserved for bad PEB handling: 40
[  320.649851] UBI: max/mean erase counter: 2/1
[  320.654141] UBI: image sequence number:  1154910854
[  320.660103] UBI: background thread "ubi_bgt0d" started, PID 1003
UBI device number 0, total 4048 LEBs (522289152 bytes, 498.1 MiB), available 4004 LEBs (516612096 bytes, 492.7 MiB), LEB size 129024 bytes (126.0 KiB)
root@cn-w4-cctv:~# ubimkvol /dev/ubi0 -N rootfs -m
Set volume size to 516612096
Volume ID 0, size 4004 LEBs (516612096 bytes, 492.7 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs", alignment 1
root@cn-w4-cctv:~# mount -t ubifs ubi0:rootfs /mnt
[  345.541644] UBIFS: default file-system created
[  345.578113] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[  345.584184] UBIFS: file system size:   514676736 bytes (502614 KiB, 490 MiB, 3989 LEBs)
[  345.592237] UBIFS: journal size:       25804800 bytes (25200 KiB, 24 MiB, 200 LEBs)
[  345.599926] UBIFS: media format:       w4/r0 (latest is w4/r0)
[  345.605794] UBIFS: default compressor: lzo
[  345.609909] UBIFS: reserved for root:  4952683 bytes (4836 KiB)
root@cn-w4-cctv:~#