View: 9838|Reply: 6

resize partition

[Copy link]

1

threads

2

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2016-7-24 01:37:36 | Show all floors |Read mode
Please
I would like to be able to resize the partition. When I ssh into "openelec wHardware support" I can't find the resize.sh mentioned in other threads.
Thank you.

0

threads

47

posts

1708

credits

Gold member

Rank: 6Rank: 6

credits
1708
Published in 2016-7-24 02:48:53 | Show all floors
You need to use "resize2fs" to resize partition.
If you need to increase partition, before, you must delete it (f.e. with fdisk) and then you need to create new lager size partition (with fdisk), but, first sector must be the same, as deleted  partition has.
After that, you must use: resize2fs /dev/mmcblk* SIZE_OF_NEW_PARTITION in Kb, Mb or Gb.
Size of the new filesystem must be less or same as you create with fdisk.

Before you make any actions with your disk, i'm strongly recommend to read help of resize2fs command.
use: "man resize2fs"

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-7-24 03:50:54 | Show all floors
What other threads? Here on orangepi forum? You must understand that this is special, minimal distribution, which is not meant to be used for general purpose (most of filesystem is read only). That's why set of tools is not large.

Published in 2016-8-19 09:41:56 | Show all floors
Edited by chaszim at 2016-8-19 10:24

Isn't there another option, like changing the partition size with PartedMagic's "live CD" would that work?
thanks

13

threads

197

posts

791

credits

Senior member

Rank: 4

credits
791
Published in 2016-8-19 14:30:25 | Show all floors
Edited by giaur500 at 2016-8-19 14:32

I guess you can connect sd card to regular linux pc and resize partition using standard way, even gparted should be ok. OF course, assumed you mean data partition, not boot. But, from other hand, openelec is able to resize partition after first boot, so there should be some tools for that. How is it detected that partition needs to be resized?
Published in 2016-8-19 20:58:08 | Show all floors
Edited by chaszim at 2016-8-19 21:11

I'm noting things seem to be getting a little funkier. IE: I can't get the customer settings to hold on the task bar, like the main page apps quick launch. I thinking I may have too many apps loaded (currently 77) or something (some apps beyond their shelf life, I've just kept, instead of dropping, hoping they update).
I've done the zero cache, and tuned the xml to the free memory size, to help with buffering. It's even now fails to complete a backup. So, I'm thinking it may be time, to expand the boot & data storage partitions or something. There's other things going on, with the way the newer apps (like f4mtesters, goodfellas etc), are handling the iptv streams, looping video segments  (3 to 4 times arrghhh). There's got to be some common cause, ls my thought.   

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-8-19 22:04:11 | Show all floors
If you used default image, then you have already maximum possible partition size. This is the main reason why OpenELEC reboots itself after the first run.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list