Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 07-24-2004, 05:21 PM   #1
Registered: Jul 2003
Location: Vancouver
Posts: 76

Rep: Reputation: 16
kernel 2.6.7 install and root partition

I installed Debian Sarge using the downloaded installer on cd. I accepted the defaults for creating partitions, which seemed fine (most of the space is on a partition devoted to /home). But now that I want to upgrade the kernel, my root partition isn't big enough (it's only about 140M). The kernel compile hangs because it uses up all the space on the partition when it makes the modules.

It seems I have two choices:

1. Resize the root partition to make it larger, taking some space from /home, which has 80 G free. I assume I could do this with parted, booting from a cd like Knoppix or Kanotix (both of which I have).

2. Move the kernel install onto the home partition -- but I'm not sure if I can do this.

In theory, I could also reconfigure the entire disk from scratch, copying my home folders to a network backup, reinstalling Debian, then copying the home folders back, but this seems like overkill.

Any ideas?

Old 07-25-2004, 12:32 PM   #2
Senior Member
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 52

either way IF it works, it's allright, it's up to you.

usually in this cases, imho, it's better to do it right from scratch. i would reinstall and this time do a manual partition.

i have a 40gb hd with a PII/266/128RAM:

/root 10 gb ext3 Primary Boot flag
swap 400mb Primary
/home 3gb ext3 Logical
/var 5gb ext3 Logical
/tmp 5gb ext3 Logical
/usr rest ext3 Logical

Last edited by macondo; 07-25-2004 at 12:33 PM.
Old 07-27-2004, 05:08 AM   #3
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
Why would it be better to do it from scratch? It's much more work... The benefit is you can organise all partitions like you want them.

If you are going to use parted, backup everything of course. Resizing is always a risky thing to do.

But that's just my opinion... But you were asking for it, right?

I don't know what you mean with "move the kernel install onto the home partition" ? You cannot install modules in /home...
Old 07-27-2004, 12:33 PM   #4
Registered: Jul 2003
Location: Vancouver
Posts: 76

Original Poster
Rep: Reputation: 16

Yes, it is much more work to reinstall everything, but eventually that's what I did. I couldn't get parted to do precisely what I wanted (partitioning seems to be one of few weak points in Linux), so I just backed everything up, reinstalled, and then restored my home directories. I put everything on one big partition, which I know is not recommended, but it gives me the most flexibility in terms of installing things.

Everything is working well now, and I have the latest 2.6.7 customized kernel up and running (except for the boot splash, but that's not a big deal).

What I meant by "move the kernel install onto the home partition" is that I have read it's possible to have the kernel elsewhere than normal -- by way of symlinks, I think -- and I originally thought that i might be able to symlink the /modules directory and the kernel itself over to a directory beneath my /home. But this seemed way too complicated, in the end.

Thanks for the suggestions.


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
resize root partition after install Phyrexicaid SUSE / openSUSE 2 08-31-2005 04:38 AM
New Kernel Root Partition Problem nullandvoid Linux - Software 6 05-17-2005 11:37 PM
configuring kernel, booting to root partition warinthepocket Linux - General 2 02-06-2005 01:43 AM
Install boot loader in ROOT partition problem Garrett_80 Linux - Software 8 12-05-2004 05:20 AM
You have not defined root partition .. RH9 install error poison5151 Linux - Software 3 01-28-2004 08:05 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:54 AM.

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