PDA

View Full Version : [ubuntu] Moving USB LiveCD Lucid to main hard disk



ypestis
July 2nd, 2010, 08:53 AM
Hello, im running Lucid from my USB key at the moment and configuring and playing around a bit and I was wondering if it is possible to move this install to my main harddisk so I can keep all installed apps and configurations

garvinrick4
July 2nd, 2010, 09:02 AM
Hello, im running Lucid from my USB key at the moment and configuring and playing around a bit and I was wondering if it is possible to move this install to my main harddisk so I can keep all installed apps and configurations
Sorry you can only install the original .iso file on an install. Nice thought though.

ypestis
July 2nd, 2010, 09:04 AM
Oke, what about installing Lucid to the main drive and after that copying over the USB installation files manually? Bad Idea probably?

garvinrick4
July 2nd, 2010, 09:33 AM
Start by installing;

sudo apt-get install ubuntu-restricted-extras gconf-editor gparted startupmanager && sudo apt-get update && sudo apt-get upgradeThis will get you; flash, ttfonts, codecs, java and more in ubuntu restricted extras and a few more essentials you can see and update and upgrade. While this is going on do your panels and things in your Preferences, keyboard shortcuts, power management and others you want. Will make things quicker. Just copy and paste. Enjoy and do not forget to get your internet connection first.

garvinrick4
July 2nd, 2010, 09:40 AM
When done run this and it will give you a text copy of all your installed packages in
their true linux names, comes in handy.

sudo dpkg --get-selections > installedsoftware
Will be in Home folder
(http://ubuntuguide.org/wiki/Ubuntu:Lucid#networking)

Users guide:
Ubuntu:Lucid - (http://ubuntuguide.org/wiki/Ubuntu:Lucid#networking)

C.S.Cameron
July 2nd, 2010, 04:06 PM
What kind of install do you have on your USB disk? If it is a full install you can move it to your hard disk. Even if it is a persistent install, (usb-creator, UNetbootin), it should be possible.
It is easy to also copy just your home folder.

The dd command will clone a partition from a flash drive to a hard drive.
If the flash drive was bootable the clone will be also.

The dd command is very powerful and can easily overwrite everything on your hard disk if used improperly.

You should back everything up, and study the command, start with:

http://www.linuxquestions.org/questions/linux-newbie-8/learn-the-dd-command-362506/

I would suggest practicing with an old blank HDD first.

Edit
I have just tried dding a Live USB to hard disk and it works.

C.S.Cameron
July 2nd, 2010, 07:18 PM
On second thought, every change made to a persistent flash drive is stored in a file named casper-rw.
If you do a frugal install to hard drive you should be able to just copy casper-rw from /cdrom on the flash drive to /cdrom in the frugal install.


A bit more complex, you can mount casper-rw and use the files inside to overwrite the files on a hard disk install, see:


http://ubuntuforums.org/showthread.php?t=1028564