Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install and Clone
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Fri Mar 02, 2007 12:33 am    Post subject: Install and Clone Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Mar 02, 2007 2:26 am    Post subject: Reply with quote

I don't know....

Just try it and post the result :)
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Fri Mar 02, 2007 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Sun Mar 04, 2007 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Sun Mar 04, 2007 10:42 pm    Post subject: Reply with quote

what would be the most effective way of 'cloning' just zipping everything? or use a utility like ghost?
Back to top
View user's profile Send private message
Kaste
Guru
Guru


Joined: 21 Dec 2005
Posts: 546
Location: /home Sweet /home

PostPosted: Mon Mar 05, 2007 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Tue Mar 06, 2007 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
piotrwoj
n00b
n00b


Joined: 29 Sep 2006
Posts: 9

PostPosted: Wed Mar 07, 2007 12:27 pm    Post subject: Re: Install and Clone Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Mar 07, 2007 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Wed Mar 14, 2007 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Mar 15, 2007 3:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Tue Mar 20, 2007 4:02 pm    Post subject: Reply with quote

sry. my bad. add a -p trigger to the cp command as well to preserve ownership and timestamps
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Tue Mar 20, 2007 5:03 pm    Post subject: Reply with quote

is your computer for the compilation running widows?
because you also have colinux...
Back to top
View user's profile Send private message
jt_
n00b
n00b


Joined: 15 Mar 2007
Posts: 61

PostPosted: Tue Mar 20, 2007 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
aych
Guru
Guru


Joined: 20 May 2004
Posts: 304

PostPosted: Wed Mar 21, 2007 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum