Fix resizefs: corrupted filesystem can not perform resizefs 77/201377/1 accepted/tizen/unified/20191112.125225 submit/tizen/20191111.074817
authorINSUN PYO <insun.pyo@samsung.com>
Wed, 13 Mar 2019 09:02:42 +0000 (18:02 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Wed, 13 Mar 2019 09:02:42 +0000 (18:02 +0900)
commit29b9f7b11ac9dc93e1b5a1c15fb8e06a95371cc0
tree2d3921e186755169a018e7ccf95552692ee6a44c
parentb6bd0d6331bc72e049023bdbe1265c0174d871fd
Fix resizefs: corrupted filesystem can not perform resizefs

//////////// Steps to reproduce the problem ///////////////////////
1. Flush all binary
2. Flush only user.img binary (tar cvfz user.tar.gz user.img)
3. remove /opt/var/.resizefs_done
4. remove and insert battery, and turn on device
5. user partition fails to execute resizefs.
///////////////////////////////////////////////////////////////////

//////////// UART Log on TM1 //////////////////////////////////////
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/mmcblk0p25 to 1481216 (4k) blocks.
The filesystem on /dev/mmcblk0p25 is now 1481216 (4k) blocks long.

fsck from util-linux 2.30
e2fsck 1.43.4 (31-Jan-2017)
user: recovering journal
Setting free inodes count to 7301 (was 7434)
Setting free blocks count to 8022 (was 8489)
user: clean, 699/8000 files, 10286/18308 blocks
////////////////////////////////////////////////////////////////////

///// df - user partition is 18308 blocks, not 1481216 /////////////
/dev/mmcblk0p25          38448      6008     30976  17% /opt/usr
////////////////////////////////////////////////////////////////////

Change-Id: I8ee7161b504a56fb859af2472ef3295601f02ce6
scripts/init.sh