Udev rule to mount disk does not work2019 Community Moderator ElectionUdev inhibits auto mountmount is not executed when called by udevLinux - mount command returns zero/0 but not workingMount fuse.mergerfs in udev scriptUDEV Rule Not TriggeringUdev rule not setting groupUdev hwdb rule does not workudev rule doesn't workUdev rule doesn't work, why?udev rule not calledrun mount as root inside udev ruleudev rule with KERNELS argument does not workDynamic Drive HotSwappingUdev Rules Not Running

How to preserve electronics (computers, ipads, phones) for hundreds of years?

Exposing a company lying about themselves in a tightly knit industry (videogames) : Is my career at risk on the long run?

Connection Between Knot Theory and Number Theory

Calculate Pi using Monte Carlo

Why doesn't Gödel's incompleteness theorem apply to false statements?

Why does the frost depth increase when the surface temperature warms up?

Relations between homogeneous polynomials

Why is implicit conversion not ambiguous for non-primitive types?

Would this string work as string?

Do native speakers use "ultima" and "proxima" frequently in spoken English?

How to test the sharpness of a knife?

Error in master's thesis, I do not know what to do

"Marked down as someone wanting to sell shares." What does that mean?

Why is indicated airspeed rather than ground speed used during the takeoff roll?

What is the period/term used describe Giuseppe Arcimboldo's style of painting?

Should a narrator ever describe things based on a character's view instead of facts?

"Oh no!" in Latin

What properties make a magic weapon befit a Rogue more than a DEX-based Fighter?

When is the exact date for EOL of Ubuntu 14.04 LTS?

What is the meaning of "You've never met a graph you didn't like?"

Can you take a "free object interaction" while incapacitated?

Make a Bowl of Alphabet Soup

Sort with assumptions

Weird lines in Microsoft Word



Udev rule to mount disk does not work



2019 Community Moderator ElectionUdev inhibits auto mountmount is not executed when called by udevLinux - mount command returns zero/0 but not workingMount fuse.mergerfs in udev scriptUDEV Rule Not TriggeringUdev rule not setting groupUdev hwdb rule does not workudev rule doesn't workUdev rule doesn't work, why?udev rule not calledrun mount as root inside udev ruleudev rule with KERNELS argument does not workDynamic Drive HotSwappingUdev Rules Not Running










8















I have the following content in in /etc/udev/rules.d/81-external-disk.rules:



ENVID_FS_UUID=="6826692e-79f4-4423-8467-cef4d5e840c5", RUNprogram+="/bin/mount -o nofail,x-systemd.device-timeout=1 -t ext4 -U 6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external"


After running:



udevadm control --reload ; udevadm trigger /dev/sdb1


It does nothing at all. However if II change the mount command for something such as /bin/touch /tmp/xyz it works.



Versions:



[root@helsinki rules.d]# rpm -qa | grep udev
libgudev1-219-19.el7_2.12.x86_64
python-pyudev-0.15-7.el7_2.1.noarch
[root@helsinki rules.d]# rpm -qa | grep systemd
systemd-libs-219-19.el7_2.12.x86_64
systemd-219-19.el7_2.12.x86_64
systemd-sysv-219-19.el7_2.12.x86_64
[root@helsinki rules.d]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)









