The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Moving existing installation to USB drive?

    Discussion in 'Linux Compatibility and Software' started by fafler, Sep 2, 2009.

  1. fafler

    fafler Notebook Enthusiast

    Reputations:
    0
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    15
    How can i move an existing Ubuntu 8.10 installation from a internal SATA drive to a USB flash drive?

    I want to do this to save battery and produce less heat on my laptop by using the SATA drive for data i rarely use and store / on the flash drive. Right now i'm going to use a 8 gb Kingston drive for testing, but if stability and performance is good enough i'll consider something like this og this.
     
  2. archer7

    archer7 Notebook Evangelist

    Reputations:
    289
    Messages:
    647
    Likes Received:
    0
    Trophy Points:
    30
    Even if you move all the files over to the USB, some things need to be changed: The mappings in /etc/fstab have to be edited, for one. Grub needs a way to find the drive at boottime; there might be an elegant to make that happen, but nothing comes to my mind.

    Yours seems to be a very reasonable idea, so I'm sure it's been documented by someone online, or at least pieces of it. Either way, I would suggest just doing a clean install into the USB drive, and then moving your home (/home/$USER) directory to it afterwards. That way, your user settings will be preserved.
     
  3. fafler

    fafler Notebook Enthusiast

    Reputations:
    0
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    15
    I know how to make grub work on USB, but i'm unsure about what i should do with the initrd. I'm too lazy to do a clean install.

    BTW, i'm using encrypted LVM for /. Guess it won't make things more simple.
     
  4. archer7

    archer7 Notebook Evangelist

    Reputations:
    289
    Messages:
    647
    Likes Received:
    0
    Trophy Points:
    30
    I'm not sure how Ubuntu's initrd works, but I don't think you need to modify it -- just move it along with the kernel. I'm pretty sure we can assume the USB is detected already.