LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-03-2004, 02:00 AM   #1
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
kernel / partition question


I have a question about kernels...assuming I was going to reload linux with a different partitioning scheme, is there a way to back up the kernel so that after I finish installing it, I can just copy it back over and start using it without having to recompile it with the same options? I know where the kernel is located, I'm just wondering what all has to be backed up aside from the kernel itself (i.e. modules, etc) or if it would even work.

As a side note, does anyone have a recommended partitioning scheme for a 160GB drive? I'll probably save 40-60GB for Winblows, and I'm the only user.

Thanks in advance,
Jeff
 
Old 07-03-2004, 02:44 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
back up /boot/vmlinuz, /boot/config and /boot/System.map
and backup /lib/modules/2.?.?/
Are you installing to a new hard drive or repartitioning your existing hard drive. if it's a new drive you may be able to 'migrate' your installation to new partitions and not lose anything at all.
 
Old 07-03-2004, 02:47 AM   #3
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
It's to the same drive...I'm mainly reinstalling for 2 reasons...1) I want to have seperate partitions for /home and where I plan on installing software (whether it be /usr/local or /opt...haven't decided) so that I can salvage them when I upgrade, etc (because I usually do fresh installs when I upgrade) and 2) To do a few small changes to the installation.
 
Old 07-03-2004, 05:03 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
What is your current partition configuration?
 
Old 07-03-2004, 05:09 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would backup the kernel source tree (/usr/src/linux) and after new install, I just copy the backup to /usr/src and redo make modules_install and make from the backup kernel directory, then copy System.map and bzImage to /boot, the modules and kernel don't need to be recompiled if you don't make mrproper.
 
Old 07-03-2004, 04:29 PM   #6
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by gnashley
What is your current partition configuration?
Currently, the only partitions I have are:

/boot - 32 MB
swap - 512 MB
/ - 100 GB



When I installed, I just needed to get a system up and running as fast as possible, so didn't bother to take the time to plan out the partition scheme.
 
Old 07-04-2004, 01:25 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You could reate a new partition in the empty space and 'migrate' your installation there. Then delete that 100GB and create a couple of partitions there for win and other stuff. It's easy to change a partitions type but if you delete one in the middle and try to split it up, the drive numbers will get scrambled. But it can be worked out.
Maybe easier: Your /boot and /swap looks okay to start. If what you want to back up will fit into 512MB, then change your swap partition into a temporary storage area and after redoing the later partitions you can movce this adata back and change the partition back to swap.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Partition question Coopa Linux - Newbie 1 11-16-2005 04:17 PM
partition question Ortanith Linux - Newbie 1 04-10-2005 05:46 PM
partition question stonecrest Linux - Newbie 5 09-21-2004 09:00 AM
Question about new partition. jimmmac Linux - General 3 07-05-2003 07:32 AM
Partition Question DarkGremio Linux - Newbie 6 06-15-2003 03:18 PM

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

All times are GMT -5. The time now is 05:38 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