Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How do you install the livecd on a usb drive?

  1. #1
    Join Date
    Jul 2007
    Beans
    177
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Talking How do you install the livecd on a usb drive?

    Hello,

    I want to create a live CD that runs from my USB flash drive.

    How can I do this in Ubuntu. I am running Karmic 64bit.

    I found the programs:
    Universal USB Installer
    Live Linux USB

    However these are both Windows based programs.

    Is there anything out there that will work in Linux that will do the same thing?

    Thank you and God bless,
    Johnathan
    Most of us do and say dumb things, think before you act. If you do plan on going the dumb route, please be sure to have the cameras rolling... you can at least give the rest of us a good laugh.

  2. #2
    Join Date
    Mar 2008
    Location
    Sussex, UK
    Beans
    1,326
    Distro
    Ubuntu

    Re: How do you install the livecd on a usb drive?

    Hi,
    I think you go System > Admin > Startup disc creator & that lets you install on USB - I managed that in 9.04 so I guess it's the same?

    Richard

  3. #3
    Join Date
    Apr 2010
    Beans
    1
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do you install the livecd on a usb drive?

    This is the URL I used to do the same thing.

    https://help.ubuntu.com/community/In...n/FromUSBStick

    Let me know if it works.

  4. #4
    Join Date
    Jul 2007
    Beans
    177
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Talking Re: How do you install the livecd on a usb drive?

    Cool, thanks guys for the input...

    I've gone with this:
    http://www.pendrivelinux.com/boot-mu...multiboot-usb/

    Will be testing it with Windows XP CD ISO's and other linux distros.

    I like the options of choosing different thigns to load based on what I need.

    Thank you and God bless,
    Johnathan
    Most of us do and say dumb things, think before you act. If you do plan on going the dumb route, please be sure to have the cameras rolling... you can at least give the rest of us a good laugh.

  5. #5
    Join Date
    Mar 2008
    Location
    Sussex, UK
    Beans
    1,326
    Distro
    Ubuntu

    Re: How do you install the livecd on a usb drive?

    You're welcome, hope it goes well!

  6. #6
    Join Date
    Aug 2009
    Location
    UK
    Beans
    204
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How do you install the livecd on a usb drive?

    Try this:-

    I was reading How to install Ubuntu Linux from USB Stick posted on this site a while ago, and found it to be quite some work to get Ubuntu working on a USB stick. Besides, having to prepare your USB device, creating a separate partition on it which will be more or less “useless” after the installation, giving up 750MB of space?
    There had to be a better way.
    Together with a colleague of mine, I decided to figure out whether there could be an easier way to install Ubuntu on a USB device.
    I found a way of doing it in a much simpler way… without creating the separate partition to store the LiveCD:
    A couple of assumptions to take into account when going through this manual:

    • My computer (Dell D820 laptop) has 1 internal disk, devided into 3 partitions (dell utility - windows - Ubuntu 8.04)
    • Just one USB device (in my case a 250GB harddisk
    • BIOS configured to enable boot from internal HDD, CD/DVD and USB Storage device

    (I didn’t take screenshots, so I will be explaining a lot about the screens… It looks like a lot of work, but trust me: it is not, and it really is easy

    1. Insert the LiveCD into your computer;
    2. Connect your USB device;
    3. Boot your computer from the liveCD;
    4. Once Ubuntu is started, go to System - Administration - Partition Manager
      This will open the Partion Editor. Select your USB device and delete all partitions on it. Click Apply and exit Partition Editor;
    5. Double Click the Install Icon. This will start the Installer;
    6. The Welcome Screen is shown. Choose your language and click Forward;
    7. Select your Time Zone and click Forward;
    8. Choose your Keyboard Layout and click Forward;
    9. The partitioner will be started, and you will be given the choice where to install Ubuntu. Choose Guided - Use entire disk, selecting your USB device (this will most likely be /dev/sdb, don’t choose /dev/sdb1!);
    10. The next sceen you will give your username/password information. Provide the required info and hit Forward;
    11. If there is anything to migrate from other installations on your computer (most likely not), do whatever you want, and click Forward;
    12. The next screen is important - It is titled: “Ready to Install”. Be careful here: before clicking on Forward, make sure you click on the “Advanced” Button!
      This will open a new screen, giving you the option whether and where to install the bootloader. Select your USB device (in my case it was /dev/sdb) to install the bootloader to;
      Exit this screen and click on Forward in the “Ready to Install” screen, which will be shown;
    13. The installation will be started now. Just be patient, grab a cup of coffee and come back 15 minutes later, your installation will be more or less finished by then.

    So you have finished the installation. However, when you will be restarting your system from USB, you will find out that the partition you just installed Ubuntu to cannot be mounted.
    Here comes the trick:

    1. Once the installation is finished, reboot your PC (this is the safest) from your LiveCD, with your USB device connected;
    2. Once started, open up a terminal (Applications - Accessories - Terminal);
    3. In the Terminal, type: sudo -i (which will give you root privileges, so be careful from now on!);
    4. Change directories to /media/disk/boot/grub - This will take you to the “/boot/grub” directory on the USB device;
    5. open menu.lst with vi (make a backup first!)
    6. Go to line 130 (or somewhere in that area).
      You will find a line looking like:
      ## ## End Default options ##
      And underneath it you will find three entries pointing to your Ubuntu you just installed:
      title Ubuntu 8.04, kernel 2.6.24-16-generic
      root (hd1,0)
      kernel /boot/vmlinuz………
      initrd /boot/initrd…….
      quiet
      (the above 5 lines repeat 3 times with slight differences)
    7. The magic trick is to change (hd1,0) into (hd0,0) for all these three entries.
      Why? Booting from USB device makes your USB device hd0, in stead of hd1 at time of installation.
    8. Search for the line starting with “# groot=(hd1,0)” and change (hd1,0) to (hd0,0) - Don’t delete the # at te beginning of this line!
    9. Once you did this, you can optionally remove the remaining of the file
      (everything underneath ### END DEBIAN AUTOMATIC KERNELS LIST);
    10. Save the file, make sure it is owned by root:ubuntu (chgrp ubuntu menu.* will do)
    11. Edit device.map (in the same directory) and change the mapping of hd0 to /dev/sdb.
    12. Reboot your machine, from USB, choose the Ubuntu installation from the Boot Loader and you are one happy person.

    I guess that is it. If I missed something, please comment.
    Regards,

  7. #7
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Lightbulb Re: How do you install the livecd on a usb drive?

    I just use this: UNetbootin http://unetbootin.sourceforge.net/
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  8. #8
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How do you install the livecd on a usb drive?

    open menu.lst with vi (make a backup first!)
    9.10 does not use menu.lst, it now uses grub.cfg.
    it is also using UUIDs.

    I usually just unplug the internal hard drive when I am doing a full install to flashdrive and everything works ok.

    Caution: Do not try to edit grub.cfg unless you know what you are doing.
    Last edited by C.S.Cameron; April 18th, 2010 at 05:16 PM.

  9. #9
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Lightbulb Re: How do you install the livecd on a usb drive?

    Quote Originally Posted by C.S.Cameron View Post
    9.10 does not use menu.lst, it now uses grub.cfg.
    it is also using UUIDs.

    I usually just unplug the internal hard drive when I am doing a full install to flashdrive and everything works ok.

    Caution: Do not try to edit grub.cfg unless you know what you are doing.
    UNetbootin takes care of all that for you.

    P.S. 9.10 uses GRUB2 if you do a fresh install. If you upgrade from 9.04 it will only update GRUB (not install GRUB2).
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  10. #10
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How do you install the livecd on a usb drive?

    UNetbootin is fine if you do not intend to update or upgrade or install proprietary drivers, also it is not persistent out of the box.

    This is how I made a Unetbootin install to flash drive persistent.
    Booted Live CD, (Live USB should also work)
    Plugged in target flash drive.
    Started Partition Editor
    Created 1 GB FAT32 partition, (on the left side of the bar).
    Created a 1.5 GB ext3 partition to the right of this, labeled it "casper-rw".
    Created a ext3 partition in the remaining space and labeled it "home-rw".
    Closed Partition Editor.
    Un-mounted and re-mounted flash drive.
    Started Windows, started Unetbootin, selected Diskimage, located the iso, selected Type = USB Drive, selected correct drive letter
    Pressed OK, waited 5 minutes.
    When Unetbootin finished, shutdown, booted thumbdrive.
    At boot menu hit Tab, then typed "(space)persistent"
    Ran "gksu nauilus", opened filesystem / cdrom and then opened syslinux.cfg with text editor.
    Added "persistent" as shown below:
    append initrd=/ubninit file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- persistent
    Rebooted, changes were persistent.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •