Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reinstall crusty machine
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
brundage
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 107

PostPosted: Mon Dec 24, 2018 11:45 pm    Post subject: Reinstall crusty machine Reply with quote

My laptop has been running gentoo for about 5 years now. Normally I keep up with the @world, but I haven't updated my system in about a year. I'm dealing with a build of about 460 packages and a pile of slot conflicts. So I think it will be easier to preserve important configurations and just do a fresh install.

I'm building a list of what to save before I nuke the hard drive. What should I keep?

  • /home
  • /root
  • kernel config
  • world file
  • make.conf
  • pacakge.mask
  • package.use
  • repos.conf
  • /etc/rc.conf
  • /etc/cron*
  • /etc/conf.d/modules
  • fstab
  • /etc/X11/xorg.conf.d/50-synaptics.conf & keyboard.conf (Dvorak for lyfe)
  • NetworkManager database?
  • I'll just tar up /etc just in case

I'm using the default/linux/amd64/17.0/hardened profile and am on kernel 4.9.76-gentoo-r1
Code:
0 fatty:0.0 /etc # cat /var/lib/portage/world
app-admin/logrotate
app-admin/syslog-ng
app-arch/rar
app-arch/unrar
app-cdr/dvd+rw-tools
app-editors/vim
app-misc/ddate
app-misc/screen
app-portage/cpuid2cpuflags
app-portage/gentoolkit
app-portage/repoman
app-shells/zsh
app-text/antiword
app-text/pdftk
app-text/zathura-pdf-poppler
app-text/zathura-ps
dev-lang/python
dev-libs/liblinear
dev-util/android-tools
dev-util/strace
dev-vcs/mercurial
games-fps/freedoom
games-roguelike/nethack
games-util/steam-meta
gnome-extra/nm-applet
mail-mta/ssmtp
media-fonts/arphicfonts
media-fonts/baekmuk-fonts
media-fonts/font-arabic-misc
media-fonts/font-isas-misc
media-fonts/font-jis-misc
media-fonts/font-misc-cyrillic
media-fonts/kochi-substitute
media-gfx/exif
media-gfx/feh
media-gfx/gimp
media-gfx/inkscape
media-libs/libsdl2
media-libs/libtxc_dxtn
media-sound/pavucontrol
media-sound/pulseaudio
media-sound/spotify
media-video/recordmydesktop
media-video/xine-ui
net-analyzer/netcat
net-analyzer/nmap
net-analyzer/tcpdump
net-analyzer/traceroute
net-dns/bind-tools
net-fs/autofs
net-fs/nfs-utils
net-ftp/tftp-hpa
net-im/slack-bin
net-misc/dhcpcd
net-misc/freerdp
net-misc/grdesktop
net-misc/hans
net-misc/republic-anywhere
net-misc/telnet-bsd
net-misc/whois
net-p2p/torrentinfo
net-wireless/iw
net-wireless/kismet
net-wireless/wireless-tools
net-wireless/wpa_supplicant
sys-apps/hdparm
sys-apps/lshw
sys-apps/mlocate
sys-apps/pciutils
sys-apps/portage
sys-apps/usbutils
sys-boot/grub
sys-fs/dosfstools
sys-fs/hfsutils
sys-fs/mtpfs
sys-fs/udftools
sys-kernel/gentoo-sources
sys-kernel/linux-firmware
sys-process/cronie
virtual/cdrtools
virtual/jre
www-client/firefox
x11-apps/mesa-progs
x11-base/xorg-drivers
x11-terms/xfce4-terminal
xfce-base/xfce4-meta
xfce-extra/thunar-volman
xfce-extra/xfce4-battery-plugin
xfce-extra/xfce4-power-manager
xfce-extra/xfce4-pulseaudio-plugin
xfce-extra/xfce4-quicklauncher-plugin
xfce-extra/xfce4-screenshooter
xfce-extra/xfce4-sensors-plugin
xfce-extra/xfce4-timer-plugin
xfce-extra/xfce4-verve-plugin
xfce-extra/xfce4-xkb-plugin
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Tue Dec 25, 2018 6:10 pm    Post subject: Reply with quote

1. /home
2. /root
3. kernel config
4. world file
5. make.conf
6. package.mask
7. package.use
8. repos.conf
9. /etc/rc.conf
10. /etc/cron*
11. /etc/conf.d/modules
12. fstab
13. /etc/X11/xorg.conf.d/50-synaptics.conf & keyboard.conf (Dvorak for lyfe)
14. NetworkManager database?
15 I'll just tar up /etc just in case

Keep the following
1. yes
2. maybe
3.Keep that, but the newer kernel has some additional config flags
4. maybe
5. yes
6. yes
7. yes
8. yes
9. yes
10. yes
11. yes
12. yes
13. yes
14. ?
15. ?
Back to top
View user's profile Send private message
brundage
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 107

