You are not logged in.
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
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
I can't TAR all files in /, because i need boot from USB Stick...
I need replace HDD with USB Stick.
Offline
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
I think Larch script will make that possible... But never tried it:
Offline
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
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
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
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
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
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