Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 6 parted.sh just spins endlessly #2

Open
jpforte opened this issue Jun 9, 2018 · 5 comments
Open

CentOS 6 parted.sh just spins endlessly #2

jpforte opened this issue Jun 9, 2018 · 5 comments

Comments

@jpforte
Copy link

jpforte commented Jun 9, 2018

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.

@EugenMayer
Copy link
Owner

feel free to patch it and provide a PR

@AndrewSav
Copy link

Yeah, nah, it's not going to work on centos 6. parted on centos 6 is of version 2.1 and it does not even have resizepart command.

@EugenMayer could you please clearly specify in readme what os flavours versions and what parted version you tested this with. Many thanks.

@EugenMayer
Copy link
Owner

EugenMayer commented Oct 17, 2018

did so, but be aware, you could easily create a patch to have it compatible

"HINT: this script is compatible with parted v4+ OOTB, if you have parted 3, you need to change parted resizepart to parted resize" see https://serverfault.com/a/870595/281162

so if you would like to contribute and test this, would be lovely to have a PR about that

@andrewsav-bt
Copy link

andrewsav-bt commented Oct 17, 2018

@EugenMayer The latest parted is 3.2 or are you talking about some different parted?

@EugenMayer
Copy link
Owner

You right, 4.x was just completely confusion - corrected the minimal version (3.x)
Thanks for pointing me at that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants