[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 |
|
---|
| 7 | <!ENTITY gparted-download-http
|
---|
[6cce201] | 8 | "&sourceforge-repo;/gparted/gparted-&gparted-version;.tar.bz2">
|
---|
[e447aff] | 9 | <!ENTITY gparted-download-ftp " ">
|
---|
[518cff0] | 10 | <!ENTITY gparted-md5sum "9aff8cef2c46e5ca4adaab43588c9e64">
|
---|
[686a89a3] | 11 | <!ENTITY gparted-size "2.0 MB">
|
---|
[3d37094] | 12 | <!ENTITY gparted-buildsize "77 MB (additional 3 MB, building the optional documentation)">
|
---|
[518cff0] | 13 | <!ENTITY gparted-time "0.9 SBU (additional 0.1 SBU, building the optional documentation)">
|
---|
[e447aff] | 14 | ]>
|
---|
| 15 |
|
---|
[6cce201] | 16 | <sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
|
---|
[e447aff] | 17 | <?dbhtml filename="gparted.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[6cce201] | 24 | <title>Gparted-&gparted-version;</title>
|
---|
[e447aff] | 25 |
|
---|
| 26 | <indexterm zone="gparted">
|
---|
[6cce201] | 27 | <primary sortas="a-Gparted">Gparted</primary>
|
---|
[e447aff] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to Gparted</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | Gparted is the Gnome Partition Editor, a Gtk 2 GUI for other command line
|
---|
| 35 | tools that can create, reorganise or delete disk partitions.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[91d83ab4] | 38 | &lfs76_checked;
|
---|
[e447aff] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&gparted-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&gparted-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &gparted-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &gparted-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &gparted-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &gparted-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
[56605b9] | 78 | <xref linkend="gtkmm2"/> and
|
---|
[6cce201] | 79 | <xref linkend="parted"/>
|
---|
[e447aff] | 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
[665ac79f] | 84 | <ulink url="&gnome-download-http;/gnome-doc-utils/">
|
---|
| 85 | GNOME Doc Utils</ulink> and
|
---|
[6cce201] | 86 | <xref linkend="rarian"/>
|
---|
[e447aff] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <para condition="html" role="usernotes">
|
---|
| 90 | User Notes: <ulink url="&blfs-wiki;/gparted"/>
|
---|
| 91 | </para>
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of Gparted</title>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | Install <application>Gparted</application> by running the following
|
---|
| 99 | commands:
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
[686a89a3] | 102 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 103 | --disable-doc \
|
---|
| 104 | --disable-static &&
|
---|
[e447aff] | 105 | make</userinput></screen>
|
---|
| 106 |
|
---|
[6cce201] | 107 | <para>
|
---|
| 108 | This package does not come with a testsuite.
|
---|
| 109 | </para>
|
---|
[e447aff] | 110 |
|
---|
| 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[28b61748] | 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
[686a89a3] | 122 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 123 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 124 |
|
---|
[28b61748] | 125 | <para>
|
---|
| 126 | <option>--disable-doc</option>: This switch disables building of
|
---|
| 127 | the optional documentation. Remove it if you have installed
|
---|
[665ac79f] | 128 | <application>GNOME Doc Utils</application>.
|
---|
[28b61748] | 129 | </para>
|
---|
| 130 |
|
---|
[e447aff] | 131 | </sect2>
|
---|
| 132 |
|
---|
[f0afab3f] | 133 | <sect2 role="using">
|
---|
[6cce201] | 134 | <title>Using Gparted</title>
|
---|
[f0afab3f] | 135 |
|
---|
| 136 | <para>
|
---|
| 137 | To manipulate file systems Gparted has a run time dependency on various
|
---|
| 138 | file system tools (you only need to install the tools for file systems you
|
---|
| 139 | actually use):
|
---|
| 140 | e2fsprogs (installed as part of LFS),
|
---|
| 141 | <xref linkend="jfsutils"/>,
|
---|
| 142 | <xref linkend="ntfs-3g"/>,
|
---|
| 143 | <xref linkend="reiserfs"/>,
|
---|
[a3c54ef2] | 144 | <xref linkend="xfsprogs"/>,
|
---|
[f0afab3f] | 145 | <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories">
|
---|
[91d83ab4] | 146 | btrfs-progs</ulink>,
|
---|
[f0afab3f] | 147 | <ulink url="http://www.daniel-baumann.ch/software/dosfstools/">dosfstools</ulink>,
|
---|
| 148 | <ulink url="http://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
|
---|
| 149 | to read and write FAT16/32 volume labels and UUIDs),
|
---|
| 150 | <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
|
---|
| 151 | hfsprogs,
|
---|
| 152 | <ulink url="http://www.nilfs.org/download/">nilfs-utils</ulink> and
|
---|
| 153 | reiser4progs.
|
---|
| 154 | </para>
|
---|
[aadb87c] | 155 |
|
---|
| 156 | <para>
|
---|
| 157 | Root privileges are required to run Gparted. If you wish to run the
|
---|
[91d83ab4] | 158 | application from the menu, further packages and configuration are
|
---|
| 159 | necessary. One solution is to use <command>pkexec</command>
|
---|
| 160 | from <xref linkend="polkit"/>. Another solution is to use <xref
|
---|
| 161 | linkend="ssh-askpass"/>.
|
---|
[aadb87c] | 162 | </para>
|
---|
[3da508cc] | 163 |
|
---|
| 164 | <sect3 role="ssh-askpass">
|
---|
| 165 | <title>ssh-askpass</title>
|
---|
| 166 | <para>
|
---|
[91d83ab4] | 167 | To optionally use <xref linkend="ssh-askpass"/>, run the following
|
---|
| 168 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
[3da508cc] | 169 | </para>
|
---|
| 170 |
|
---|
[91d83ab4] | 171 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
|
---|
| 172 | /usr/share/applications/gparted.desktop.back &&
|
---|
[3da508cc] | 173 |
|
---|
[91d83ab4] | 174 | sed -i 's/Exec=/Exec=sudo -A /'
|
---|
| 175 | /usr/share/applications/gparted.desktop &&</userinput></screen>
|
---|
[3da508cc] | 176 |
|
---|
| 177 | </sect3>
|
---|
| 178 |
|
---|
| 179 | <sect3 role="pkexec">
|
---|
| 180 | <title>pkexec</title>
|
---|
[91d83ab4] | 181 |
|
---|
[3da508cc] | 182 | <para>
|
---|
[91d83ab4] | 183 | To optionally use <command>pkexec</command>, you need
|
---|
| 184 | <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/> or
|
---|
| 185 | any Polkit authentication agent provided by your desktop
|
---|
| 186 | environment and <xref linkend="systemd"/> (for Logind). Run the
|
---|
| 187 | following commands as the <systemitem
|
---|
| 188 | class="username">root</systemitem> user:
|
---|
[3da508cc] | 189 | </para>
|
---|
| 190 |
|
---|
[91d83ab4] | 191 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
|
---|
| 192 | /usr/share/applications/gparted.desktop.back &&
|
---|
| 193 |
|
---|
[876cd11] | 194 | sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
|
---|
[91d83ab4] | 195 | /usr/share/applications/gparted.desktop &&
|
---|
[3da508cc] | 196 |
|
---|
| 197 | cat > /usr/sbin/gparted_polkit << "EOF" &&
|
---|
[91d83ab4] | 198 | <literal>#!/bin/sh
|
---|
[7a5b2e77] | 199 |
|
---|
| 200 | pkexec /usr/sbin/gparted $@</literal>
|
---|
[3da508cc] | 201 | EOF
|
---|
[91d83ab4] | 202 | chmod -v 755 /usr/sbin/gparted_polkit
|
---|
[3da508cc] | 203 |
|
---|
[91d83ab4] | 204 | cat > /usr/share/polkit-1/actions/org.gnome.gparted.policy << "EOF"
|
---|
[7a5b2e77] | 205 | <literal><?xml version="1.0" encoding="UTF-8"?>
|
---|
[3da508cc] | 206 | <!DOCTYPE policyconfig PUBLIC
|
---|
| 207 | "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
---|
| 208 | "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
---|
| 209 | <policyconfig>
|
---|
| 210 |
|
---|
| 211 | <action id="org.freedesktop.policykit.pkexec.run-gparted">
|
---|
| 212 | <description>Run GParted</description>
|
---|
| 213 | <message>Authentication is required to run GParted</message>
|
---|
| 214 | <defaults>
|
---|
| 215 | <allow_any>no</allow_any>
|
---|
| 216 | <allow_inactive>no</allow_inactive>
|
---|
| 217 | <allow_active>auth_admin_keep</allow_active>
|
---|
| 218 | </defaults>
|
---|
| 219 | <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate>
|
---|
| 220 | <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
---|
| 221 | </action>
|
---|
| 222 |
|
---|
[7a5b2e77] | 223 | </policyconfig></literal>
|
---|
[3da508cc] | 224 | EOF
|
---|
[91d83ab4] | 225 | chmod -v 644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
|
---|
[3da508cc] | 226 |
|
---|
| 227 | </sect3>
|
---|
| 228 |
|
---|
[f0afab3f] | 229 | </sect2>
|
---|
| 230 |
|
---|
[e447aff] | 231 | <sect2 role="content">
|
---|
| 232 | <title>Contents</title>
|
---|
| 233 |
|
---|
| 234 | <segmentedlist>
|
---|
| 235 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 236 | <segtitle>Installed Libraries</segtitle>
|
---|
[e447aff] | 237 | <segtitle>Installed Directories</segtitle>
|
---|
| 238 |
|
---|
| 239 | <seglistitem>
|
---|
| 240 | <seg>
|
---|
[7a5b2e77] | 241 | gparted, gpartedbin and gparted_polkit (optional)
|
---|
[e447aff] | 242 | </seg>
|
---|
[c3c56b2] | 243 | <seg>
|
---|
| 244 | None
|
---|
| 245 | </seg>
|
---|
[e447aff] | 246 | <seg>
|
---|
| 247 | /usr/share/gnome/help/gparted and
|
---|
[6cce201] | 248 | /usr/share/omf/gparted
|
---|
[e447aff] | 249 | </seg>
|
---|
| 250 | </seglistitem>
|
---|
| 251 | </segmentedlist>
|
---|
| 252 |
|
---|
| 253 | <variablelist>
|
---|
| 254 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 255 | <?dbfo list-presentation="list"?>
|
---|
| 256 | <?dbhtml list-presentation="table"?>
|
---|
| 257 |
|
---|
| 258 | <varlistentry id="gparted-prog">
|
---|
| 259 | <term><command>gparted</command></term>
|
---|
| 260 | <listitem>
|
---|
| 261 | <para>
|
---|
| 262 | is a shell script which sets up the environment before calling
|
---|
| 263 | <command>gpartedbin</command>.
|
---|
| 264 | </para>
|
---|
| 265 | <indexterm zone="gparted gparted-prog">
|
---|
| 266 | <primary sortas="b-gparted">gparted</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
| 271 | <varlistentry id="gpartedbin">
|
---|
| 272 | <term><command>gpartedbin</command></term>
|
---|
| 273 | <listitem>
|
---|
| 274 | <para>
|
---|
| 275 | is the Gparted binary.
|
---|
| 276 | </para>
|
---|
| 277 | <indexterm zone="gparted gpartedbin">
|
---|
| 278 | <primary sortas="b-gpartedbin">gpartedbin</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
[6cce201] | 282 |
|
---|
[7a5b2e77] | 283 | <varlistentry id="gparted_polkit">
|
---|
| 284 | <term><command>gparted_polkit</command></term>
|
---|
| 285 | <listitem>
|
---|
| 286 | <para>
|
---|
| 287 | is an optional script which can be used to run gparted with polkit,
|
---|
| 288 | from a menu.
|
---|
| 289 | </para>
|
---|
| 290 | <indexterm zone="gparted gparted_polkit">
|
---|
| 291 | <primary sortas="b-gparted_polkit">gparted_polkit</primary>
|
---|
| 292 | </indexterm>
|
---|
| 293 | </listitem>
|
---|
| 294 | </varlistentry>
|
---|
| 295 |
|
---|
[e447aff] | 296 | </variablelist>
|
---|
[6cce201] | 297 |
|
---|
[e447aff] | 298 | </sect2>
|
---|
[6cce201] | 299 |
|
---|
[e447aff] | 300 | </sect1>
|
---|