Downgrade Kernela

aldin@ubuntu:~$ uname -r 2.6.12-9-386

ubacim ubuntu 5.04

aldin@ubuntu:/boot$ ls -l -h total 14M -rw-r--r-- 1 root root 235K 2005-10-10 15:16 abi-2.6.12-9-386 -rw-r--r-- 1 root root 59K 2005-04-05 14:10 config-2.6.10-5-386 -rw-r--r-- 1 root root 63K 2005-10-10 14:12 config-2.6.12-9-386 drwxr-xr-x 2 root root 4.0K 2006-04-26 09:05 grub -rw-r--r-- 1 root root 4.2M 2006-04-25 18:59 initrd.img-2.6.10-5-386 -rw-r--r-- 1 root root 4.8M 2006-04-25 19:53 initrd.img-2.6.12-9-386 -rw------- 1 root root 155K 2006-04-26 09:20 map -rw-r--r-- 1 root root 93K 2005-06-30 17:49 memtest86+.bin -rw-r--r-- 1 root root 826K 2005-04-05 15:41 System.map-2.6.10-5-386 -rw-r--r-- 1 root root 877K 2005-10-10 15:16 System.map-2.6.12-9-386 -rw-r--r-- 1 root root 1.2M 2005-04-05 15:40 vmlinuz-2.6.10-5-386 -rw-r--r-- 1 root root 1.2M 2005-10-10 15:16 vmlinuz-2.6.12-9-386 aldin@ubuntu:/boot$ ls -l -h /lib/modules/ total 8.0K drwxr-xr-x 5 root root 4.0K 2006-04-26 08:58 2.6.10-5-386 drwxr-xr-x 6 root root 4.0K 2006-04-26 14:18 2.6.12-9-386 aldin@ubuntu:/boot$
evo kako izgleda menu.lst:

[code]title Ubuntu, kernel 2.6.12-9-386
root (hd0,7)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda8 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot

title Ubuntu, kernel 2.6.10-5-386
root (hd0,7)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda8 ro vga=791
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot[/code]
kada probam boot-ati ovaj 2.6.10 pođe malo i onda:

[code]Uncompresing Linux…, OK, booting kernel

prođe malo i onda:

VFS: Cannot open root device “hda8” or unknovn-block (0,0)
Please append a correct “root=” boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0)[/code]
čudno mi je ovo (0,0)
pitanje: da li je ovo izvodljivo (na ovaj način) znači bez standardnog kompajliranja “nižeg” kernel source-a

sata? ext3 kao modul?

ne kontam, ako pitaš koji je hd i tip particije

/dev/hda - ATA

particija je ext3

ajd evo sad cu ja downgrade kernel-a uraditi pa ti javim

#dpkg --install linux-image-2.6.10-5-386.deb

bez problema

[quote=exorcism]#dpkg --install linux-image-2.6.10-5-386.deb

bez problema[/quote]
sta uradi…

mislim da si malo pogrijesio sa ovim bi dobio helach…
dpkg --install linux*.deb

@bono
./lib/modules/2.6.10-5-386/kernel/fs/ext3/ext3.ko
./lib/modules/2.6.10-5-386/kernel/fs/reiserfs/reiserfs.ko

postoje moduli…

mislim da ti fali modula u initrd image-u …

vi /etc/mkinitrd/modules

Dodaj etx3 i sa “mkinitrd -k -o /boot/initrd.2.6.10-5-386 2.6.10-5-386” napravi novi initrd, onda reboot. Javi šta se dešava.

evo ako budet imali zivaca da sve pregledate…

mislio sam da ovo nije važno ali kada sam vidio da se ponavlja odlučio sam da “okačim”…

aldin@ubuntu:~$ sudo apt-get install linux-image-2.6.10-5-386 . . Setting up linux-image-2.6.10-5-386 (2.6.10-34) ... cpio: (0xffffe000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f09000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f14000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f2c000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f2f000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f4e000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f68000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f84000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f97000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7fbb000): No such file or directory . . Updating /boot/grub/menu.lst ... done


.
evo ubacio sam ext i reiser

[code]# /etc/mkinitrd/modules: Kernel modules to load for initrd.

This file should contain the names of kernel modules and their arguments

(if any) that are needed to mount the root file system, one per line.

