GNOME Partition Editor

Create GParted live from scratch

GParted Live is a small bootable GNU/Linux distribution for x86 machine based on Debian live. If you want to create GParted live from scratch, you can follow the following:
//NOTE// Due to the changes in Debian Sid repository are very frequent, the following method might need to be adjusted according to the changes.

  1. Boot GParted live on a PC with RAM size larger than 1 GB (GParted live version >= 0.28.1-1 is required.)
  2. Follow the instructions to enter X, then open a terminal. The follow actions have to be run as root. If you are not root, run "sudo -i" to become root.
  3. Configure internet connection, e.g. run "dhclient eth0" to lease IP address from a DHCP server, or you can use commands like "ifconfig" and "route" to assign static IP address.
  4. Turn on the apt repository by editing /etc/apt/sources.list, e.g. "nano /etc/apt/sources.list" or "vi /etc/apt/sources.list", make it like:
    deb sid main contrib non-free # Or any Debian mirror site near you.
  5. apt-get update
  6. mkdir -p /usr/share/man/man{1,5,8}
  7. mkdir -p /usr/share/drbl/pkg/syslinux/efi{32,64}
  8. apt-get --reinstall install libc6
    (By doing this, we can avoid this error: "iconv: conversion to `latin1' is not supported" when creating GParted live by live helper because /usr/lib/gconv/ was removed when GParted live was created)
  9. apt-get install live-build=4.0.5-1.drbl3 debootstrap drbl clonezilla zip bzip2 rsync genisoimage binutils xz-utils cpio bc initramfs-tools pxelinux isolinux
  10. export PATH=$PATH:/usr/share/drbl/sbin/:/usr/share/drbl/bin/
  11. If the available space in dir /tmp/ is less than 500 MB, tune it to be larger than 500 MB. You can make it by the commands like:
    mount -t tmpfs -o "nosuid,size=60%,mode=1777" tmpfs /tmp
    mount -t tmpfs -o "nosuid,size=524288000,mode=1777" tmpfs /tmp
  12. run command "/usr/share/drbl/sbin/drbl-prepare-pxelinux"
  13. Mount a working space (Use Unix/Linux file system. Do not mount FAT or NTFS file system), you need at least 600 MB. e.g. mount /dev/sdb1 /mnt
  14. mkdir /mnt/live/
  15. cd /mnt/live/
  16. Edit /usr/sbin/create-gparted-live to meet your need if necessary, e.g. if you want to add some package, you can append the package name in the variable "pkgs" if it exists in the Debian repository. E.g. if you want to add the package "pcmanfm", you can try to search it in the Debian repository by: "apt-cache search pcmanfm". Once you are sure it's in repository, you can add it.
  17. Run: "/usr/sbin/create-gparted-live" with appropriate options to create GParted live,
    e.g. to use the unstable branch of DRBL and experimental branch of live on drbl repository:
    /usr/sbin/create-gparted-live -l en -b u -e e

    If you want to assign different repositories to download files, you can run something like:
    create-gparted-live -l en -b u -e e -m -s -g

    Or more options you can try (this is how GParted live 0.28.1-2 was created):
    create-gparted-live -o -bt debootstrap -c 'main non-free' -k 'firmware-linux-free firmware-linux firmware-linux-nonfree firmware-bnx2 firmware-bnx2x firmware-qlogic firmware-ralink live-boot=4.0.2-1.drbl15 live-boot-initramfs-tools=4.0.2-1.drbl15 live-config=4.0.4-1.drbl7 live-config-systemd=4.0.4-1.drbl7 live-tools syslinux=3:6.03+dfsg-14.1 extlinux=3:6.03+dfsg-14.1 syslinux-common=3:6.03+dfsg-14.1 syslinux-utils=3:6.03+dfsg-14.1 syslinux-efi=3:6.03+dfsg-14.1' -f 686-pae -b unstable -e unstable -d sid -m -s -g -y 6.03 -i 0.28.1-1-i686-pae -n 4.9.0-3 -x quiet

    If nothing goes wrong, an iso file gparted-live-0.28.1-1-i686-pae.iso and a zip file will be created in the dir /mnt/live/. All other files under /mnt/live/ are temp files for troubleshooting, and you can remove them if everything goes smoothly.
    For more info, you can run "create-gparted-live --help"
    BTW, in the file "GParted-Live-Version" in the GParted live iso file, you can find the command which was used to create the GParted iso file.
Documentation   FAQ   Forum   Bugs   Features   Screenshots   Articles   Contact

Get GParted at Fast, secure and Free
	Open Source software downloads Valid HTML 4.01! Correct CSS! Privacy policy