View previous topic :: View next topic |
Author |
Message |
aych Guru
Joined: 20 May 2004 Posts: 304
|
Posted: Fri Mar 02, 2007 12:33 am Post subject: Install and Clone |
|
|
Hey guys.. remember me? I'm back with more wierd ideas.
I was wondering... would it be possible for me to compile everything for my ibm x20 on my desktop in vmware and then later "ghost" it onto my laptop? If i boot vmware from livecd, and compile everything to the x20 hardware specs it should work?
Thanks |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Mar 02, 2007 2:26 am Post subject: |
|
|
I don't know....
Just try it and post the result |
|
Back to top |
|
|
skunk l33t
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Fri Mar 02, 2007 3:58 am Post subject: |
|
|
why compiling inside vmware?
if your desktop is a x86 system, just do an installation inside a chroot environment (like you would do with the livecd) and transfer the installation to your laptop...
it will be a lot faster than compiling inside vmware... |
|
Back to top |
|
|
aych Guru
Joined: 20 May 2004 Posts: 304
|
Posted: Sun Mar 04, 2007 9:46 pm Post subject: |
|
|
lol.. cuz i cant afford the down time. =P anyways i luv my dual 19's . i'd hate to use a 12 inch screen at home while i compile. but yeah. why not. i'll try it and post results here |
|
Back to top |
|
|
aych Guru
Joined: 20 May 2004 Posts: 304
|
Posted: Sun Mar 04, 2007 10:42 pm Post subject: |
|
|
what would be the most effective way of 'cloning' just zipping everything? or use a utility like ghost? |
|
Back to top |
|
|
Kaste Guru
Joined: 21 Dec 2005 Posts: 546 Location: /home Sweet /home
|
Posted: Mon Mar 05, 2007 9:30 am Post subject: |
|
|
Well given you have the same partitioning scheme zipping or rather tar.gzing it should suffice provided you reinstall grub/lilo and adjust your fstab and everything else that could possibly change, which is quite a lot. I'd say at the very least you need a new kernel config if you haven't taken all of it into account already. _________________ I'm a membar of Mesnar and me scull contains wakky secrets! |
|
Back to top |
|
|
aych Guru
Joined: 20 May 2004 Posts: 304
|
Posted: Tue Mar 06, 2007 7:37 pm Post subject: |
|
|
yep. well. im doing everything chrooted from live cd. so from the beginning all use flags marches and kernels will be built for my laptop. the fstab should be the same too. any other concerns? |
|
Back to top |
|
|
piotrwoj n00b
Joined: 29 Sep 2006 Posts: 9
|
Posted: Wed Mar 07, 2007 12:27 pm Post subject: Re: Install and Clone |
|
|
aych wrote: | Hey guys.. remember me? I'm back with more wierd ideas.
I was wondering... would it be possible for me to compile everything for my ibm x20 on my desktop in vmware and then later "ghost" it onto my laptop? If i boot vmware from livecd, and compile everything to the x20 hardware specs it should work?
Thanks |
Is possible:
1) tar -zcf /hdaX/destination/hdaX.tar.gz hda_Source
2) untar on fisical hardware
3) chroot to new os from livecd and:
grub
device (hd0) /dev/dysk
root (hd0,0)
setup (hd0)
quit
update-grub
(hd0 may be hdX)
---------------------------------------
Drzwi Warszawa Toshiba 1135-S125 with atheros miniPCI
Drzwi Antyw³amaniowe 1GB/cel 1,8/60 HDD with 16Mb cache _________________ Meble dla Dzieci
Drzwi Antywlamaniowe |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Mar 07, 2007 12:59 pm Post subject: |
|
|
aych wrote: | what would be the most effective way of 'cloning' just zipping everything? or use a utility like ghost? |
Maybe He could use a Stage 5 Backup ? https://forums.gentoo.org/viewtopic-t-534039.html |
|
Back to top |
|
|
aych Guru
Joined: 20 May 2004 Posts: 304
|
Posted: Wed Mar 14, 2007 9:56 pm Post subject: |
|
|
well.. here goes! it works guys!
and basically if anyone wants to try this its like this.
1. create vmware system to your liking
2. boot from install-cd or livecd. (i used them interchangingly whichever one wasn't used as a coaster on my desk =P)
3. follow directions from gentoo handbook until kernel compilation
4. compile kernel to your computer's hardware standards. (the computer where the final destination is)
5. install grub to hd. (if needed)
6. shutdown vmware, and plug in second hd (laptop hd)
7. add destination hd to vmware as second disk
8. mount the 2 drives through live cd
9. cp -r * from one hd to the other
10. modify fstab as needed.
11. boot on new comp!
took me about a day to finish it all. xfce4.4, and beryl on my IBM Thinkpad X41 |
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Thu Mar 15, 2007 3:11 pm Post subject: |
|
|
Quote: | 9. cp -r * from one hd to the other |
somebody correct me if i'm wrong, but isn't this a bit foolish? won't ownership change to root:root on everything - which is bad - ?
from the cp manpage:
Quote: | -a, --archive
Preserve as much as possible of the structure and attributes of
the original files in the copy (but do not preserve directory
structure). Equivalent to -dpPR.
|
_________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
aych Guru
Joined: 20 May 2004 Posts: 304
|
Posted: Tue Mar 20, 2007 4:02 pm Post subject: |
|
|
sry. my bad. add a -p trigger to the cp command as well to preserve ownership and timestamps |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Tue Mar 20, 2007 5:03 pm Post subject: |
|
|
is your computer for the compilation running widows?
because you also have colinux... |
|
Back to top |
|
|
jt_ n00b
Joined: 15 Mar 2007 Posts: 61
|
Posted: Tue Mar 20, 2007 5:10 pm Post subject: |
|
|
aych wrote: | 1. create vmware system to your liking |
This is silly if you're running linux already. Chroot is the way to go, as mentioned above. |
|
Back to top |
|
|
aych Guru
Joined: 20 May 2004 Posts: 304
|
Posted: Wed Mar 21, 2007 5:38 pm Post subject: |
|
|
this was vmware on windows . i was too lazy to try out co linux. last time i did that i ran into some major difficulties but that was about 3 years back |
|
Back to top |
|
|
|