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 >= 1.1.0-5 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 http://ftp.us.debian.org/debian/ 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 debootstrap drbl clonezilla zip bzip2 rsync genisoimage binutils xz-utils cpio bc initramfs-tools pxelinux isolinux xorriso
  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
    Or
    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 1 GB. 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 http://ftp.us.debian.org/debian -s http://security.debian.org -g http://drbl.sourceforge.net/drbl-core

    Or more options you can try (this is how GParted live 1.1.0-5 was created):
    create-gparted-live -o -er -c main non-free -k firmware-linux-free firmware-linux firmware-linux-nonfree firmware-bnx2 firmware-bnx2x firmware-qlogic firmware-ralink live-boot=1:20200526-drbl1 live-boot-initramfs-tools=1:20200526-drbl1 live-config=5.20190519.drbl1 live-config-systemd=5.20190519.drbl1 live-tools syslinux=3:6.04~git20190206.bf6db5b4+dfsg1-1 extlinux=3:6.04~git20190206.bf6db5b4+dfsg1-1 syslinux-common=3:6.04~git20190206.bf6db5b4+dfsg1-1 syslinux-utils=3:6.04~git20190206.bf6db5b4+dfsg1-1 syslinux-efi=3:6.04~git20190206.bf6db5b4+dfsg1-1 shim-signed grub-efi-amd64-signed -f amd64 -b unstable -e unstable -d sid -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -g http://free.nchc.org.tw/drbl-core -y 6.03 -i 1.1.0-5-amd64 -n 5.7.0-1 -x quiet

    If nothing goes wrong, an iso file gparted-live-1.1.0-5-amd64.iso and a zip file gparted-live-1.1.0-5-amd64.zip 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 SourceForge.net. Fast, secure and Free
	Open Source software downloads Valid HTML 4.01! Correct CSS! Privacy policy