You are not logged in.

#1 2009-09-15 01:43:10

RedScare
Member
Registered: 2009-03-28
Posts: 91

Copy existing installation to USB stick

My current install of arch takes up only 3 Gigs (not counting personal data), and I was wondering, if I just partition and install grub on my USB, would I be able to copy over the root partition to the USB?

If the above is indeed possible, what is the safest/quickest/most reliable method for the copying to be done?

Offline

#2 2009-09-15 02:10:28

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Copy existing installation to USB stick

Well, RedScare, you'd have to edit fstab for one thing.  Plus there are probably other things I'm not thinking of.  I think your best bet is to d/l the aif installer and just install new from your desktop, copy whatever you need from there.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#3 2009-09-15 08:10:09

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: Copy existing installation to USB stick

RedScare wrote:

if I just partition and install grub on my USB, would I be able to copy over the root partition to the USB? If the above is indeed possible, what is the safest/quickest/most reliable method for the copying to be done?

Have a look at the Tips section under Arch Linux on my page at http://appstogo.mcfadzean.org.uk/eeepc.html ignoring, of course, the Eee-specific stuff.

Offline

#4 2009-09-15 18:44:38

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Copy existing installation to USB stick

First time I've seen your site ninian.  Thanks for the link. big_smile

Last edited by Gen2ly (2009-09-15 18:46:04)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-09-15 22:11:52

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: Copy existing installation to USB stick

Apart from partition and installing grub in the USB, is there anything else that needs to be done in order to make it "bootable"?

Thanks a lot for your help so far.

Offline

#6 2009-09-15 22:34:23

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Copy existing installation to USB stick

Aside from setting up GRUB, if you are using a custom kernel (no initrd), you need to build your kernel with USB and USB Mass Storage device support compiled statically into the kernel.  If you are using the stock kernel, or you wish to use initrd, then you need to edit the HOOKS array /etc/mkinitcpio.conf to have the usb hook load after udev.  You may want to also add elevator=noop to your kernel parameters in GRUB to increase the performance of the system on your USB stick, as the other schedulers are meant for use on mechanical hard drives.

Offline

#7 2009-09-15 23:36:11

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: Copy existing installation to USB stick

RedScare wrote:

My current install of arch takes up only 3 Gigs (not counting personal data), and I was wondering, if I just partition and install grub on my USB, would I be able to copy over the root partition to the USB?

If the above is indeed possible, what is the safest/quickest/most reliable method for the copying to be done?

rsync -a / /path/to/mounted/usb

then edit the fstab

EDIT: Also you might want to use the UUID in fstab and grub, since it won't be system dependent

Last edited by some-guy94 (2009-09-15 23:37:37)

Offline

#8 2009-09-16 18:53:00

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: Copy existing installation to USB stick

Well, everything worked wonderfully. I'm just nervous about coming to a system that does not support a 64-bit OS, but those seem relatively rare now.

Offline

Board footer

Powered by FluxBB