by zomtec » 27 Jun 2017, 14:17
It do not work on a zero.
- Code: Select all
[root@runeaudio ~]# wget --help | grep 'show-progress'
[root@runeaudio ~]# wget https://github.com/rern/RuneAudio/raw/master/expand_partition/expand.sh; chmod +x expand.sh; ./expand.sh
--2017-06-27 15:16:11-- https://github.com/rern/RuneAudio/raw/master/expand_partition/expand.sh
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/rern/RuneAudio/master/expand_partition/expand.sh [following]
--2017-06-27 15:16:12-- https://raw.githubusercontent.com/rern/RuneAudio/master/expand_partition/expand.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2893 (2.8K) [text/plain]
Saving to: 'expand.sh'
100%[==========================================================================================================>] 2,893 --.-K/s in 0.001s
2017-06-27 15:16:13 (2.75 MB/s) - 'expand.sh' saved [2893/2893]
./expand.sh: line 34: python2: command not found
sfdisk: invalid option -- 'F'
Usage:
sfdisk [options] <device>...
Options:
-s, --show-size list size of a partition
-c, --id change or print partition Id
--change-id change Id
--print-id print Id
-l, --list list partitions of each device
-d, --dump idem, but in a format suitable for later input
-i, --increment number cylinders etc. from 1 instead of from 0
-u, --unit <letter> units to be used; <letter> can be one of
S (sectors), C (cylinders), B (blocks), or M (MB)
-1, --one-only reserved option that does nothing currently
-T, --list-types list the known partition types
-D, --DOS for DOS-compatibility: waste a little space
-E, --DOS-extended DOS extended partition compatibility
-R, --re-read make the kernel reread the partition table
-N <number> change only the partition with this <number>
-n do not actually write to disk
-O <file> save the sectors that will be overwritten to <file>
-I <file> restore sectors from <file>
-V, --verify check that the listed partitions are reasonable
-v, --version display version information and exit
-h, --help display this help text and exit
Dangerous options:
-f, --force disable all consistency checking
--no-reread do not check whether the partition is in use
-q, --quiet suppress warning messages
-L, --Linux do not complain about things irrelevant for Linux
-g, --show-geometry print the kernel's idea of the geometry
-G, --show-pt-geometry print geometry guessed from the partition table
-A, --activate[=<device>] activate the bootable flag
-U, --unhide[=<device>] set partition as unhidden
-x, --show-extended also list extended partitions in the output,
or expect descriptors for them in the input
--leave-last do not allocate the last cylinder
--IBM same as --leave-last
--in-order partitions are in order
--not-in-order partitions are not in order
--inside-outer all logicals inside outermost extended
--not-inside-outer not all logicals inside outermost extended
--nested every partition is disjoint from all others
--chained like nested, but extended partitions may lie outside
--onesector partitions are mutually disjoint
Override the detected geometry using:
-C, --cylinders <number> set the number of cylinders to use
-H, --heads <number> set the number of heads to use
-S, --sectors <number> set the number of sectors to use
For more details see sfdisk(8).
./expand.sh: line 40: python2: command not found
./expand.sh: line 41: + : syntax error: operand expected (error token is "+ ")
./expand.sh: line 43: ((: < 10: syntax error: operand expected (error token is "< 10")
=========================================================
Expand partition
=========================================================
Current partiton: /dev/mmcblk0p5
Available free space MB
Available unused disk space: MB
Expand partiton to full unused space:
0 Cancel
1 Expand
0 / 1 ?
1
---------------------------------------------------------
Get package file ...
---------------------------------------------------------
wget: unrecognized option '--show-progress'
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
loading packages...
error: 'parted-3.2-5-armv7h.pkg.tar.xz': could not find or read package
rm: cannot remove 'parted-3.2-5-armv7h.pkg.tar.xz': No such file or directory
---------------------------------------------------------
Expand partiton ...
---------------------------------------------------------
./expand.sh: line 81: partprobe: command not found
resize2fs 1.42.12 (29-Aug-2014)
The filesystem is already 434944 (4k) blocks long. Nothing to do!
./expand.sh: line 89: python2: command not found
i Partiton /dev/mmcblk0p5 now has MB free space.
---------------------------------------------------------
[root@runeaudio ~]#