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:
- Boot GParted live (Version 0.4.1-2 or later is required).
- Follow the instructions to enter X, then open a terminal.
- 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.
- apt-get update
- Turn on the apt repository by editing /etc/apt/sources.list, e.g. "nano /etc/apt/sources.list" or "vim /etc/apt/sources.list", make it like:
deb http://free.nchc.org.tw/debian/ lenny main contrib non-free # Or any Debian mirror site near you. deb http://free.nchc.org.tw/debian-security lenny/updates main contrib non-free # Or any Debian mirror site near you. deb http://free.nchc.org.tw/drbl-core drbl unstable testing stable live-stable live-testing live-unstable live-experimental
- apt-get update
- mkdir -p /usr/share/man/man{1,5,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) - apt-get install live-helper cdebootstrap drbl clonezilla zip bzip2 rsync mkisofs
- Mount a working space, you need at least 600 MB. e.g. mount /dev/hdb1 /mnt
- cd /mnt
- Edit /opt/drbl/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.
- Run: "/opt/drbl/sbin/create-gparted-live" to create GParted live,
or to use the unstable branch of DRBL and experimental branch of live on drbl repository:
/opt/drbl/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:
/opt/drbl/sbin/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
For more info, you can run "/opt/drbl/sbin/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.