share|improve this question




























    8















    I have the following content in in /etc/udev/rules.d/81-external-disk.rules:



    ENVID_FS_UUID=="6826692e-79f4-4423-8467-cef4d5e840c5", RUNprogram+="/bin/mount -o nofail,x-systemd.device-timeout=1 -t ext4 -U 6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external"


    After running:



    udevadm control --reload ; udevadm trigger /dev/sdb1


    It does nothing at all. However if II change the mount command for something such as /bin/touch /tmp/xyz it works.



    Versions:



    [root@helsinki rules.d]# rpm -qa | grep udev
    libgudev1-219-19.el7_2.12.x86_64
    python-pyudev-0.15-7.el7_2.1.noarch
    [root@helsinki rules.d]# rpm -qa | grep systemd
    systemd-libs-219-19.el7_2.12.x86_64
    systemd-219-19.el7_2.12.x86_64
    systemd-sysv-219-19.el7_2.12.x86_64
    [root@helsinki rules.d]# cat /etc/redhat-release
    CentOS Linux release 7.2.1511 (Core)









    share|improve this question


























      8












      8








      8


      4






      I have the following content in in /etc/udev/rules.d/81-external-disk.rules:



      ENVID_FS_UUID=="6826692e-79f4-4423-8467-cef4d5e840c5", RUNprogram+="/bin/mount -o nofail,x-systemd.device-timeout=1 -t ext4 -U 6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external"


      After running:



      udevadm control --reload ; udevadm trigger /dev/sdb1


      It does nothing at all. However if II change the mount command for something such as /bin/touch /tmp/xyz it works.



      Versions:



      [root@helsinki rules.d]# rpm -qa | grep udev
      libgudev1-219-19.el7_2.12.x86_64
      python-pyudev-0.15-7.el7_2.1.noarch
      [root@helsinki rules.d]# rpm -qa | grep systemd
      systemd-libs-219-19.el7_2.12.x86_64
      systemd-219-19.el7_2.12.x86_64
      systemd-sysv-219-19.el7_2.12.x86_64
      [root@helsinki rules.d]# cat /etc/redhat-release
      CentOS Linux release 7.2.1511 (Core)









      share|improve this question
















      I have the following content in in /etc/udev/rules.d/81-external-disk.rules:



      ENVID_FS_UUID=="6826692e-79f4-4423-8467-cef4d5e840c5", RUNprogram+="/bin/mount -o nofail,x-systemd.device-timeout=1 -t ext4 -U 6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external"


      After running:



      udevadm control --reload ; udevadm trigger /dev/sdb1


      It does nothing at all. However if II change the mount command for something such as /bin/touch /tmp/xyz it works.



      Versions:



      [root@helsinki rules.d]# rpm -qa | grep udev
      libgudev1-219-19.el7_2.12.x86_64
      python-pyudev-0.15-7.el7_2.1.noarch
      [root@helsinki rules.d]# rpm -qa | grep systemd
      systemd-libs-219-19.el7_2.12.x86_64
      systemd-219-19.el7_2.12.x86_64
      systemd-sysv-219-19.el7_2.12.x86_64
      [root@helsinki rules.d]# cat /etc/redhat-release
      CentOS Linux release 7.2.1511 (Core)






      mount udev






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 13 '16 at 19:47







      sebelk

















      asked Dec 13 '16 at 14:43









      sebelksebelk

      1,85121935




      1,85121935




















          3 Answers
          3






          active

          oldest

          votes


















          13














          This is a systemd feature. The original udev command has been replaced by systemd-udevd (see its man page). One of the differences is that it creates its own filesystem namespace, so your mount is done, but it is not visible in the principal namespace. (You can check this by doing systemctl status systemd-udevd to get the Main PID of the service, then looking through the contents of /proc/<pid>/mountinfo for your filesystem).



          If you want to go back to having a shared instead of private filesystem namespace, then create a file /etc/systemd/system/systemd-udevd.service with contents



          .include /usr/lib/systemd/system/systemd-udevd.service
          [Service]
          MountFlags=shared


          or a new directory and file /etc/systemd/system/systemd-udevd.service.d/myoverride.conf with just the last 2 lines, i.e.



          [Service]
          MountFlags=shared


          and restart the systemd-udevd service. I haven't found the implications of doing this.






          share|improve this answer

























          • Yes I've applied such a workaround, I wonder if has security implications too.

            – sebelk
            Dec 13 '16 at 19:52






          • 1





            Pretty sure this did not work until I added [Service] between those two lines.

            – goldilocks
            Oct 15 '17 at 23:10






          • 1





            @goldilocks You are probably right. I added this to the answer, thanks. It might depend on what the last section was in the included file, but it seems systemd now prefers you to use the *.d/*.conf way of making changes, as .include doesnt seem to be documented.

            – meuh
            Oct 16 '17 at 7:54


















          6














          This same problem occurs in Ubuntu 18.04 with the same underlying cause. To fix it we create an override file for systemd-udevd:



          sudo systemctl edit systemd-udevd


          And insert into it:



          [Service]
          MountFlags=shared


          Save the file and then execute:



          sudo systemctl daemon-reload
          sudo service systemd-udevd --full-restart





          share|improve this answer























          • It worked like a charm on Raspberry (Raspbian 9 "stretch"). Thanks!

            – Maxwel Leite
            Oct 24 '18 at 19:07






          • 1





            It did not work for my Ubuntu 18.04 to solve the problem of no automount for USB drive.

            – Yu Shen
            Jan 12 at 15:41


















          -1














          ENVID_FS_UUID is not known before mounting.



          You should use an attribute closer to the hardware like ATTRSerialNumber or ATTRVendor and ATTRProdID.



          usb-devices can help you to find the better way to identify your device.






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f330094%2fudev-rule-to-mount-disk-does-not-work%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            13














            This is a systemd feature. The original udev command has been replaced by systemd-udevd (see its man page). One of the differences is that it creates its own filesystem namespace, so your mount is done, but it is not visible in the principal namespace. (You can check this by doing systemctl status systemd-udevd to get the Main PID of the service, then looking through the contents of /proc/<pid>/mountinfo for your filesystem).



            If you want to go back to having a shared instead of private filesystem namespace, then create a file /etc/systemd/system/systemd-udevd.service with contents



            .include /usr/lib/systemd/system/systemd-udevd.service
            [Service]
            MountFlags=shared


            or a new directory and file /etc/systemd/system/systemd-udevd.service.d/myoverride.conf with just the last 2 lines, i.e.



            [Service]
            MountFlags=shared


            and restart the systemd-udevd service. I haven't found the implications of doing this.






            share|improve this answer

























            • Yes I've applied such a workaround, I wonder if has security implications too.

              – sebelk
              Dec 13 '16 at 19:52






            • 1





              Pretty sure this did not work until I added [Service] between those two lines.

              – goldilocks
              Oct 15 '17 at 23:10






            • 1





              @goldilocks You are probably right. I added this to the answer, thanks. It might depend on what the last section was in the included file, but it seems systemd now prefers you to use the *.d/*.conf way of making changes, as .include doesnt seem to be documented.

              – meuh
              Oct 16 '17 at 7:54















            13














            This is a systemd feature. The original udev command has been replaced by systemd-udevd (see its man page). One of the differences is that it creates its own filesystem namespace, so your mount is done, but it is not visible in the principal namespace. (You can check this by doing systemctl status systemd-udevd to get the Main PID of the service, then looking through the contents of /proc/<pid>/mountinfo for your filesystem).



            If you want to go back to having a shared instead of private filesystem namespace, then create a file /etc/systemd/system/systemd-udevd.service with contents



            .include /usr/lib/systemd/system/systemd-udevd.service
            [Service]
            MountFlags=shared


            or a new directory and file /etc/systemd/system/systemd-udevd.service.d/myoverride.conf with just the last 2 lines, i.e.



            [Service]
            MountFlags=shared


            and restart the systemd-udevd service. I haven't found the implications of doing this.






            share|improve this answer

























            • Yes I've applied such a workaround, I wonder if has security implications too.

              – sebelk
              Dec 13 '16 at 19:52






            • 1





              Pretty sure this did not work until I added [Service] between those two lines.

              – goldilocks
              Oct 15 '17 at 23:10






            • 1





              @goldilocks You are probably right. I added this to the answer, thanks. It might depend on what the last section was in the included file, but it seems systemd now prefers you to use the *.d/*.conf way of making changes, as .include doesnt seem to be documented.

              – meuh
              Oct 16 '17 at 7:54













            13












            13








            13







            This is a systemd feature. The original udev command has been replaced by systemd-udevd (see its man page). One of the differences is that it creates its own filesystem namespace, so your mount is done, but it is not visible in the principal namespace. (You can check this by doing systemctl status systemd-udevd to get the Main PID of the service, then looking through the contents of /proc/<pid>/mountinfo for your filesystem).



            If you want to go back to having a shared instead of private filesystem namespace, then create a file /etc/systemd/system/systemd-udevd.service with contents



            .include /usr/lib/systemd/system/systemd-udevd.service
            [Service]
            MountFlags=shared


            or a new directory and file /etc/systemd/system/systemd-udevd.service.d/myoverride.conf with just the last 2 lines, i.e.



            [Service]
            MountFlags=shared


            and restart the systemd-udevd service. I haven't found the implications of doing this.






            share|improve this answer















            This is a systemd feature. The original udev command has been replaced by systemd-udevd (see its man page). One of the differences is that it creates its own filesystem namespace, so your mount is done, but it is not visible in the principal namespace. (You can check this by doing systemctl status systemd-udevd to get the Main PID of the service, then looking through the contents of /proc/<pid>/mountinfo for your filesystem).



            If you want to go back to having a shared instead of private filesystem namespace, then create a file /etc/systemd/system/systemd-udevd.service with contents



            .include /usr/lib/systemd/system/systemd-udevd.service
            [Service]
            MountFlags=shared


            or a new directory and file /etc/systemd/system/systemd-udevd.service.d/myoverride.conf with just the last 2 lines, i.e.



            [Service]
            MountFlags=shared


            and restart the systemd-udevd service. I haven't found the implications of doing this.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 14 hours ago









            Toby Speight

            5,37611132




            5,37611132










            answered Dec 13 '16 at 19:48









            meuhmeuh

            32.4k12054




            32.4k12054












            • Yes I've applied such a workaround, I wonder if has security implications too.

              – sebelk
              Dec 13 '16 at 19:52






            • 1





              Pretty sure this did not work until I added [Service] between those two lines.

              – goldilocks
              Oct 15 '17 at 23:10






            • 1





              @goldilocks You are probably right. I added this to the answer, thanks. It might depend on what the last section was in the included file, but it seems systemd now prefers you to use the *.d/*.conf way of making changes, as .include doesnt seem to be documented.

              – meuh
              Oct 16 '17 at 7:54

















            • Yes I've applied such a workaround, I wonder if has security implications too.

              – sebelk
              Dec 13 '16 at 19:52






            • 1





              Pretty sure this did not work until I added [Service] between those two lines.

              – goldilocks
              Oct 15 '17 at 23:10






            • 1





              @goldilocks You are probably right. I added this to the answer, thanks. It might depend on what the last section was in the included file, but it seems systemd now prefers you to use the *.d/*.conf way of making changes, as .include doesnt seem to be documented.

              – meuh
              Oct 16 '17 at 7:54
















            Yes I've applied such a workaround, I wonder if has security implications too.

            – sebelk
            Dec 13 '16 at 19:52





            Yes I've applied such a workaround, I wonder if has security implications too.

            – sebelk
            Dec 13 '16 at 19:52




            1




            1





            Pretty sure this did not work until I added [Service] between those two lines.

            – goldilocks
            Oct 15 '17 at 23:10





            Pretty sure this did not work until I added [Service] between those two lines.

            – goldilocks
            Oct 15 '17 at 23:10




            1




            1





            @goldilocks You are probably right. I added this to the answer, thanks. It might depend on what the last section was in the included file, but it seems systemd now prefers you to use the *.d/*.conf way of making changes, as .include doesnt seem to be documented.

            – meuh
            Oct 16 '17 at 7:54





            @goldilocks You are probably right. I added this to the answer, thanks. It might depend on what the last section was in the included file, but it seems systemd now prefers you to use the *.d/*.conf way of making changes, as .include doesnt seem to be documented.

            – meuh
            Oct 16 '17 at 7:54













            6














            This same problem occurs in Ubuntu 18.04 with the same underlying cause. To fix it we create an override file for systemd-udevd:



            sudo systemctl edit systemd-udevd


            And insert into it:



            [Service]
            MountFlags=shared


            Save the file and then execute:



            sudo systemctl daemon-reload
            sudo service systemd-udevd --full-restart





            share|improve this answer























            • It worked like a charm on Raspberry (Raspbian 9 "stretch"). Thanks!

              – Maxwel Leite
              Oct 24 '18 at 19:07






            • 1





              It did not work for my Ubuntu 18.04 to solve the problem of no automount for USB drive.

              – Yu Shen
              Jan 12 at 15:41















            6














            This same problem occurs in Ubuntu 18.04 with the same underlying cause. To fix it we create an override file for systemd-udevd:



            sudo systemctl edit systemd-udevd


            And insert into it:



            [Service]
            MountFlags=shared


            Save the file and then execute:



            sudo systemctl daemon-reload
            sudo service systemd-udevd --full-restart





            share|improve this answer























            • It worked like a charm on Raspberry (Raspbian 9 "stretch"). Thanks!

              – Maxwel Leite
              Oct 24 '18 at 19:07






            • 1





              It did not work for my Ubuntu 18.04 to solve the problem of no automount for USB drive.

              – Yu Shen
              Jan 12 at 15:41













            6












            6








            6







            This same problem occurs in Ubuntu 18.04 with the same underlying cause. To fix it we create an override file for systemd-udevd:



            sudo systemctl edit systemd-udevd


            And insert into it:



            [Service]
            MountFlags=shared


            Save the file and then execute:



            sudo systemctl daemon-reload
            sudo service systemd-udevd --full-restart





            share|improve this answer













            This same problem occurs in Ubuntu 18.04 with the same underlying cause. To fix it we create an override file for systemd-udevd:



            sudo systemctl edit systemd-udevd


            And insert into it:



            [Service]
            MountFlags=shared


            Save the file and then execute:



            sudo systemctl daemon-reload
            sudo service systemd-udevd --full-restart






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 3 '18 at 15:58









            freespacefreespace

            16114




            16114












            • It worked like a charm on Raspberry (Raspbian 9 "stretch"). Thanks!

              – Maxwel Leite
              Oct 24 '18 at 19:07






            • 1





              It did not work for my Ubuntu 18.04 to solve the problem of no automount for USB drive.

              – Yu Shen
              Jan 12 at 15:41

















            • It worked like a charm on Raspberry (Raspbian 9 "stretch"). Thanks!

              – Maxwel Leite
              Oct 24 '18 at 19:07






            • 1





              It did not work for my Ubuntu 18.04 to solve the problem of no automount for USB drive.

              – Yu Shen
              Jan 12 at 15:41
















            It worked like a charm on Raspberry (Raspbian 9 "stretch"). Thanks!

            – Maxwel Leite
            Oct 24 '18 at 19:07





            It worked like a charm on Raspberry (Raspbian 9 "stretch"). Thanks!

            – Maxwel Leite
            Oct 24 '18 at 19:07




            1




            1





            It did not work for my Ubuntu 18.04 to solve the problem of no automount for USB drive.

            – Yu Shen
            Jan 12 at 15:41





            It did not work for my Ubuntu 18.04 to solve the problem of no automount for USB drive.

            – Yu Shen
            Jan 12 at 15:41











            -1














            ENVID_FS_UUID is not known before mounting.



            You should use an attribute closer to the hardware like ATTRSerialNumber or ATTRVendor and ATTRProdID.



            usb-devices can help you to find the better way to identify your device.






            share|improve this answer



























              -1














              ENVID_FS_UUID is not known before mounting.



              You should use an attribute closer to the hardware like ATTRSerialNumber or ATTRVendor and ATTRProdID.



              usb-devices can help you to find the better way to identify your device.






              share|improve this answer

























                -1












                -1








                -1







                ENVID_FS_UUID is not known before mounting.



                You should use an attribute closer to the hardware like ATTRSerialNumber or ATTRVendor and ATTRProdID.



                usb-devices can help you to find the better way to identify your device.






                share|improve this answer













                ENVID_FS_UUID is not known before mounting.



                You should use an attribute closer to the hardware like ATTRSerialNumber or ATTRVendor and ATTRProdID.



                usb-devices can help you to find the better way to identify your device.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 13 '16 at 16:28









                SetopSetop

                1193




                1193



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f330094%2fudev-rule-to-mount-disk-does-not-work%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.