LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Success running GParted 0.15.0 Live HD using LILO (http://www.linuxquestions.org/questions/slackware-14/success-running-gparted-0-15-0-live-hd-using-lilo-4175455375/)

comet.berkeley 03-24-2013 12:24 PM

Success running GParted 0.15.0 Live HD using LILO
 
The online documentation for GParted Live on Hard Disk shows how to use Grub for dual booting.

Wouldn't it be nice to be able to use LILO instead?

Here is how I used LILO instead
  1. Download the gparted-live...zip file from:
    http://gparted.org/download.php

    In this case I downloaded gparted-live-0.15.0-1-amd64.zip
  2. Create an partition of 256MiB.

    Lets call it /dev/sda2 for this example.

    Here is how to create an LBA FAT32 partition though other file systems will
    work too.

    If you don't have GParted, use fdisk and make the partition type "c".

    And again if you don't have GParted make a dos filesystem on the partition:

    mkdosfs -F 32 /dev/sda2
  3. Create directory /a2 and mount the partition there:

    mkdir /a2
    mount -t vfat /dev/sda2 /a2
  4. Unzip the gparted download file into the /a2 directory:

    cd /a2
    unzip gparted-live...zip
  5. Edit the /etc/lilo.conf file:

    # GParted bootable partition config begins
    image = /a2/live/vmlinuz
    root = /dev/sda2
    label = gparted
    append = "boot=live config union=aufs noswap noprompt ip=frommedia live-media-path=/live bootfrom=/dev/sda2 toram=filesystem.s
    quashfs"
    vga=788
    initrd = /a2/live/initrd.img
    # GParted bootable partition config ends
  6. run lilo:
    lilo

comet.berkeley 03-25-2013 12:47 AM

Since I first posted, I discovered that there is no need for a separate partition in which to put the GParted Live files as a simple directory will do fine.

I also found that I can boot the memtest86+ utility very easily as well.

Here are newer instructions for using GParted Live on an existing Linux system that uses LILO:
  1. Download the gparted-live...zip file from:
    http://gparted.org/download.php

    In this case I downloaded gparted-live-0.15.0-1-amd64.zip
  2. Create a /gparted-live directory:

    mkdir /gparted-live
  3. Unzip the gparted download file into the /gparted-live directory:

    cd /gparted-live
    unzip gparted-live...zip
  4. Edit the /etc/lilo.conf file and add a section for gparted.
    Lets assume that the /gparted-live directory resides on the /dev/sda4 partition.

    # GParted bootable partition config begins
    image = /gparted-live/live/vmlinuz
    root = /dev/sda4 # make sure this matches the bootfrom= below ...
    label = gparted
    append = "boot=live config union=aufs noswap noprompt ip=frommedia live-media-path=/gparted-live/live bootfrom=/dev/sda
    4 toram=filesystem.squashfs"
    vga=788
    initrd = /gparted-live/live/initrd.img
    # GParted bootable partition config ends
  5. Optionally add a section for memtest86+

    # memtest86+ bootable partition config begins
    image = /gparted-live/live/memtest
    label = memtest
    # memtest86+ bootable partition config ends
  6. run lilo:
    lilo


All times are GMT -5. The time now is 07:49 AM.