[sf-lug] problem using gnu parted

maestro maestro415 at gmail.com
Wed Jan 31 14:26:57 PST 2018


thanks for posting the 'solve'...


message ends.
______________________

On Tue, Jan 30, 2018 at 7:59 PM, Alex Kleider <akleider at sonic.net> wrote:

>
> Here's a version that works:
>
> """
> parted $LOOPDEV unit 's' resizepart "$PART_NUMBER" "${ENDING_SECTOR}" <<
> HERE
> yes
> HERE
> """
>
> When the -s --script option (no user input) is used, parted refuses to set
> the partition boundary. That's what was happening to me.
> Without it, parted wants confirmation (in the form of a 'yes' as user
> input.)
> The above worked but I would have thought that there should be an option
> that would eliminate the need for going through this hoop.
>
> Another mistake on my part was that I was putting the 's' (for sector) as
> a suffix to the ending sector number instead of using the unit command.
> That's the way the units are indicated when parted displays. Kind of dumb
> of me now that I look back on it.  I hadn't realized more than one command
> could be used at the same time.
>
> Thanks Aaron and Michael for your inputs.
>
> --
> Alex Kleider
> (sent from my current gizmo)
>
> _______________________________________________
> sf-lug mailing list
> sf-lug at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/sf-lug
> Information about SF-LUG is at http://www.sf-lug.org/<br>
> Related Information <br>
> http://www.shallowsky.com/blog/<br>
> http://explainshell.com/ <br>
>



-- 

*~the quieter you become, the more you are able to hear...*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxmafia.com/pipermail/sf-lug/attachments/20180131/7ee09a14/attachment.html>


More information about the sf-lug mailing list