View previous topic :: View next topic |
Author |
Message |
cgmd Veteran


Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Tue Feb 20, 2007 4:25 pm Post subject: [Solved] Why save previous gentoo sources? |
|
|
Hi, all...
With somewhat limited space on my laptop HD, I'm always seeking ways to eliminate unnecessary stuff.
My questions pertains to /usr/src/ and the number of back versions of gentoo-sourses one should keep...
If the current kernel works, is it advisable to also keep prior versions of gentoo-sources in /usr/src/?
Thanks! _________________ "Primum non nocere" ---Galen
Last edited by cgmd on Wed Feb 21, 2007 3:38 am; edited 1 time in total |
|
Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Feb 20, 2007 4:30 pm Post subject: |
|
|
Backups are always nice, for when the new version doesn't work or even boot up
Here's my /boot/grub/menu.lst
Code: | # Boot automatically
timeout 8
# By default, boot the first entry
#default 0
default saved
# To boot the first entry next time (put in /etc/conf.d/local.start), run:
# grub-set-default 0
# See http://gentoo-wiki.com/HOWTO_Remote_Kernel_Upgrade
# Fallback to the second entry
fallback 1
# http://forums.gentoo.org/viewtopic-p-3598372.html
splashimage=(hd0,0)/boot/grub/matrix.xpm.gz
# http://gentoo-wiki.com/HOWTO_Splash_image_in_GRUB
# convert picture.jpg -resize 640x480 -colors 14 ImageName.xpm
# gzip ImageName.xpm
# mv ImageName.xpm.gz /boot/grub/
# The mouse is noticeably smoother with polling at 4 rather than 8
# http://gentoo-wiki.com/TIP_Change_mouse_hz
title Gentoo
root (hd0,0)
kernel /boot/kernel root=/dev/sda1 panic=30 usbhid.mousepoll=4
#initrd /initrd.img
savedefault fallback
# Safe (fallback)
title Gentoo Safe
root (hd0,0)
kernel /boot/kernel-safe root=/dev/sda1 panic=30 usbhid.mousepoll=4
savedefault
# Previous
title Gentoo Previous
root (hd0,0)
kernel /boot/kernel-prev root=/dev/sda1 panic=30 usbhid.mousepoll=4
savedefault
# Windows - http://gentoo-wiki.com/HOWTO_Dual_boot
title Windows XP
rootnoverify (hd1,0) # Windows is secondary drive, Linux is primary
makeactive
chainloader +1
map (hd0) (hd1) # Tell the first hard drive to pretend to be the second
map (hd1) (hd0) # Tell the second hard drive to pretend to be the first
# emerge memtest86+
title Memtest86Plus
root (hd0,0)
kernel /boot/memtest86plus/memtest.bin |
|
|
Back to top |
|
 |
StringCheesian l33t

Joined: 21 Oct 2003 Posts: 887
|
Posted: Tue Feb 20, 2007 5:06 pm Post subject: |
|
|
If you want to keep old kernel sources, you can still save some space by executing "make clean". You could tarball them.
I'm pretty sure all you need for a backup kernel is modules in /lib/modules and the kernel itself in /boot, and I'm pretty sure you don't need old kernel source code. So it should be safe to unmerge older versions.
Last edited by StringCheesian on Tue Feb 20, 2007 5:08 pm; edited 1 time in total |
|
Back to top |
|
 |
Bobnoxous Apprentice


Joined: 03 May 2005 Posts: 240
|
Posted: Tue Feb 20, 2007 5:06 pm Post subject: |
|
|
If you have a kernel that's working, I don't see a reason to keep old versions. Give it a couple weeks and try to make it a point to use the apps you care about. If there's not a problem, blow it away.
In the unlikely event that you need a previous kernel version, you can get the sources for a few builds back. If you're really paranoid, save the .config so you don't need to redo your configuration.
Make sure you search the forums for how to save HD space. I run out of space on my laptop too. Removing the portage source files saves a lot of space. _________________ "The problem with the world is that fools and fanatics are always so sure of themselves while wiser people are so full of doubt."
- Bertrand Russell |
|
Back to top |
|
 |
cgmd Veteran


Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Tue Feb 20, 2007 5:23 pm Post subject: |
|
|
PaulBredbury wrote: Quote: | Backups are always nice, for when the new version doesn't work or even boot up |
I must agree, wholeheartedly, with that statement... but aren't those prior kernels locate in /boot/, and aren't they operational without the corresponding sources located in /usr/src?
Or am I wrong with that thinking?
Thanks! _________________ "Primum non nocere" ---Galen |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Feb 20, 2007 5:58 pm Post subject: |
|
|
I always have my current kernel in /boot and in /usr/src and also I have only 1 backup kernel that can be found in /boot and /usr/src also.
For exemple, my current kernel is 2.6.19-Gentoo-r5 and I have 2.6.18-Gentoo-r6 also in case of a crash. |
|
Back to top |
|
 |
dmartinsca Guru

Joined: 09 Dec 2005 Posts: 303 Location: Ontario, Canada
|
Posted: Tue Feb 20, 2007 6:10 pm Post subject: |
|
|
You don't need the sources in /usr/src for a kernel in /boot to work. |
|
Back to top |
|
 |
cgmd Veteran


Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Tue Feb 20, 2007 8:08 pm Post subject: |
|
|
dmartinsca...
Thank you for confirming that!  _________________ "Primum non nocere" ---Galen |
|
Back to top |
|
 |
|