PDA

View Full Version : Guide to installing Knoppix 3.4ct with 2.6 kernel



Hayabusa
02-15-2004, 11:43 AM
I sucessfully installed to HD the 3.4 ct version with the 2.6 kernel thanks largely to a thread in the "News" section and the wisdom and kindness of Stephen and champagnemojo who posted tips on how to get it to install. As somewhat of a novice myself, I felt it would be nice to put together an installation guide for how to get a HD install of Knoppix 3.4ct up and running with the 2.6 kernel, so here goes:


boot the Knoppix Live CD (as the keyboard layout is German by default you'll need to use shift and 0 to get the = sign).



knoppix26 lang=us


once in KDE on the live CD open konsole and issue the following commands:


wget http://debian.tu-bs.de/knoppix/installer/knx-templates-0.39.tgz
cp /usr/sbin/knoppix-installer .
sudo ./knoppix-installer


this will install the needed missing files, as well it will start the knoppix installation to your HD

(I used /dev/hda3 so that's the reference point for example i'll use from here on out, please subsititute /dev/hda3 for whatever slice or HD you used). After Knoppix has been sucessfully installed to your HD you'll need to mount the drive you installed. and to save yourself a lot of headache later it's a good idea to download module-init-tools at this point too.



sudo mount /dev/hda3 /mnt/hda3
cd /mnt/hda3/boot
sudo wget http://ftp.us.debian.org/debian/pool/main/m/module-init-tools/module-init-tools_3.0-pre9-1_i386.deb


the sudo wget command with the URL following it is all on the same line, not two seperate lines, fyi.

now that you've got that downloaded, just leave it there, you'll come back to install it later. As for now lilo on your installation drive needs to be updated.



sudo chroot /mnt/hda3/ /sbin/lilo -v


once this has updated you're ready to reboot and take the CD, go ahead and do this.

At lilo's boot menu select LinuxOLD (if you boot into linux you get kernel panic errors). Don't be surprised like I was when LinuxOLD boots up and your mouse/network card, etc might not be functioning. We're just botting into linuxOLD to do some text based maintence work. When KDE starts loading go ahead and kill it and drop to console:



Cntrl-Alt-F1
(log on)
su
Password:
cd /boot
mkinitrd -o linux-2.6.1.gz


this will make an initrd image that WON'T cause a kernel panic when you try to boot into it normally.

now it's time to add this entry to /etc/lilo.conf. Update /etc/lilo.conf as follows (I used vi but feel free to use the editor of your choice)



vi /etc/lilo.conf

you'll come to a section looking something like this:


image=/boot/vmlinuz-2.6.1
label=Linux
initrd=/boot/initrd.gz


replace the last line (initrd=/boot/initrd.gz) with the one you created earlier:



initrd=/boot/linux-2.6.1.gz


you'll need to update lilo again for it to recognize the change you just made, so issue the following command:



/sbin/lilo -v


Some last minute prep work we have to do now. remember the module-init-tools package you downloaded earlier? Well now it's time to install it so that your mouse, network card, sound card, etc. will be recognized when you reboot:



dpkg -i module-init-tools_3.0-pre9-1_i386.deb


one last thing that needs to be done is to add an entry into /etc/fstab that the 2.6 kernel requires:



vi /etc/fstab

add the following lines to the file


## Needed for kernel 2.6
none /sys sysfs defaults 0 0


save the file, and then you're all set!

you should now just have to reboot your computer, and choose Linux from lilo's boot menu, and voila you're up and running with the 2.6 kernel

dewd
02-15-2004, 02:53 PM
Thank you man. I am not installing kernel 2.6 at this time as my mouse or my keyboard isn`t configured correctly. But I just installed debian and it was smooth. I am up for a next round but right now I am installing Knoppix. I just couldn`t be happier. Thanks :D

popuman
02-16-2004, 01:12 AM
thanks for the tutorial. cheers!

Stephen
02-16-2004, 04:21 AM
Ah beat me to it I threw together a couple of pages here (http://s95018669.onlinehome.us/knoppix/knoppix34ct_install.shtml) to document my efforts getting it going and one thing I do not have though is the module-init-tools line that you have did you have problems when you rebooted to the 2.6.1 kernel that caused you to have to install it, I had already upgraded the install before I rebooted to 2.6.1 and did not have any problems so it may have upgraded the package without me noticing.

Hayabusa
02-16-2004, 04:37 AM
Ah beat me to it I threw together a couple of pages here (http://s95018669.onlinehome.us/knoppix/knoppix34ct_install.shtml) to document my efforts getting it going and one thing I do not have though is the module-init-tools line that you have did you have problems when you rebooted to the 2.6.1 kernel that caused you to have to install it, I had already upgraded the install before I rebooted to 2.6.1 and did not have any problems so it may have upgraded the package without me noticing.

yes as matter of fact I did. It took me 2 installs to get knoppix 2.6.1 up and running. The first time i booted into 2.6.1 my usb mouse and onboard nic card weren;t seen. I figured that module-init-tools had been included since it worked in the live install, but that did not appear to be the case. I ran kudzu after this first install thinking there was just an autodetection problem, but I think that just fubared things mroe than anything. So I decided to scrap that install and start over, and this time a little voice in my head said "try installing module-init-tools while you're in linux old, and to get it there, I used the sudo wget command from the live CD. anyway around 7am I had everying up and running, removed some servers I didn;t need, removed gnome, pulled over my backup copy of sources.list and upgraded to the KDE 3.2 cvs head and all is right as rain.

the new VMware rc3 even works with the 2.6.1 default kernel. I was then also able to successfully compile the 2.6.3rc3 kernel (from source + patch),. Copied the .config file over from the 2.6.1 folder, and ran make oldconfig. then ran make menuconfig (as there's some QT library problem that won;t let me run xconfig). Tried to really clean up the kernel, optimizing it for my Athon Xp processor, removing modules I KNOW I didn;t need, support for stuff like irda, ic2, etc. The end result was a faster system, though VMWare balked at the new kernel modules libraries.. so i think I musta removed too much, I figure I'll give it another shot when the offical 2.6.3 kernel is released, but for now I'm happy with 2.6.1,. WORLDS of impriovement from 2.4.2x, KDE just screams at a freakish BeOS like speed when dragging windows, sound quality is greatly improved with the addition fo ALSA, I'm a happy camper.

(edit)
one thing I did notice though Stephen is there's a few extraneous/un-needed things in your install guide pertaining to /etc//lilo.conf editing.


no need to edit installation-drive/etc/fstab after the install when you're in the live CD. by defualt the prompt and timeout variables are as you specified them in your guide. all you need to do is run is (installion-drive)/sbin/lilo -v so that LinuxOLD will be mapped to the 2.4 kernel

after making the initrd image, no need to comment out that line in /etc/lilo.conf, simply replace the image name with the one you created, you know the first initrd.gz is bad, so wipe it.

why are you running the knoppix-installer 3 times? Or was this just a rehashing of your discovery that those files needs to be downloaded and copied?

Stephen
02-16-2004, 07:11 AM
yes as matter of fact I did. It took me 2 installs to get knoppix 2.6.1 up and running.


Good to know I will have to update the page, the module-init-tools had to of been upgraded along with the other packages then.


then ran make menuconfig (as there's some QT library problem that won;t let me run xconfig).

I had the same problem last year when I first started using the 2.6 kernels never bothered to track it down though I've grown rather fond of menuconfig it's much faster using the keyboard rather than a mouse.



Tried to really clean up the kernel, optimizing it for my Athon Xp processor, removing modules I KNOW I didn;t need, support for stuff like irda, ic2, etc. The end result was a faster system, though VMWare balked at the new kernel modules libraries.. so i think I musta removed too much, I figure I'll give it another shot when the offical 2.6.3 kernel is released, but for now I'm happy with 2.6.1,. WORLDS of impriovement from 2.4.2x, KDE just screams at a freakish BeOS like speed when dragging windows, sound quality is greatly improved with the addition fo ALSA, I'm a happy camper.


If you want to take a look at my config for 2.6.2 you can see it here (http://www3.ns.sympatico.ca/scormier/config-2.6.2) I run an Athlon as well so you may get some ideas from it. I use the 3.2 final packages and fast is just not the word for it when combined with a 2.6, their not too shabby on a 2.4 kernel either.





1. no need to edit installation-drive/etc/fstab after the install when you're in the live CD. by defualt the prompt and timeout variables are as you specified them in your guide. all you need to do is run is (installion-drive)/sbin/lilo -v so that LinuxOLD will be mapped to the 2.4 kernel


That is strange I did not get a prompt when I originally had the problem with the 2.6.1 and had to edit lilo to get one to be able to boot the old kernel. Perhaps this is because I installed lilo into the / partition instead of the MBR on my test machine and just used an entry that I already had in the MBR lilo to do a chainload boot to the lilo in that partition, I'm going to have to investigate that with a new install I do believe and let it overwrite the MBR this time.



2. after making the initrd image, no need to comment out that line in /etc/lilo.conf, simply replace the image name with the one you created, you know the first initrd.gz is bad, so wipe it.



Yeah old habit I always comment out the line when making any changes then recreate with a new line so I can go back to the old if needed at least I left out the comment in the file that is there that I always make for myself so I know why I changed it to start with, it looks like another edit is in order.


3. why are you running the knoppix-installer 3 times? Or was this just a rehashing of your discovery that those files needs to be downloaded and copied?


Exactly that, I should probably edit that section again to make it clear with only the needed steps. Thanks for the feedback and for discovering the module-init-tools I would have completely left that out.

Hayabusa
02-17-2004, 04:19 AM
Stephen can you shoot me an e-mail to hayabusa@japan.com .. got some kernel config questions and other misc things i don;t want to clog up the board with

champagnemojo
02-17-2004, 10:32 AM
First of all, really nice instructions. I still don't completely understand the LILO step to load the 2.4 kernel. All you had to do was run /sbin/lilo -v without any changes to lilo.conf and it was set back to boot 2.4? Or did you have to uncomment the two lines that Stephen mentioned? I might install it again using both of your instructions...if nothing else, for a learning experience. :)

Also, do you notice a big improvement with the 2.6 kernel? I can't get my netcard working on my 2.6 install, but I've messed around with it a little. I noticed that it booted quicker. Are there other benefits you've noticed?

Stephen
02-17-2004, 07:34 PM
Also, do you notice a big improvement with the 2.6 kernel? I can't get my netcard working on my 2.6 install, but I've messed around with it a little. I noticed that it booted quicker. Are there other benefits you've noticed?

Well as you have noticed it is definitely faster, there is no need any more to compile the alsa modules separately and there is more support the newer devices that people have that is about all I can think of at the moment.

Hayabusa
02-18-2004, 01:52 AM
First of all, really nice instructions. I still don't completely understand the LILO step to load the 2.4 kernel. All you had to do was run /sbin/lilo -v without any changes to lilo.conf and it was set back to boot 2.4? Or did you have to uncomment the two lines that Stephen mentioned? I might install it again using both of your instructions...if nothing else, for a learning experience. :)

Also, do you notice a big improvement with the 2.6 kernel? I can't get my netcard working on my 2.6 install, but I've messed around with it a little. I noticed that it booted quicker. Are there other benefits you've noticed?

I did not have to uncomment out those lines Stephen mention. doing a more /install-drive/etc/lilo.conf both the prompt and timeout commands were already live (i.e. not commented out) by default. Stephen mentioned that he DID need to uncomment/add those lines. good rule of thumb use the mroe command, if those lines are in lilo.conf leave em alone. if not uncomment or add them as the case dictates. Basically you boot into LinuxOLD (2.4 kernel) after installation becase the initrd image created was "bad". you boot into LinuxOLD just long enough to create a workign one, edit lilo.conf to point to the working initrd you just made then rebbot and 2.6.1 works.

As for your network card is it supported by the 2.6.x kernel? I'm assuming you do have module-init-tools installed, if nto installing that might help. If your card is supported by the kernel AND loading the netcard driver as a module doesn't work try recompiling the kernel and selecting Y instead of M for yoru network card. Or do a google search on linux 2.6 and the name of your network card, see if there's anything that's been posted about it.

I must concurr with Stephen on the improvements in the 2.6 kernel, everything runs much faster, ALSA for lack of a better term "just works" which is something I was losing the battle to in the 2.4 kernel. my USB 2.0 card is now recognized, there's built in support now for PS2 mice.. lots of fun stuff, give it a whirl

popuman
02-18-2004, 05:52 AM
again, thanks for the instructions. kernel 2.6 works on my desktop pc. it doesn't recognize the cd-rw/dvd on it for some reason. on my laptop, unfortunately it doesn't recognize my usb2.0 card, nor the cd burner, nor the laptop power management scheme. it tends to turn itself off when i try to access the external burner or my external drive. as far as the laptop is concerned, i'll install knoppix 3.3 02/16.

it'd be nice if the official 3.4 release would include both kernels, KDE, GNOME and fluxbox, klik, guarddog, and a script to download f-prot among the usual goodies. wishful thinking, i suppose.

jdota
02-23-2004, 03:34 AM
Install Problem,

I downloaded and installed 3.4 with the 2.6 kernel onto my HD.
When i boot into Old Linux (2.4) my system runs fine.

During boot up into 2.6 i get an error message that says:

Fix your init scripts?

and then the boot continues.
I followed the install instructions but the system stalls when KDE starts up using the 2.6 kernel.
Only the keyboard reponds, no mouse and I am missing most of the drives that mounted when I used the Live CD.

Has this happened to anyone else?
Is there any way to fix this?

Thanks

Hayabusa
02-26-2004, 07:24 AM
Install Problem,

I downloaded and installed 3.4 with the 2.6 kernel onto my HD.
When i boot into Old Linux (2.4) my system runs fine.

During boot up into 2.6 i get an error message that says:

Fix your init scripts?

and then the boot continues.
I followed the install instructions but the system stalls when KDE starts up using the 2.6 kernel.
Only the keyboard reponds, no mouse and I am missing most of the drives that mounted when I used the Live CD.

Has this happened to anyone else?
Is there any way to fix this?

Thanks

if your keyboard is responding on the 2.6 boot when KDm starts up, log in as root, and run dpkg-reconfigure module-init-tools. Sounds like it might not have installed correctly. reboot, see if the hardware is recognized after a reboot.

sounds like a modules issue to me if everything works in 2.4 (insmod controlled).

th fix your init scripts thing seems to be related to IDE/ATAPI drive timing, you should be able to fix that by commenting out the line in /etc/init.d/checkroot.sh

#[ -x /sbin/update ] && update

SomeProgr
03-16-2004, 08:48 PM
Hey, I am able to do everything up to step 5, but I cannot boot into LinuxOLD because I require special modules to load my SATA drivers which aren't initilized yet in LinuxOLD. I can boot into Linux (as usual, without the module init tools, meaning it later errors out). Is there anyway I can accomplish the remaining tasks 5 and over without booting into LinuxOLD?? thanks.

SomeProgr
03-19-2004, 12:03 AM
anybody?

SomeProgr
04-03-2004, 03:43 AM
its been about 3 weeks, and still no luck. IS THERE ANYBODY OUT THERE PLEASE THAT CAN HELP ME? Thanks.

h2gofast
04-07-2004, 03:43 AM
this thread was extremely helpful but there were a few issues I wasn't expert enough to immediately understand.
I had trouble running mkinitrd. After reading the man page, I ran mkinitrd after the install, but before rebooting. i.e. I was still running knoppix off the cd. and my installation was on hda1 which was mounted on /mnt/hda1
mkinitrd -r /mnt/hda1 -o /mnt/hda1/boot/linux-2.6.1 /mnt/hda1/lib/modules/2.6.1
I suppose I could have chrooted to /mnt/hda1 and run
mkinitrd -r /dev/hda1 -o /boot/linux-2.6.1 /lib/modules/2.6.1
Also the touchpad mouse wouldn't work on my laptop so:

in /etc/X11/XF86Config-4


Section "InputDevice"
Identifier "PS/2 Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2" #<---------this was "auto"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection

And that seemed to do the trick.


Now if I could just get my Xircom RealPort 10/100 pcmcia card to work......
It worked when I booted the 2.4.kernel off the c't knoppix cd but not 2.6.
Any suggestions would be welcome.

SomeProgr
04-09-2004, 04:14 AM
OK GUYS WE'RE GOING ON WEEK 4 HERE.. THATS ONE MONTH AND I HAVENT BEEN ABLE TO DO ANYTHING.... CAN SOMEBODY PLEASE HELP ME. ITS BEEN ONE MONTH.

Durand Hicks
04-09-2004, 04:49 AM
SomeProgr,

I don't have the newest knoppix, but have you tried booting up with the cd, mount the partition that knoppix is installed to and then chroot to it? After chroot, you can complete the remaining steps as Hayabusa outlined.

HTH,

Durand

7tronics
05-10-2004, 03:28 AM
Are the steps mentioned in the posts here still required for the recent Knoppix 3.4 iso files ?

I still get the kernel panics, but wasn't sure the workarounds listed here should still be required to get going in 2.6 kernel.

Tx, cheers de Mark @ 7tronics

3p0cHx
05-11-2004, 12:01 AM
This is probably a simple fix, but I want to have linux 2.6.5 be the default booting kernel in lilo at startup. If I don't arrow down to linux 2.6.5 in my boot loader, it will default to 2.4. after 5 seconds.
Here's the part of my lilo.conf which I think changes the boot order:

__________________________________________________
...
...
# append=""
# Boot up Linux by default.
#
default="Linux"

image=/boot/vmlinuz
label="Linux"
initrd=/boot/initrd.img
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce noscsi screen=1280x1024"
read-only

image=/boot/vmlinuz-2.4.26
label="Linux(2.4)-1"
initrd=/boot/initrd.img-2.4.26
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce noscsi screen=1280x1024"
read-only

image=/boot/vmlinuz-2.6.5
label="Linux(2.6)-2"
initrd=/boot/initrd.img-2.6.5
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce noscsi screen=1280x1024"
read-only
______________________________________________
I tried changing the line default="Linux"
to default="Linux(2.6)-2"

but that didn't help during boot. I would think that I need to change this line to the 'label' of the image I want, but it didn't work. Do I need to do additional changes in initrd?

Also, once I've succesfully changed the boot order, I'd like to change the timeout to 2 seconds.

Thanks for any help

ewanrg
05-11-2004, 01:46 PM
I sucessfully installed to HD the 3.4 ct version with the 2.6 kernel thanks largely to a thread in the "News" section and the wisdom and kindness of Stephen and champagnemojo who posted tips on how to get it to install.

Let me know if the following is covered somewhere else, but...

The 3.4 May 10th release does not recognize my Linksys WUSB V2.8 wireless device. Since it is hooked up to a desktop, and the system is upstairs, I'd like to avoid having to carry everything up and down to get Knoppix going.

I installed to the HD using the recommended option, and got a nice Debian system. However, the source for the kernel is mislinked (everything points to the 2.4 stuff even though booting into 2.6), and so I am unable to compile the Atmel drivers from Berlios to enable the network card.

Reading your step by step here, it would appear that if I DL'd a few tgz and deb files on a different machine and burn them to a CD that I might be able to get a kernel setup that would allow me to compile the Atmel drivers. Can I just DL the files that you are wget'ing in your article? Any particular place they need to be copied to? Anything else I need that you didn't since your connection was live?

Thanks,
Ewan Grantham

ewanrg
05-19-2004, 07:07 PM
Anyone know if this is easier/better in the 5/17 release?

If not, would still love to get an answer to my "catch-22" situation.

Thanks,
Ewan