Martinus Ady H. BlOg

February 23, 2006

Pengalaman Instal Kernel 2.6.10 di Slackware 10.1

Filed under: Linux

Fyuh…. setelah mencoba instal kernel 2.6 dengan filesystem ext3 error (Error pada waktu mkinitrd):((
akhirnya coba-coba ganti filesystem reiserfs dengan cara instal ulang ;p (Very stupid solution :( ).
Setelah proses instalas ulang, akhirnya cling…..dpt filesystem baru.
Akhirnya langkah selanjutnya, masukin tuh cd 2 dari cd instalasi slackware ke cdrom, trs mount deh.
Copy directory linux-2.6.10 yang berada di /testing/packages/ masukkan ke home directory.

# pwd
/mnt/cdrom/testing/packages
# cp -R linux-2.6.10 ~/
#

Setelah tercopy, masuk ke direcotory linux-2.6.10 di home,kemudian install dengan command installpkg seluruh paket
yang ada di directory linux-2.6.10 dengan command spt berikut:

# installpkg alsa-driver-1.0.82.6.10-i486-1.tgz
# installpkg kernel-generic-2.6.10-i486-1.tgz
# installpkg kernel-headers-2.6.10-i386-1.tgz
# installpkg kernel-modules-2.6.10-i486-1.tgz
# installpkg kernel-source-2.6.10-noarch-1.tgz

Setelah proses instalasi selesai, masuk ke directory /boot kemudian ketik perintah berikut:

#  mkinitrd -c -k 2.6.10 -m reiserfs -r /dev/hda1

(NB: Untuk selengkapnya bisa baca man mkinitrd dan README.initrd ;p)
Iks… inget waktu make filesystem ext3, pas mkinitrd error :( (
can’t find jdb modules :(

Setelah berhasil n tanpa pesan error, sekarang tinggal buat symlink ke kernel yang lama(Soalnya konfigurasi vmlinuz
yg lama dah ketindes ama kernel 2.6.10).
Sebelum membuat symlink pastikan dulu dengan perintah ls -l seperti berikut:
# ls -l
total 5743
lrwxrwxrwx  1 root root      37 2006-02-22 14:54 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
lrwxrwxrwx  1 root root      25 2006-02-22 11:13 System.map -> System.map-generic-2.6.10
-rw-r–r–  1 root root  805590 2005-01-23 04:07 System.map-generic-2.6.10
-rw-r–r–  1 root root  607998 2005-01-21 11:24 System.map-ide-2.4.29
-rw-r–r–  1 root root     512 2006-02-22 15:20 boot.0300
lrwxrwxrwx  1 root root      21 2006-02-22 11:13 config -> config-generic-2.6.10
-rw-r–r–  1 root root   50545 2005-01-23 04:07 config-generic-2.6.10
-rw-r–r–  1 root root   41731 2005-01-21 11:24 config-ide-2.4.29
-rw-r–r–  1 root root    5032 2004-05-21 14:19 diag1.img
drwxr-xr-x  8 root root     304 2006-02-22 11:33 initrd-tree
-rw——-  1 root root  365560 2006-02-22 11:33 initrd.gz
-rw——-  1 root root   46080 2006-02-22 11:33 map
lrwxrwxrwx  1 root root      22 2006-02-22 11:13 vmlinuz -> vmlinuz-generic-2.6.10
-rw-r–r–  1 root root 1413281 2005-01-23 04:07 vmlinuz-generic-2.6.10
-rw-r–r–  1 root root 1253760 2005-01-21 11:24 vmlinuz-ide-2.4.29
#

Ketikkan perintah berikut untuk membuat symlink ke kernel yang lama:

# ln -s vmlinuz-ide-2.4.29  vmlinuz-ide
               Y                 Y    
           file sumber      nama file tujuan

Setelah membuat symlink cek lagi dengan perintah ln -s, pastikan agar hasilnya sama spt berikut:
total 5743
lrwxrwxrwx  1 root root      37 2006-02-22 14:54 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
lrwxrwxrwx  1 root root      25 2006-02-22 11:13 System.map -> System.map-generic-2.6.10
-rw-r–r–  1 root root  805590 2005-01-23 04:07 System.map-generic-2.6.10
-rw-r–r–  1 root root  607998 2005-01-21 11:24 System.map-ide-2.4.29
-rw-r–r–  1 root root     512 2006-02-22 15:20 boot.0300
lrwxrwxrwx  1 root root      21 2006-02-22 11:13 config -> config-generic-2.6.10
-rw-r–r–  1 root root   50545 2005-01-23 04:07 config-generic-2.6.10
-rw-r–r–  1 root root   41731 2005-01-21 11:24 config-ide-2.4.29
-rw-r–r–  1 root root    5032 2004-05-21 14:19 diag1.img
drwxr-xr-x  8 root root     304 2006-02-22 11:33 initrd-tree
-rw——-  1 root root  365560 2006-02-22 11:33 initrd.gz
-rw——-  1 root root   46080 2006-02-22 11:33 map
lrwxrwxrwx  1 root root      22 2006-02-22 11:13 vmlinuz -> vmlinuz-generic-2.6.10
-rw-r–r–  1 root root 1413281 2005-01-23 04:07 vmlinuz-generic-2.6.10
lrwxrwxrwx  1 root root      18 2006-02-22 11:24 vmlinuz-ide -> vmlinuz-ide-2.4.29
-rw-r–r–  1 root root 1253760 2005-01-21 11:24 vmlinuz-ide-2.4.29

Jika sudah, edit file /etc/lilo.conf. Seperti berikut:

# Linux bootable partition config begins
image = /boot/vmlinuz-ide   # Mengacu ke kernel-2.4.29
  root = /dev/hda1
  label = Slackware-2.4
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

# Linux bootable partition config begins
image = /boot/vmlinuz      # Mengacu ke kernel 2.6.10
initrd = /boot/initrd.gz
  root = /dev/hda1
  label = Slackware-2.6
  read-only # Non-UMDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

Jika sudah simpan kemudian jalankan dengan perintah seperti berikut:

# /sbin/lilo -v

Pastikan tidak ada error, jika tidak ada error maka sukses dah proses instalasi kernel 2.6.10 di slackware 10.1 :)

Akhirnya dengan senang hati cobain tuh kernel 2.6.10 :)
Eh ….. tapi pas cobain mount cdrom koq ga bisa yak ??????
What’s wrong ? (Ceile gaya neh make bhs inggris, padahal ga lulus loh bhs inggris 1 :( )
Akhirnya maen deh ke linuxquestion.org buat cari pemecahannya :)
Ketemu juga tuh solusinya di linuxquestion.org, ternyata utk kernel 2.6.x dah ga butuh lagi scsi emulation.
(Pengaktifan scsi emulation di kernel 2.4 berfungsi buat burning data ke cd, soalnya setelah mengaktifkan
scsi emulation saya bisa burning ke cd blank dengan tenang dan aman ^^)
Di linuxquestion.org juga diberitahu, biasanya utk pengaktifan scsi emulation di kernel 2.4 ditaruh di
lilo.conf. Jadi contoh lilo.conf buat aktifin scsi emulation adalah sbb:

#———- Begin Of File ———-#

# LILO configuration file
# generated by ‘liloconfig’
#
# Start LILO global section
append="hdc=ide-scsi"     #-> Ini script buat aktifin scsi emulation di kernel 2.4

#——— End Of File ———#

Setelah dapat jawaban untuk men-disable scsi emulation di kernel 2.4, akhirnya saya rem tuh baris yang
memuat scsi emulation jadi seperti dibawah ini:

#———- Begin Of File ———-#

# LILO configuration file
# generated by ‘liloconfig’
#
# Start LILO global section
# append="hdc=ide-scsi"     #-> Di disable supaya bisa mount cdrom.

#——— End Of File ———#

Setelah melakukan pengeditan di lilo.conf, ketikan /sbin/lilo -v supaya editannya permanen.
Setelah itu reboot, masuk ke kernel 2.6 dan coba lihat hasilnya.

# mount /dev/cdrom /mnt/cdrom
#

Cling …..berhasil dah ^^)
Tapi gimana yah klo saya pengen burning data ke cd blank ???
Dah ah ngantuk, dah jam 10 pagi. Ntar jam 2 siang ada kul lagi :P
Saatnya bobo’ dulu besok lanjutin lagi :D :)

Note:
- Meskipun dah make filesystem reiserfs, /me tetep ngalamin error. Kebanyakan pada waktu mkinitrd :( (
  3 x baru berhasil :( Maklum baru pertama kali cobainnya.
- Please read the manual ;p
- Jika pada kernel 2.4.29 komputer bisa shutdown secara otomatis, maka setelah menginstal kernel 2.6.10 lakukanlah pengeditan pada file /etc/rc.d/rc.modules seperti berikut (Cari section APM Support):

#——— Begin Of File ———#

#### APM support ###
# APM is a BIOS specification for saving power using several different
# techniques. This is mostly useful for battery powered laptops.
/sbin/modprobe apm

#——— End Of File ———#

Kalau tidak melakukan pengeditan pada file tersebut, maka komputer tidak akan shutdown secara otomatis lagi.
(Kembali seperti pada waktu instalasi awal).

Dah ah….
bobo’ dulu ngantuk (*
*)
Dilanjutkan besok ajah yah ……

Referensi:
- Majalan PC Plus edisi 231 (Menginstal Kernel 2.6.x Pada Slackware, penulis om Willy Sudiarto Raharjo)
- Linuxquestion.org
- man mkinitrd.

1 Comment »

The URI to TrackBack this entry is: http://pemula.blogsome.com/2006/02/23/pengalaman-instal-kernel-2610-di-slackware-101/trackback/

  1. Продвижение сайтов санкт-петербург

    Comment by Продвижение сайтов санкт-петербург — June 3, 2007 @ 12:04 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers