Results 1 to 2 of 2

Thread: live from usb faster than full install on usb

  1. #1
    Join Date
    Sep 2005
    Location
    USA
    Beans
    38
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question live from usb faster than full install on usb

    I have 2 USB flash drives with ubuntu lucid amd64:

    • 1 live boot (persistent) created with iso and Universal-USB-Installer-v1.5.5.exe (from pendrivelinux.com)
    • 1 normal installation where I simply selected my flash drive instead of my hard drive.


    When running the normal installation, I encounter frequent delays during normal operations. For example, I'll open synaptic package manager, and I'll just have to wait there almost 15 seconds for it to load. Sometimes, I'll click on the applications menu and just sit there a few seconds before it drops down. And while I'm using Firefox, it often hangs (indicated by turning grayscale colors) for a few seconds before loading a page or before opening up the "Add-ons" window.

    With live boot, I have none of these delays. Can anyone explain to me WHY and/or how to make my normal installation run as fast as the live boot?

    Thanks.

    Note: Both are installed on SanDisk cruzer micros. Live boot from 1gb drive, normal install on 8gb drive. Also, I have added the following line to fstab so I'm using tmpfs for /tmp:
    Code:
    tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0

  2. #2
    Join Date
    Jan 2007
    Beans
    35

    Re: live from usb faster than full install on usb

    I've been experimenting to improve performance in this case too. I found that setting up certain parts of the filesystem as tmpfs in RAM (those which are accessed often as part of moment-to-moment operation) eliminated the slowdowns and hangs I was experiencing.

    You can see a bit more about how this is typically configured, and some paths to try adding to the /etc/fstab file as RAM-mounted directories here...

    https://wiki.archlinux.org/index.php/Fstab#tmpfs

    ...but note that the information is lost on a reboot, so it's only applicable to temporary files.

    For my own purposes I have my google-chrome cache (at /home/<username>/.cache/google-chrome) and profile at /home/<username>/.config/google-chrome) also running on tmpfs in a similar way, meaning my browser is very fast where previously it spent all its time reading from cache, and I can use a Chrome sign-in to google to preserve bookmarks etc. between sessions and between machines).

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
  •