You are not logged in.

#1 2007-10-29 15:58:52

hoppik
Member
From: Czech Republic
Registered: 2007-09-12
Posts: 7
Website

Copy existing Arch Installation to USB stick

Hi Everybody,

How I can copy existing installation on HDD to the USB drive. I didn't find any information about this.

Thanks for reply.

Offline

#2 2007-10-29 16:10:34

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Copy existing Arch Installation to USB stick

Copy so that it'll run from that disk or copy as a backup?
The first might include some editing of config files (boot loader, fstab, ...) and a plain cp -a, for the second I'd use tar -xzf /path_to_usb/arch_root.tar.gz / and you might want to use the --exclude option to omit some directories (/dev/ and stuff), read man tar for details.

Offline

#3 2007-10-29 16:15:39

hoppik
Member
From: Czech Republic
Registered: 2007-09-12
Posts: 7
Website

Re: Copy existing Arch Installation to USB stick

I can't TAR all files in /, because i need boot from USB Stick...

I need replace HDD with USB Stick.

Offline

#4 2007-10-29 16:21:54

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Copy existing Arch Installation to USB stick

cp -a / /path_to_usb_disk/

And start editing files to match the setup (fstab and such), you'll need to fiddle with grub and your bios to get it to boot.

Last edited by Ramses de Norre (2007-10-29 16:22:21)

Offline

#5 2007-10-29 16:25:19

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: Copy existing Arch Installation to USB stick

I think Larch script will make that possible... But never tried it:

http://bbs.archlinux.org/viewtopic.php?id=38077

Offline

#6 2007-10-29 16:31:21

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: Copy existing Arch Installation to USB stick

Assuming your pc supports usb booting!

a direct copy of system is not going to work some dirs ie /dev /proc etc... are not required as they are populated at boot

syslinux will allow you to make usb stick bootable... and yes you will have to edit fstab and grub to get it to work

why not set up a base system that boots on usb stick then add your packages configs etc to it?

just some thoughts

MrGreen

Last edited by Mr Green (2007-10-29 16:31:53)


Mr Green

Offline

#7 2007-10-29 16:34:02

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Copy existing Arch Installation to USB stick

Mr Green wrote:

Assuming your pc supports usb booting!

a direct copy of system is not going to work some dirs ie /dev /proc etc... are not required as they are populated at boot

syslinux will allow you to make usb stick bootable... and yes you will have to edit fstab and grub to get it to work

why not set up a base system that boots on usb stick then add your packages configs etc to it?

just some thoughts

MrGreen

It does work if you copy from a live disc or such, maybe I should have added that.

So you need to mount your arch partition from somewhere else when using cp, you can't do this while running from the same partition.
I've succesfully done this already, although from hard disk to hard disk, not to usb drive.

Last edited by Ramses de Norre (2007-10-29 16:34:33)

Offline

#8 2007-10-29 16:51:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: Copy existing Arch Installation to USB stick

should not be a great difference only your going via usb/firewire rather than sata/ide

/me wants time machine on my system lol


Mr Green

Offline

#9 2007-10-29 23:15:49

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Copy existing Arch Installation to USB stick

And make your kernel (initrd) support booting from USB devices.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#10 2007-10-30 01:06:35

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Copy existing Arch Installation to USB stick

You can burn a copy of FaunOS to your USB stick and it will boot forthwith.  The USB stick is best if 2GB in size altho the 869MB download usb.img will fit on 1GB stick.  It boots to KDE and has ~500 packages included...archlinux pacman with aufs overlays included.

Try it, if you don't like it, dump it!!!


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#11 2007-10-30 14:09:23

hoppik
Member
From: Czech Republic
Registered: 2007-09-12
Posts: 7
Website

Re: Copy existing Arch Installation to USB stick

Hi,

I try to install fresh copy of Archlinux to the USB drive.
On the usb stick is one partition /dev/sda1 formated as ext3.

Which modules I must set into mkinitcpio.conf?

Offline

Board footer

Powered by FluxBB