Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A tip for quick reinstalls
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
plbe
l33t
l33t


Joined: 01 May 2004
Posts: 661

PostPosted: Mon Sep 06, 2004 2:19 pm    Post subject: A tip for quick reinstalls Reply with quote

I'm sure I'm not the first to come up with this idea but I thought I would share it anyway. I schemed this up to switch all my partitions over to reiser4 but it also works as a method to quickly throw a fresh install of gentoo on your system for those of you who like to break your gentoo :D so heres how I did it, you can change it to fit your needs....

1) Partition your system as normal just add an extra partition, I made a 2gb partition.

2) Mount your /boot swap and _extra_ partition only, don't worry about the rest

3) Install Gentoo as you normally would to the extra partition

4) After installation is complete you can mount your other partitions and copy over everything off the extra partition just be sure to update your fstab before rebooting, now everytime you want a clean install it will only take a matter of minutes. Hope this helps at least someone out there :lol:
Back to top
View user's profile Send private message
v0m1t
n00b
n00b


Joined: 20 Aug 2004
Posts: 11

PostPosted: Mon Sep 06, 2004 3:54 pm    Post subject: Reply with quote

So the extra patition would be like a restore partition. Not a bad idea.

How did you used this for switching over to reiser4 btw? Since moving a lot of data around 2 times doesnt sounds very efficient.

Edit: I had read somewhere that you shouldnt just copy data, you should rsync between two partitions. Since copying generally misses a few system files. Or so I read.
Back to top
View user's profile Send private message
plbe
l33t
l33t


Joined: 01 May 2004
Posts: 661

PostPosted: Mon Sep 06, 2004 4:06 pm    Post subject: Reply with quote

v0m1t wrote:
So the extra patition would be like a restore partition. Not a bad idea.

How did you used this for switching over to reiser4 btw? Since moving a lot of data around 2 times doesnt sounds very efficient.

Edit: I had read somewhere that you shouldnt just copy data, you should rsync between two partitions. Since copying generally misses a few system files. Or so I read.


I booted off my system on the extra partition and installed reiser4progs and formated the partitions (make sure you are using a kernel that supports reiser4 I chose mm-sources) and then booted off redeemans livecd v2 which supports reiser4 although it only has the older cvs version of reiser4progs which is why I formatted inside my system with the final version and mounted the partitions and copied everything over, by copy I mean I made a tar archive of my / and untarred it to my new system. But if you want to install reiser4 there is now a new livecd out that has reiser4 final on it just search the forums and you will come across it :D
Back to top
View user's profile Send private message
QuizMasta
n00b
n00b


Joined: 07 Mar 2004
Posts: 10

PostPosted: Mon Sep 06, 2004 10:10 pm    Post subject: Reply with quote

Another way would be to make a backup and place it on the extra partition. Take a look at this HOWTO from the Gentoo Wiki.
_________________
Dr. Frankenstein: Damn your eyes!!
Igor: Too late!
Back to top
View user's profile Send private message
plbe
l33t
l33t


Joined: 01 May 2004
Posts: 661

PostPosted: Tue Sep 07, 2004 3:35 am    Post subject: Reply with quote

QuizMasta wrote:
Another way would be to make a backup and place it on the extra partition. Take a look at this HOWTO from the Gentoo Wiki.


That will work too :D
Back to top
View user's profile Send private message
ag_x
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 142
Location: Self Sarkarm.

PostPosted: Tue Sep 07, 2004 7:02 am    Post subject: Reply with quote

I use the 2 partitions scheme from the time i first installed gentoo some months before.
I took this idea from a similar method in windows(read here about xxclone).
He is the same author of the most powerfull command IMHO in the computers history.The famous xxcopy command with almost 200 switches and 200 or more pages of documentation.
You can use the other partition with the same way as a live cd,untaring a tarball or chrooting etc...
All you need is 3-4 gig of space or might less and you are done.

Last day i played with this a little,ubnormally. :D
I was in my main partition,hda3.
I already had a backup tarball in a external usb drive.
Then i chrooted to my backup partition hda6 in my case(hda5 is the portage partition and hda7 is the home partition) i reformated the hda3 and untarred the backup tarball again in hda3,while i had a internet connection, i was doing my daily jobs etc..The only care is not to mess the fstab or the mount points,other than that there isnt a single problem.
In 15 minutes i had back my main system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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