Zenwalk Linux

Ever tried Zen computing?

Upgrade Kernel with netpkg

 

From Zenwalk Wiki

Jump to: navigation, search


This article is part of the Zenwalk HOWTO.
Installing/Setting Up | Internationalisation | Networks | Software | Package Management | Misc

[edit] Install a new kernel

To be able to install a new kernel, first edit /etc/netpkg.conf and search for the line starting with "Black_list" and remove "kernel kernelsource ndiswrapper" from that line, leaving only "aaa_base", save the file.

NOTE: In ZW 5.2, this line only reads aaa_base --Jay.Goldberg 17:00, 8 January 2009 (MST)

Type:

netpkg kernel ndiswrapper

and follow the instructions given by the netpkg to upgrade to the new versions.

Just to make sure...run

root# lilo -v

The new kernel should be installed by now. Put back the configuration files has they were: edit /etc/netpkg.conf yet again Search for the line starting with "Black_list" and add "kernel kernelsource ndiswrapper" to the end of that line, as it was before. After a reboot the new kernel should be enabled :)

[edit] Miscellaneous Instructions

To upgrade from a kernel < 2.6.19 to a kernel >= 2.6.19 some factors need to be taken care of. To the use of the libata disk subsystem, if using IDE/PATA/ATA devices some configurations need to be made.

  1. In a system only with IDE/PATA/ATA devices

Simply change all device names in /etc/fstab from /dev/hdXY to /dev/sdXY edit /etc/lilo.conf and make the same procedure change all device names from /dev/hdXY to /dev/sdXY except the "boot =" line

the next lines assume that you have Zenwalk installed on /dev/hda1, change to whatever you have in your system

mount /dev/hda1 /mnt # this is needed to bypass the filesystem partition check, since /dev/sda won't exist yet
lilo -v -P ignore -r /mnt/

You can now reboot your system, with Zenwalk.

some changes still need to be made, edit /etc/lilo.conf yet again and change the device name in the "boot =" line from /dev/hdXY to /dev/sdXY and run

lilo -v

[edit] Considerations

Some considerations to these procedures

- If using multi-boot

You should comment all windows partitions(all 3 lines) from /etc/lilo.conf before running "lilo -v -P ignore -r /mnt/" and after the reboot remove those comments, example:

other = /dev/hda1
  label = WindowsXP
  table = /dev/hda

- Upon removing those comments, you should change it to something like:

other = /dev/sda1
  label = WindowsXP
  table = /dev/sda

- Your /etc/fstab should also be edited on the cdrom line, something like:

from:

/dev/hdX         /mnt/cdrom       iso9660     noauto,user,ro   0   0

to:

/dev/sr0         /mnt/cdrom       iso9660     noauto,user,ro   0   0

- If using mixed SCSI/SATA and IDE/ATA/PATA disks on the same system

The SCSI/SATA devices will remain unchanged; The IDE/ATA/PATA will change to /dev/sdX, but be advised that it won't be so linear, example:

- In a system having a SATA and a IDE drive

The SATA device name will be /dev/sda(as it was) but the IDE device will become /dev/sdb), if you have two SATA disks and one IDE disk, the SATA devices will be /dev/sda and /dev/sdb (as it was) but the IDE device will become /dev/sdc, and so on...

[edit] Known Problems

If you get this kind of error, or similar:

BIG FAT WARNING!! failed to translate "dev/hda2" into a device id.

Press SPACE to reboot or C to continue booting this kernel.
Default action if you don't select one in 25 sec: continue booting

and/or

VFS: Cannot open root device "307" or unknown-block(3,7)
Please append a correct "root=" boot option
kernel panic-not syncing:VFS:Unable to mount root fs on unknown block(3,7)

the procedure is a bit different, in this case, boot from a LiveCD/DVD, assuming you have Zenwalk installed on /dev/hda1:

mount /dev/hda1 /mnt

Simply change all device names in /mnt/etc/fstab from /dev/hdXY to /dev/sdXY edit /mnt/etc/lilo.conf and make the same procedure change all device names from /dev/hdXY to /dev/sdXY except the "boot =" line

lilo -v -P ignore -r /mnt/

You can now reboot your system, with Zenwalk.

some changes still need to be made, edit /etc/lilo.conf yet again and change the device name in the "boot =" line from /dev/hdXY to /dev/sdXY and run

lilo -v
Personal tools