eugenmayer / parted-auto-resize Goto Github PK
View Code? Open in Web Editor NEWAutomatically or non-interactive resize a partition to its maximum, e.g. for LVM pv resizing when using a partition as PV
License: MIT License
Automatically or non-interactive resize a partition to its maximum, e.g. for LVM pv resizing when using a partition as PV
License: MIT License
Hello,
I try running the script with command:
./resize.sh /dev/sda 2 apply
and the server will be hanged after that
it appears that stdin to part causes it to hang.
when I execute the command ./resize.sh /dev/sdb 1 the command hangs.
When I do
printf %sn 'unit MB print list' | parted
The cursor runs back and forth as if caught in a loop
Killing from another console kills it.
Tried it but had no luck unfortunately:
root@ClearLinuxWLG ~ # ./resize.sh /dev/sda 3
will resize to 64425MB
WARNING!: Sandbox mode, i did not size!. Use 'apply' as third parameter to apply
root@ClearLinuxWLG ~ # ./resize.sh /dev/sda 3 apply
will resize to 64425MB
applying resize operation..
Warning: Partition /dev/sda3 is being used. Are you sure you want to continue?
parted: invalid token: 64425
Yes/No? ^C
root@ClearLinuxWLG ~ # yes | ./resize.sh /dev/sda 3 apply
will resize to 64425MB
applying resize operation..
Warning: Partition /dev/sda3 is being used. Are you sure you want to continue?
root@ClearLinuxWLG ~ # parted -l
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 569MB 568MB fat16 primary boot, esp
3 570MB 42.9GB 42.4GB ext4 primary
root@ClearLinuxWLG ~ # parted -v
parted (GNU parted) 3.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.