[e447aff] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY gparted-download-http "&sourceforge-dl;/gparted/gparted-&gparted-version;.tar.gz">
|
---|
[e447aff] | 8 | <!ENTITY gparted-download-ftp " ">
|
---|
[7aa91c69] | 9 | <!ENTITY gparted-md5sum "15166c40d7ca119432454475294abecf">
|
---|
[9014137] | 10 | <!ENTITY gparted-size "3.8 MB">
|
---|
[7aa91c69] | 11 | <!ENTITY gparted-buildsize "107 MB (add 76 MB for tests)">
|
---|
| 12 | <!ENTITY gparted-time "0.3 SBU (using parallelism=4; add 0.2 SBU for tests)">
|
---|
[e447aff] | 13 | ]>
|
---|
| 14 |
|
---|
[6cce201] | 15 | <sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
|
---|
[e447aff] | 16 | <?dbhtml filename="gparted.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
[6cce201] | 22 | <title>Gparted-&gparted-version;</title>
|
---|
[e447aff] | 23 |
|
---|
| 24 | <indexterm zone="gparted">
|
---|
[6cce201] | 25 | <primary sortas="a-Gparted">Gparted</primary>
|
---|
[e447aff] | 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Gparted</title>
|
---|
| 30 |
|
---|
| 31 | <para>
|
---|
[11eb3ae5] | 32 | Gparted is the Gnome Partition Editor, a Gtk 3 GUI for other command line
|
---|
[e447aff] | 33 | tools that can create, reorganise or delete disk partitions.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[55a63862] | 36 | &lfs101_checked;
|
---|
[e447aff] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&gparted-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&gparted-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &gparted-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &gparted-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &gparted-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &gparted-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 75 | <para role="required">
|
---|
[0b05bda] | 76 | <!-- GTKMM2 is no longer used since 1.0.0, see #12110 -->
|
---|
| 77 | <xref linkend="gtkmm3"/> and
|
---|
[6cce201] | 78 | <xref linkend="parted"/>
|
---|
[e447aff] | 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
[7aa91c69] | 83 | <xref linkend="btrfs-progs"/> (if using a btrfs filesystem),
|
---|
[0b05bda] | 84 | <!-- These dependencies were obsoleted in version 1.0.0, see #12110 -->
|
---|
| 85 | <!-- <xref linkend="rarian"/>,
|
---|
[7aa91c69] | 86 | <ulink url="&gnome-download-http;/gnome-doc-utils/">GNOME Doc Utils</ulink> -->
|
---|
| 87 | <ulink url="https://github.com/exfatprogs/exfatprogs">exfatprogs</ulink>, and
|
---|
[a3c5e951] | 88 | <ulink url="https://github.com/pali/udftools">udftools</ulink>
|
---|
[e447aff] | 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <para condition="html" role="usernotes">
|
---|
| 92 | User Notes: <ulink url="&blfs-wiki;/gparted"/>
|
---|
| 93 | </para>
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of Gparted</title>
|
---|
| 98 |
|
---|
| 99 | <para>
|
---|
| 100 | Install <application>Gparted</application> by running the following
|
---|
| 101 | commands:
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
[0ef67b8] | 104 | <screen><userinput>./configure --prefix=/usr \
|
---|
[686a89a3] | 105 | --disable-doc \
|
---|
| 106 | --disable-static &&
|
---|
[e447aff] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
[6cce201] | 109 | <para>
|
---|
[7aa91c69] | 110 | To run the tests, issue: <command>make check</command>. One test,
|
---|
| 111 | <filename>test_PipeCapture</filename>, is known to fail
|
---|
| 112 | <!-- https://gitlab.gnome.org/GNOME/gparted/-/issues/136 -->
|
---|
[6cce201] | 113 | </para>
|
---|
[e447aff] | 114 |
|
---|
| 115 | <para>
|
---|
| 116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[28b61748] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2 role="commands">
|
---|
| 124 | <title>Command Explanations</title>
|
---|
| 125 |
|
---|
[686a89a3] | 126 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 127 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 128 |
|
---|
[28b61748] | 129 | <para>
|
---|
[7830c481] | 130 | <parameter>--disable-doc</parameter>: This switch disables building of
|
---|
[28b61748] | 131 | the optional documentation. Remove it if you have installed
|
---|
[665ac79f] | 132 | <application>GNOME Doc Utils</application>.
|
---|
[28b61748] | 133 | </para>
|
---|
| 134 |
|
---|
[aa41434] | 135 | <!-- this is an option, not a parameter, but is it still necessary for
|
---|
| 136 | wayland? -->
|
---|
[444841e] | 137 | <para>
|
---|
[aa41434] | 138 | <option>--enable-xhost-root</option>: This switch provides an
|
---|
[444841e] | 139 | interim workaround to allow GParted to run under Wayland by using xhost
|
---|
| 140 | to grant and revoke root access to the X11 display.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
[e447aff] | 143 | </sect2>
|
---|
| 144 |
|
---|
[f0afab3f] | 145 | <sect2 role="using">
|
---|
[6cce201] | 146 | <title>Using Gparted</title>
|
---|
[f0afab3f] | 147 |
|
---|
| 148 | <para>
|
---|
| 149 | To manipulate file systems Gparted has a run time dependency on various
|
---|
| 150 | file system tools (you only need to install the tools for file systems you
|
---|
| 151 | actually use):
|
---|
[a0e6e8dd] | 152 | <xref linkend="hdparm"/>
|
---|
[c828e9cb] | 153 | (required for optionally displaying serial number device information),
|
---|
[a35cbbc] | 154 | <xref linkend="btrfs-progs"/>,
|
---|
| 155 | <xref role="runtime" linkend="dosfstools"/>,
|
---|
[f0afab3f] | 156 | e2fsprogs (installed as part of LFS),
|
---|
| 157 | <xref linkend="jfsutils"/>,
|
---|
| 158 | <xref linkend="ntfs-3g"/>,
|
---|
| 159 | <xref linkend="reiserfs"/>,
|
---|
[a3c54ef2] | 160 | <xref linkend="xfsprogs"/>,
|
---|
[7aa91c69] | 161 | <ulink url="https://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
|
---|
[f0afab3f] | 162 | to read and write FAT16/32 volume labels and UUIDs),
|
---|
| 163 | <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
|
---|
[7aa91c69] | 164 | <ulink url="https://packages.debian.org/sid/hfsprogs">hfsprogs</ulink>,
|
---|
| 165 | <ulink url="http://nilfs.sourceforge.io/en/">nilfs-utils</ulink> and
|
---|
[c828e9cb] | 166 | <ulink url="https://reiser4.wiki.kernel.org/index.php/Reiser4progs">
|
---|
| 167 | Reiser4progs</ulink>.
|
---|
[f0afab3f] | 168 | </para>
|
---|
[aadb87c] | 169 |
|
---|
| 170 | <para>
|
---|
| 171 | Root privileges are required to run Gparted. If you wish to run the
|
---|
| 172 | application from the menu, further applications and configurations are
|
---|
| 173 | necessary. Examples of applications that may be used:
|
---|
[3da508c] | 174 | <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
|
---|
[aadb87c] | 175 | <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
|
---|
| 176 | <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
|
---|
[9014137] | 177 | <!--Another solution is to use <application>pkexec</application>, from
|
---|
| 178 | <xref linkend="polkit"/>, but some configuration is necessary.-->
|
---|
| 179 | Another simple solution is <xref linkend="ssh-askpass"/>. <!--Below, we
|
---|
| 180 | describe these two alternatives: "ssh-askpass" and "pkexec".-->
|
---|
[aadb87c] | 181 | </para>
|
---|
[3da508c] | 182 |
|
---|
| 183 | <sect3 role="ssh-askpass">
|
---|
| 184 | <title>ssh-askpass</title>
|
---|
| 185 | <para>
|
---|
[7a5b2e77] | 186 | To optionally use <xref linkend="ssh-askpass"/> if it is installed in
|
---|
| 187 | your system, run the following commands as the
|
---|
| 188 | <systemitem class="username">root</systemitem> user:
|
---|
[3da508c] | 189 | </para>
|
---|
| 190 |
|
---|
| 191 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &&
|
---|
[789c1b9] | 192 | sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
|
---|
[3da508c] | 193 |
|
---|
| 194 | <para>
|
---|
[c828e9cb] | 195 | Now, clicking on the menu item for Gparted, a dialog appears on the
|
---|
[7a5b2e77] | 196 | screen, asking for the administrator password.</para>
|
---|
[3da508c] | 197 |
|
---|
| 198 | </sect3>
|
---|
[9014137] | 199 | <!--
|
---|
[f1ce80b] | 200 | <sect3 role="pkexec" revision="sysv">
|
---|
[3da508c] | 201 | <title>pkexec</title>
|
---|
| 202 | <para>
|
---|
[73b06df] | 203 | To optionally use <application>pkexec</application>, you need <xref
|
---|
[9014137] | 204 | linkend="polkit-gnome"/><!- - or <xref linkend="lxpolkit"/>- ->, and
|
---|
[73b06df] | 205 | <xref linkend="consolekit"/> installed with support to <xref
|
---|
| 206 | linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
|
---|
| 207 | <systemitem class="username">root</systemitem> user, configure <xref
|
---|
| 208 | linkend="gparted"/> and <xref linkend="polkit"/> with the following
|
---|
| 209 | commands:
|
---|
[3da508c] | 210 | </para>
|
---|
| 211 |
|
---|
[876cd11] | 212 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
|
---|
| 213 | /usr/share/applications/gparted.desktop.back &&
|
---|
[444841e] | 214 | sed -i 's:/usr/bin/gparted:/usr/bin/gparted_polkit:' \
|
---|
| 215 | /usr/share/applications/gparted.desktop &&
|
---|
[3da508c] | 216 |
|
---|
[444841e] | 217 | cat > /usr/bin/gparted_polkit << "EOF" &&
|
---|
[7a5b2e77] | 218 | <literal>#!/bin/bash
|
---|
| 219 |
|
---|
[444841e] | 220 | pkexec /usr/bin/gparted $@</literal>
|
---|
[3da508c] | 221 | EOF
|
---|
[444841e] | 222 | chmod -v 0755 /usr/bin/gparted_polkit</userinput></screen>
|
---|
[3da508c] | 223 |
|
---|
| 224 | <para>
|
---|
| 225 | Still as the <systemitem class="username">root</systemitem> user,
|
---|
| 226 | configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
|
---|
| 227 | use <application>pkexec</application>:
|
---|
| 228 | </para>
|
---|
| 229 |
|
---|
[7a5b2e77] | 230 | <screen role="root"><userinput>cat > /usr/share/polkit-1/actions/org.gnome.gparted.policy << "EOF"
|
---|
| 231 | <literal><?xml version="1.0" encoding="UTF-8"?>
|
---|
[3da508c] | 232 | <!DOCTYPE policyconfig PUBLIC
|
---|
| 233 | "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
---|
| 234 | "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
---|
| 235 | <policyconfig>
|
---|
| 236 |
|
---|
| 237 | <action id="org.freedesktop.policykit.pkexec.run-gparted">
|
---|
| 238 | <description>Run GParted</description>
|
---|
| 239 | <message>Authentication is required to run GParted</message>
|
---|
| 240 | <defaults>
|
---|
| 241 | <allow_any>no</allow_any>
|
---|
| 242 | <allow_inactive>no</allow_inactive>
|
---|
| 243 | <allow_active>auth_admin_keep</allow_active>
|
---|
| 244 | </defaults>
|
---|
[444841e] | 245 | <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/gparted</annotate>
|
---|
[3da508c] | 246 | <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
---|
| 247 | </action>
|
---|
| 248 |
|
---|
[7a5b2e77] | 249 | </policyconfig></literal>
|
---|
[3da508c] | 250 | EOF
|
---|
[7a5b2e77] | 251 | chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
|
---|
[3da508c] | 252 |
|
---|
| 253 | <para>
|
---|
| 254 | Now, clicking in the menu item for Gparted, a dialog appears in the
|
---|
[7a5b2e77] | 255 | screen, asking for the administrator password.</para>
|
---|
[3da508c] | 256 |
|
---|
| 257 | </sect3>
|
---|
[9014137] | 258 | -->
|
---|
[f0afab3f] | 259 | </sect2>
|
---|
| 260 |
|
---|
[e447aff] | 261 | <sect2 role="content">
|
---|
| 262 | <title>Contents</title>
|
---|
| 263 |
|
---|
| 264 | <segmentedlist>
|
---|
| 265 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 266 | <segtitle>Installed Libraries</segtitle>
|
---|
[e447aff] | 267 | <segtitle>Installed Directories</segtitle>
|
---|
| 268 |
|
---|
| 269 | <seglistitem>
|
---|
| 270 | <seg>
|
---|
[7a5b2e77] | 271 | gparted, gpartedbin and gparted_polkit (optional)
|
---|
[e447aff] | 272 | </seg>
|
---|
[c3c56b2] | 273 | <seg>
|
---|
| 274 | None
|
---|
| 275 | </seg>
|
---|
[e447aff] | 276 | <seg>
|
---|
[c828e9cb] | 277 | None
|
---|
[e447aff] | 278 | </seg>
|
---|
| 279 | </seglistitem>
|
---|
| 280 | </segmentedlist>
|
---|
| 281 |
|
---|
| 282 | <variablelist>
|
---|
| 283 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 284 | <?dbfo list-presentation="list"?>
|
---|
| 285 | <?dbhtml list-presentation="table"?>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="gparted-prog">
|
---|
| 288 | <term><command>gparted</command></term>
|
---|
| 289 | <listitem>
|
---|
| 290 | <para>
|
---|
| 291 | is a shell script which sets up the environment before calling
|
---|
[4c24eb0a] | 292 | <command>gpartedbin</command>
|
---|
[e447aff] | 293 | </para>
|
---|
| 294 | <indexterm zone="gparted gparted-prog">
|
---|
| 295 | <primary sortas="b-gparted">gparted</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 | </listitem>
|
---|
| 298 | </varlistentry>
|
---|
| 299 |
|
---|
| 300 | <varlistentry id="gpartedbin">
|
---|
| 301 | <term><command>gpartedbin</command></term>
|
---|
| 302 | <listitem>
|
---|
| 303 | <para>
|
---|
[4c24eb0a] | 304 | is the Gparted binary
|
---|
[e447aff] | 305 | </para>
|
---|
| 306 | <indexterm zone="gparted gpartedbin">
|
---|
| 307 | <primary sortas="b-gpartedbin">gpartedbin</primary>
|
---|
| 308 | </indexterm>
|
---|
| 309 | </listitem>
|
---|
| 310 | </varlistentry>
|
---|
[6cce201] | 311 |
|
---|
[7a5b2e77] | 312 | <varlistentry id="gparted_polkit">
|
---|
| 313 | <term><command>gparted_polkit</command></term>
|
---|
| 314 | <listitem>
|
---|
| 315 | <para>
|
---|
| 316 | is an optional script which can be used to run gparted with polkit,
|
---|
[4c24eb0a] | 317 | from a menu
|
---|
[7a5b2e77] | 318 | </para>
|
---|
| 319 | <indexterm zone="gparted gparted_polkit">
|
---|
| 320 | <primary sortas="b-gparted_polkit">gparted_polkit</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
| 324 |
|
---|
[e447aff] | 325 | </variablelist>
|
---|
[6cce201] | 326 |
|
---|
[e447aff] | 327 | </sect2>
|
---|
[6cce201] | 328 |
|
---|
[e447aff] | 329 | </sect1>
|
---|