Comments begin with a `#’, and everything on the line after them are ignored.

You must run mkinitrd(8) to effect this change.

Examples:

ext3
reiserfs

wd io=0x300[/code]

probao po uputstvu sa mkinitrd, ali…

aldin@ubuntu:~$ sudo mkinitrd -k -o /boot/initrd.2.6.10-5-386 2.6.10-5-386 /usr/sbin/mkinitrd: The working directory /tmp/mkinitrd.1Uu2ci will be kept. cpio: (0xffffe000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7eec000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7ef7000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f1e000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f45000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f56000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f5d000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f64000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f99000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7fad000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7fd8000): No such file or directory aldin@ubuntu:~$ ls /boot/ abi-2.6.12-9-386 initrd.2.6.10-5-386 System.map-2.6.10-5-386 config-2.6.10-5-386 initrd.img-2.6.10-5-386 System.map-2.6.12-9-386 config-2.6.12-9-386 initrd.img-2.6.12-9-386 vmlinuz-2.6.10-5-386 grub memtest86+.bin vmlinuz-2.6.12-9-386
dobio istu “kernel paniku” prilikom boot-anja novog initrd-a…
mislim da je bitan ovaj dio (koji se ponovio i kod mkinitrd-a)

Setting up linux-image-2.6.10-5-386 (2.6.10-34) ... cpio: (0xffffe000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f09000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f14000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f2c000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f2f000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f4e000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f68000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f84000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f97000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7fbb000): No such file or directory
hehe, ali izgleda da sam ga “izradio”…
evo kako:

instalirao ubuntu 5.04 na drugu particiju, kopirao njegov initrd a ostavio vmlinuz (koji je prethodno automatski snimljen), na ubuntu 5.10 particiju i radi!

evo koji su sve slučajevi initrd-a u /boot

aldin@ubuntu:/boot$ ls -l -h total 22M -rw-r--r-- 1 root root 235K 2005-10-10 15:16 abi-2.6.12-9-386 -rw-r--r-- 1 root root 59K 2005-04-05 14:10 config-2.6.10-5-386 -rw-r--r-- 1 root root 63K 2005-10-10 14:12 config-2.6.12-9-386 drwxr-xr-x 2 root root 384 2006-04-27 22:27 grub -rw-r--r-- 1 root root 4.2M 2006-04-27 22:39 initrd.2.6.10-5-386 -rw-r--r-- 1 root root 4.2M 2006-04-27 22:25 initrd.img-2.6.10-5-386 -rw-r--r-- 1 root root 4.8M 2006-04-27 14:23 initrd.img-2.6.12-9-386 -rw-r--r-- 1 root root 4.2M 2006-04-27 22:56 initrd.kopija -rw-r--r-- 1 root root 93K 2005-06-30 17:49 memtest86+.bin -rw-r--r-- 1 root root 826K 2005-04-05 15:41 System.map-2.6.10-5-386 -rw-r--r-- 1 root root 877K 2005-10-10 15:16 System.map-2.6.12-9-386 -rw-r--r-- 1 root root 1.2M 2005-04-05 15:40 vmlinuz-2.6.10-5-386 -rw-r--r-- 1 root root 1.2M 2005-10-10 15:16 vmlinuz-2.6.12-9-386
stavio u menu.lst, i evo ga radi

title TEST Ubuntu, kernel 2.6.10-5-386 root (hd0,6) kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda7 ro quiet splash initrd /boot/initrd.kopija savedefault boot
ps:
volio bih znati zašto je ovo “cpio: /lib/ld-linux.so.2”…

problem riješen:

  1. snimio 5.10, uradio apt-get update
    1.1 probao mkinitrd - međutim komande nije bilo
    1.2 malo apt-cache search…ovdje mi se “upalila lampica” da je možda do starije verzije mkinitrd-a
  2. apt-get install :
    -rwxr-xr-x 1 aldin users 21K 2006-05-19 09:40 cramfsprogs_1.1-6_i386.deb
    -rwxr-xr-x 1 aldin users 31K 2006-05-19 09:40 initrd-tools_0.1.78ubuntu2_all.deb
  3. apt-cdrom add < 5.04 >
  4. apt-get install linux-image*

…ustanovio sam da je problem bio zbog toga što na 5.10 CD-u ne dolazi paket initrd-tools (mkinitrd), a dolazi na 5.04 CD-u, pa je initrd-tools “pokupljen” sa 5.04… da sam prvi put, prije instaliranja linux-image-a uradio “update” vjerovatno mi se ovo nebi desilo… tj. skinuo bi ove initrd sa neta a image sa disc-a, a ne oba sa 5.04 CD-a…

Setting up linux-image-2.6.10-5-386 (2.6.10-34) ... cpio: (0xffffe000): No such file or directory cpio: /lib/ld-linux.so.2 (0xb7f09000): No such file or directory