PostPosted: Wed Dec 26, 2018 7:00 am    Post subject: Reply with quote

Keruskerfuerst wrote:
1. /home
2. /root
3. kernel config
4. world file
5. make.conf
6. package.mask
7. package.use
8. repos.conf
9. /etc/rc.conf
10. /etc/cron*
11. /etc/conf.d/modules
12. fstab
13. /etc/X11/xorg.conf.d/50-synaptics.conf & keyboard.conf (Dvorak for lyfe)
14. NetworkManager database?
15 I'll just tar up /etc just in case

Keep the following
1. yes
2. maybe
3.Keep that, but the newer kernel has some additional config flags
4. maybe
5. yes
6. yes
7. yes
8. yes
9. yes
10. yes
11. yes
12. yes
13. yes
14. ?
15. ?


Thanks.

I'm keeping the world file to remind me what packages I installed and /root because it has a few custom dot files.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Wed Dec 26, 2018 7:17 am    Post subject: Reply with quote

If I where you I would try to emerge -e world first and if that fails try emerge -e system. Chances are that it will get you a reasonable state if not fully updated. It should be okay with only a year out of date. It will be faster that reinstalling :)

If that fails or you are serous about the pain, keep everything on an external backup. I'd use resync image that you can pull whatever you like whenever you like to assist the process.

You will definitely want /home since that is your data, and /var/lib/portage/world. /etc/ is your configs so grabing everything there may not be a bad thing, but at least /etc/portage

Everything else should be easily redone. Skip the kernel config and just start over. After a year that config is basically useless and will doubtlessly lead to disappointment.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Dec 26, 2018 12:21 pm    Post subject: Reply with quote

brundage,

You seem to have some world file pollution.
Code:
dev-libs/liblinear
media-libs/libsdl2
media-libs/libtxc_dxtn
virtual/cdrtools
virtual/jre

libraries are by definition, dependencies of other things, so should not be in world.
virtuals are special too. They are used to define dependencies when there are several packages that can satisfy the dependency.
The first named in the virtual is used unless you already have another package in the list installed.

Only a year old? Try
Code:
emerge -uDUav --with-bdeps=y --keep-going --backtrack=50

You may have python and perl problems but they can be fixed.

That command probably won't work but the error messages will be useful.

For reinstalling, keep /etc/portage/* to use as a guide and your world file. That covers your portage controlled install.
Keep /home, that's your user data. Keep /root as that's the root users home.

You will learn more from the update than the reinstall but its your install.
_________________
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
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Thu Jan 03, 2019 2:09 pm    Post subject: Re: Reinstall crusty machine Reply with quote

brundage wrote:
I'm building a list of what to save before I nuke the hard drive. What should I keep?

If you have a sufficiently large external disk to hand, the best is to make a copy of the whole system tree. And then you'll be able to restore all that you need, even what you didn't think about.

Otherwise :

  • /home : of course.
  • /root : why not...
  • kernel config : yes. Lots of time saved. :wink:
  • world file : yes, but the whole /var is better.
  • make.conf : yes, but the whole /etc/portage is better. And the whole /etc even more.
  • (...)
  • NetworkManager database? Do you have such a complex network configuration ?
  • (...)


rsync is your friend.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Thu Jan 03, 2019 4:43 pm    Post subject: Reply with quote

If you are going to reinstall and your drive is five years old or more, I'd like to point out that SATA SSD's have dropped considerably in price over the last six months, probably due to NVME competition. If you can, buy one and use your entire old drive as backup. This assumes that you either have a second slot in the laptop or have a networked computer where you can install the laptop drive as an extra drive. I bought a 500 GB SATA HDD for $60 to replace a 250GB 10,000 RPM hard drive. I had to buy a $5 adapter as well since the target is a desktop with 3.5" drive slots, but no adapter is needed for a laptop. More shock and vibration protection too.

I don't remember the details, but a few years ago, I updated an old install by downloading a new stage 3 and selectively extracting from it and then doing an "emerge -e @world". I considered that radical, but no need to wipe your drive and repartition unless you want to repartition for another reason like removing malware or switching from BIOS to EFI (I'm doing that with the 500GB SSD, the HDD will go on the shelf as backup or possibly stay in the computer as backup).

EDIT: IIRC, Neddyseagoon walked me through the selective extraction process. Thanks, Neddy!
Back to top
View user's profile Send private message
brundage
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 107

PostPosted: Sun Jun 09, 2019 8:32 pm    Post subject: Reply with quote

Tony0945 wrote:
If you are going to reinstall and your drive is five years old or more, I'd like to point out that SATA SSD's have dropped considerably in price over the last six months, probably due to NVME competition. If you can, buy one and use your entire old drive as backup.


Yah, I think I'll go this route. Thanks for the suggestion.
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