Kernel 2.6.22 with Debian Etch Backports
5 febbraio 2008, 7:22 Debian , Kernel , Tips & Tricks February 5, 2008, 7:22
Working daily with Debian Etch: I use both with great satisfaction on corporate servers and on personal notebook (the same one with which I write at this time).
I am a staunch defender of the Stable branch of Debian - and any other operating system - also because I make a professional and I can not afford the luxury of wasting time, or - worse - to undermine the stability of a system to test the last trinket.
On my notebook, though, I often presents the need to exploit a number of features that are absent or incomplete in kernel 2.6.18, one above all the possibility of using NTFS-3G driver to better manage the NTFS partitions.
Many point out the little reassuring alert to boot a Debian Etch on which you have installed these drivers:
WARNING: Deficient Linux kernel detected. Some driver features are
not available (swap file on NTFS, boot from NTFS by LILO), and
unmount is not safe unless it's made sure the ntfs-3g process
naturally terminates after calling 'umount'. If you wish this
message to disappear then you should upgrade to at least kernel
version 2.6.20, or request help from your distribution to fix
the kernel problem. The below web page has more information:
http://ntfs-3g.org/support.html#fuse26
For this reason I rely on you, and use the Debian Backports - strictly only for test and development environments - a glistening kernel 2.6.22!
The basic premise is that it has added to its Debian Backports repository. If you have not already done so, proceed as follows:
- login as root user
-
edit the file / etc / apt / sources.list:
# vim /etc/apt/sources.list -
add the following:
deb http://www.backports.org/debian/ etch-backports main contrib non-free
deb-src http://www.backports.org/debian/ etch-backports main contrib non-free -
import the gpg keys:
# gpg --keyserver subkeys.pgp.net --recv 16BA136C
# gpg --armor --export 16BA136C | apt-key add -
This done, pua proceed to download the source of the new kernel and all packages necessary for its completion:
# apt-get update
# apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev
We move then in source directory and unpack the archive containing the kernel:
# cd /usr/src
# tar xjf linux-2.6.22-3.tar.bz2
# ln -s linux-2.6.22-3 linux
# cd /usr/src/linux# cd /usr/src now perform the usual operations:
# tar xjf linux-2.6.22-3.tar.bz2
# ln -s linux-2.6.22-3 linux
# cd /usr/src/linux
# make clean && make mrproper
# cp /boot/config-`uname -r` ./.config
# make menuconfig
We prepare the system for compiling and we start building packages. Deb:
# make-kpkg clean
# fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
PLEASE NOTE: This may take several hours. It all depends on the ability to calculate the machine you're working.
There is nothing else to do than installing the two packages. Deb thus obtained:
# dpkg -i linux-image-2.6.22-custom_2.6.22-custom-10.00.Custom_i386.deb
# dpkg -i linux-headers-2.6.22-custom_2.6.22-custom-10.00.Custom_i386.deb# dpkg -i linux-image-2.6.22-custom_2.6.22-custom-10.00.Custom_i386.deb And make the `` reboot the machine:
# dpkg -i linux-headers-2.6.22-custom_2.6.22-custom-10.00.Custom_i386.deb
# shutdown -r now















May 20, 2008 at 21:11
hello,
I do exactly the same your using debian etch and I am fine. I though I need to use ntfs-3g and continuing complaints to boot ...
Your mini-guide is perfectly clear. I ask, however, two small clarifications:
1. This is essentially to install a new kernel without an edit compilations ad hoc? or are you implying the steps related to the compilation? I am not in fact now I can compile a kernel):
2. excuse the ignorance, but exactly how do you get the new kernel and then go to install? download it via apt?
May 20, 2008 at 22:42
Hello Peter,
ntfs-3g is currently the best way to access NTFS partitions in writing. Unfortunately ntfs-3g requires a version of the Linux kernel to 2.6.20 or greater, while the 2.6.18 for Etch will always know the reasons.
Then:
1) just install an updated version of the kernel, it is NOT necessary to recompile! I recompile just because I need special features (such as PREEMPT, for example) but for the vast majority of situations do not need to recompile. If we then want to do for didactic reasons I will be happy to suggest some good driving.
2) the new kernel will simply get with apt, after adding the repository http://www.backports.org as I wrote in Steps 1 ~ 4
Hope that help ... Debian rulez!
May 20, 2008 at 23:06
hello,
thanks for the quick response!
to have a standard kernel does not compile ad hoc would be sufficient so as not to give:
# Make menuconfig
and the rest follow the guide?
Could you advise me to learn still guides the configuration options of the kernel?
Thanks and sorry insistence, is just that I switched to debian - linux and the things I appreciate most is the collaboration and the fact that it does not learn new things!
May 21, 2008 at 12:34
No, no, make menuconfig is used to configure the Linux kernel sources before compiling them.
The command you need in reality is as follows:
# apt-get -t etch-backports install linux-image-2.6.22-3-686On the first reboot grub will introduce the new kernel ready for use.
As for the guides to compile the kernel there is a flood. I will recommend this, since you're at the beginning, because it explains everything step by step:
http://guide.debianizzati.org/index.php/Debian_Kernel_Howto
Once you have compiled your first kernel, let me know how you found
May 21, 2008 at 17:40
Thanks for the guide I followed and implemented smoothly.
At least until you need to install ntfs-3g because there synaptic tells me that "Depends: libfuse2 (> = 2.6)" and I'm a 2.5.3-4.4.
What should I do?
May 21, 2008 at 18:10
Hello Luke, welcome to you too.
Right now I'm a customer, but I can say that the fly should be satisfied with this:
# apt-get -t etch-backports install libfuse2Try it, you should replace with version 2.7.1-2 2.5.3-4.4 libfuse ~ bpo40 +1, according to what I see on the backports repository .
Let me know too! Hello.
May 21, 2008 at 19:46
All right, thank you. I added to / etc / fstab line
/ Dev/hda2 / mnt / data ntfs-3g silent, umask = 0, locale = it_IT.utf8 0 0
I rebooted and it worked perfectly.
Too bad the laptop with the new kernel is dumb but I hope to find a solution to this. Maybe reinstall alsa and see
June 16th, 2008 at 16:30
[...] Already described in another post how you can benefit from the system of backports to update their programs [...]
July 10th, 2008 at 15:14
Congratulations on your driving, you have a good way to explain the steps to follow. I just put in action fakeroot so I have a bit of time to exploit it and I wanted to ask you something. I followed your instructions and if / usr / src / linux "I make the usual operations" (as you say, hehe!) Gives me a lot of problems and will not let me go. I read elsewhere that is not convenient to do these operations in / usr / src and after moving the folder in linux Desktop instead it works (although I do not know to what extent because as I said before are still being created packages) . I wanted to ask where does this thing? I state that I was not able to enable the backports (among other very strange thing because I tried on a thousand other sites where they said to do the same thing but I can not enable the gpg key ...) and then I downloaded the kernel from the network, even if I do not know if is it about this thing but if you could help me understand why I can not enable repository am I would be very grateful!
July 11th, 2008 at 6:38
Hola, what do you mean by "I downloaded the kernel from the network"? Have you downloaded the version of Debian patched kernel from kernel.org, or did you get? Let me know and thanks for the compliments