resize file system

ROMs, Mods, Discussion and all other Topics about the Xiaomi Mi Note Pro (leo).

Moderator: dr4kendroid

User avatar
dexter90
New Member
New Member
Posts: 6
Joined: 25 Sep 2017, 08:56

resize file system

Postby dexter90 » 17 Oct 2017, 07:32

Hi, i resize the system partition. But when i flash the rom, the size it's different. How modify rom to use resize2fs to flash rom??? sorry for my bad english.

User avatar
dexter90
New Member
New Member
Posts: 6
Joined: 25 Sep 2017, 08:56

Re: resize file system

Postby dexter90 » 17 Oct 2017, 08:05

ok there is an error in the version 7.10 script. Installing the old one works all .... virtually the script does not delete the browser and other things I have selected ... and rightly says there is no more space .... how can i fix it ?? thank you

User avatar
dexter90
New Member
New Member
Posts: 6
Joined: 25 Sep 2017, 08:56

Re: resize file system

Postby dexter90 » 17 Oct 2017, 09:18

how to implement resize2fs on the script??? i have add this string:
run_program("/sbin/e2fsck","/dev/block/mmcblk0p41");
run_program("/sbin/resize2fs","/dev/block/mmcblk0p41");

but the free space is every low.... why???

User avatar
dr4kendroid
Developer / Admin
Developer / Admin
Posts: 878
Joined: 21 Nov 2016, 09:20
Phone Model: Mi 5 , Mi 6
Thanks received: 289
Contact:

Re: resize file system

Postby dr4kendroid » 17 Oct 2017, 11:52

resizing partition is more work than just executing that resize2fs command.
You can find tutorials on the internet.
Image
Best Price Xiaomi Products - free shipping worldwide !!!
Just send us PM if you need any coupons ;)

User avatar
dexter90
New Member
New Member
Posts: 6
Joined: 25 Sep 2017, 08:56

Re: resize file system

Postby dexter90 » 17 Oct 2017, 12:20

sorry, i have extended the system partition with parted so i see that when i install the rom, system show 1,7GB. When i launch command to resize partition it show 2.9GB. I finaly install rom with mod, using adb shell when twrp install zip. Now i have the latest rom with mod. But i insert command in the script, but not work.

User avatar
dr4kendroid
Developer / Admin
Developer / Admin
Posts: 878
Joined: 21 Nov 2016, 09:20
Phone Model: Mi 5 , Mi 6
Thanks received: 289
Contact:

Re: resize file system

Postby dr4kendroid » 17 Oct 2017, 13:40

dexter90 wrote:sorry, i have extended the system partition with parted so i see that when i install the rom, system show 1,7GB. When i launch command to resize partition it show 2.9GB. I finaly install rom with mod, using adb shell when twrp install zip. Now i have the latest rom with mod. But i insert command in the script, but not work.


Then you made a mistake. You should format your system partition again. maybe then it fits the correct size.
You can do that in twrp.
Image
Best Price Xiaomi Products - free shipping worldwide !!!
Just send us PM if you need any coupons ;)

User avatar
dexter90
New Member
New Member
Posts: 6
Joined: 25 Sep 2017, 08:56

Re: resize file system

Postby dexter90 » 17 Oct 2017, 13:46

ok already format partition, but when i flash a new rom, the size of system change.


Return to “Mi Note Pro”

Who is online

Users browsing this forum: No registered users and 1 guest