LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-11-2008, 03:44 AM   #1
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Rep: Reputation: Disabled
How do I restore /usr/src etc.?


I changed my kernel using the instructions in "Kernel Compile Guide for 2.6.0" and everything went ok.

I have since changed my mind and wanted to reverse those changes. However I think I've made a mistake and what I would like to do is simply restore everything regarding the kernel source back to its original state before any changes whatsoever had been made, i.e. as it was just after installation of the system.

So I ran "install-packages" from the "slackware/k" directory which I downloaded from a mirror.

Has that restored everything back to normal?

I realise I will have to recompile the kernel, but I was worried about the source, include headers and anything else that may have been changed by my fumbling.
 
Old 09-11-2008, 08:20 AM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
No need to do all that. Simply reconfiguring and recompiling the kernel will take care of the headers and such.
 
Old 09-11-2008, 03:46 PM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
In the future, to keep from doing that, do not build kernels in /usr/src.

This Kernel Rebuild Guide will show you a more excellent way.
 
Old 09-12-2008, 04:07 AM   #4
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Thanks for that link to the Kernel Rebuild Guide Bruce, I will do it that way in the future.

I have installed 12.1 again on another partition - can I copy over that new "virgin" /boot directory to replace the /boot directory on my live partition?

I understand that I will have to run lilo afterwards.
 
Old 09-12-2008, 06:32 AM   #5
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Copied over /boot and ran lilo. No problems

I'm back to normal now and will do kernel configuration changes in a more orderly manner from now on.
 
Old 09-12-2008, 09:10 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
A lot of the time I use rsync as root to copy stuff. It will
check the source and destination, and output any errors
to stdout; so your copied data is identical -- i.e.:
Code:
rsync -va /boot /dev/sda2/boot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
/usr/src SeattleSux Linux - Newbie 3 12-23-2004 10:29 PM
/usr/src/??? iain.ross Linux - Software 5 08-24-2004 02:18 PM
/usr/src ??? gibbylinks Red Hat 1 10-24-2003 03:05 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration