Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help to Create stage after installation [SOLVED]
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
Spity
n00b
n00b


Joined: 02 Sep 2016
Posts: 20

PostPosted: Fri Jan 04, 2019 1:53 pm    Post subject: help to Create stage after installation [SOLVED] Reply with quote

I have finished a gentoo installation and would like to create a stage 4 or 5 to be able to use it as a restore copy. How do I do it? More than anything to save-time with large packages like llvm. gtk...

Last edited by Spity on Mon Jan 07, 2019 10:23 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 04, 2019 2:23 pm    Post subject: Reply with quote

Spity,

Boot from a liveCD. Mount your partitions read only at /mnt/gentoo. Just your HDD partitions.
make a tarball of /mnt/gentoo.
_________________
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
Spity
n00b
n00b


Joined: 02 Sep 2016
Posts: 20

PostPosted: Fri Jan 04, 2019 2:34 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Spity,

Boot from a liveCD. Mount your partitions read only at /mnt/gentoo. Just your HDD partitions.
make a tarball of /mnt/gentoo.



Could you show me the commands please?


Last edited by Spity on Mon Jan 07, 2019 10:24 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Fri Jan 04, 2019 2:35 pm    Post subject: Reply with quote

You may want to look at FEATURES="buildpkg".

Edit:
Quote:
Could you show me the commands please? I'm new to this

Everybody is expected to do their homework.
_________________
My Gentoo installation notes.
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: 54216
Location: 56N 3W

PostPosted: Fri Jan 04, 2019 3:23 pm    Post subject: Reply with quote

Spity,

The commands vary from install to install. The handbook mounting partitions is a guide. I would have posted a link but I can't reach the Wiki right now.
Do not make filesystems, Do not mount /proc /sys or /dev Just mount your HDD partitions.

The tar command will be something like
Code:
tar cf </somewhere/there/is/space.tar> /mnt/gentoo

Adding the compression of your choice is left as an exercise for the reader.

The steps for creating your own stage4 have been posted to the forums several times.

You put the commands together and post them here before you actually do it.
They will not be new to you, except the final tar.
_________________
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
Jaglover
Watchman
Watchman


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

PostPosted: Fri Jan 04, 2019 3:30 pm    Post subject: Reply with quote

tar and mount are both basic commands. One must have clear idea what he/she is doing, that's all. Posting detailed commands for someone to follow them blindly is not doing any good IMHO.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Fri Jan 04, 2019 4:12 pm    Post subject: Reply with quote

Spity, read this.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
Spity
n00b
n00b


Joined: 02 Sep 2016
Posts: 20

PostPosted: Mon Jan 07, 2019 10:19 am    Post subject: Reply with quote

Thank you all for responding. Here I found my solution.

https://github.com/TheChymera/mkstage4
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