Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Best way to install new from your current environment?
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
FreakNigh
n00b
n00b


Joined: 20 Aug 2006
Posts: 38

PostPosted: Tue Jun 06, 2017 6:34 pm    Post subject: Best way to install new from your current environment? Reply with quote

What would be the best way to install a new gentoo build while running your current build? One idea I had was to shrink the current partion, install everything I could think of in a new partion then boot in to it, copy over the old data, destroy the old partion and increase the size of the new one. The other idea was to just build everything in to a chroot'ed folder then boot the machine from usb, copy the current tree into "gentoo_old" then copy out "gentoo_new" to the root and reboot.

Is there any other idea that would be better? Thanks
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Tue Jun 06, 2017 6:39 pm    Post subject: Reply with quote

Last time I did this I went with the first option, but I use btrfs so it only needed a mkdir/rmdir instead of partition juggling. If you have a spare disk that's probably a safer option than open-heart surgery on your partition table.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Tue Jun 06, 2017 6:42 pm    Post subject: Reply with quote

You do that exactly the same way you would with a livecd, except that you boot from hdd rather than cd. Say, extraxt stage 3 and follow the handbook :D

What problem do you want to solve/what is your use case?
Why do you actually want to reinstall?
What is your partition layout?
Back to top
View user's profile Send private message
FreakNigh
n00b
n00b


Joined: 20 Aug 2006
Posts: 38

PostPosted: Tue Jun 06, 2017 7:53 pm    Post subject: Reply with quote

szatox wrote:
What problem do you want to solve/what is your use case?
Why do you actually want to reinstall?
What is your partition layout?


I want to keep my current build working until the new one is near fully setup. I also want the old build to continue to exist until I think the new build is finished. Also I don't want to sit on a dead computer for 2 days while I setup the new build.

My build is like 2 or 3 years old and is riddled with perl upgrade requirements, old kernel, old video drivers, etc. The whole thing needs upgraded anyways.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7090
Location: Saint Amant, Acadiana

PostPosted: Tue Jun 06, 2017 7:59 pm    Post subject: Reply with quote

Quote:
The whole thing needs upgraded anyways.

And this is what Gentoo is really good at, no need to reinstall, ever.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Tue Jun 06, 2017 8:00 pm    Post subject: Reply with quote

FreakNigh,

You are missing a wonderful educational experience by not doing the upgrade but a rebuild will be much faster.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FreakNigh
n00b
n00b


Joined: 20 Aug 2006
Posts: 38

PostPosted: Tue Jun 06, 2017 8:43 pm    Post subject: Reply with quote

NeddySeagoon wrote:
FreakNigh,

You are missing a wonderful educational experience by not doing the upgrade but a rebuild will be much faster.


I did that twice before years ago. Ended up with a broken machine twice. Swore I'd never try to upgrade perl ever again.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Tue Jun 06, 2017 9:40 pm    Post subject: Reply with quote

Ok, so what 'bout partition layout?
Lsblk would be handy :)
Back to top
View user's profile Send private message
cal22cal
n00b
n00b


Joined: 19 Jan 2006
Posts: 36

PostPosted: Tue Jun 06, 2017 11:58 pm    Post subject: Reply with quote

I had done exactly what Ant P. did for gcc upgrade.
btrfs file system, created a testing subvol.
chroot to it, emerge sys world ... while still using the original env for normal works.
edit grub2 boot to the testing subvol. After everythings looking good, take snapshots
The new subvol would be the default boot env
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