[SOLVED] Re-Installing the Kernel.. (damaged after upgrade)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Re-Installing the Kernel.. (damaged after upgrade)
Hello dear fellows..
How you doing all?
I've my Slackware 13 box.
Recently, I have upgraded to -current, and while the upgrade I noticed that my connection went down while it was downloading the new kernel.
I had doubts that it got damaged.
Any way, later I did:
Code:
slackpkg upgrade-all
and found every thing is up to date.
While upgrading, the system asked me to run lilo, and I did..
But after rebooting, I got the (Kernel Panic) error.
I logged back in using setup disk, and the chroot to my original system root directory.
I removed the current Kernels, and now I need to re-install it.. there I'm stuck.
Slackpkg isn't working because the box is not connecting to the internet.
Any help, or links is more than appreciated since I'm not geek enough to sort it by my own.
Also few googling didn't set me up with a solution so far.
First, double check if you are effected by the libata switch over. The text of the kernel panic would be a nice clue. It states something like failed to find device ..... forget, haven't seen one in a while
Read the *** LIBATA SWITCHOVER *** section in Changes and hints. http://slackware.osuosl.org/slackwar..._AND_HINTS.TXT
To reinstall the kernels without network connection, download the packages to a usb disk, or burn to cdrom. Chroot as you did before, mount the external media, and use upgradepkg --install-new --reinstall package-name.txz
If you connect with ethernet to the network, before you chroot in, try to bring up your network. With current releases of Slackware, the installation boot sequence is handled by udev, so modules are already loaded. Check lsmod for your NIC's module. Obtain a dhcpc address with dhcpcd eth0
You can also boot into the installed system using the installation DVD.
Quote:
In a pinch, you can boot your system from here with a command like:
boot: huge.s root=/dev/sda1 rdinit= ro
In the example above, /dev/sda1 is the / Linux partition.
VFS: Cannot open root device "hda(x)" or unknown-block(3,3)
Please append a correct "root=" option
Kernel panic: VFS: Unable to mount root fs on unknown-block(3,3)
The "old" ide subsystem in the the linux kernel is now deprecated in favor
of the newer libata subsystem, and this affects the naming of device nodes
for almost all types of disk drives -- hard drives in particular will now
have an "sd" named node. The following information should allow you to
handle that changeover gracefully.
1. Upgrade the kernel and kernel-modules packages normally.
2. Edit /etc/fstab to reflect the change from hd* to sd*.
Old Name --> New Name
/dev/hda /dev/sda
/dev/hdb /dev/sr0
/dev/hdc /dev/sdb
3. Run lilo. Note that you have made no edits at all to it yet, unless
you needed to edit it for the new kernel. Specifically, do not make
any changes with respect to hd* --> sd*.
4. Reboot. At the lilo prompt, press <TAB> and add an append for the
real root device (which will no longer be /dev/hd*). For example, if
the old root device was /dev/hda1, and it will now be /dev/sda1, and
the name of your kernel image is "Linux" then you would do this:
Linux root=/dev/sda1
5. Once the system comes back up, then fix /etc/lilo.conf, run lilo, and
reboot again to be sure everything is correct.
Humm... Alright.. I guess that mean something..
Let me do some tries.. and get back to you
By the way,
Does the changes mentioned above apply to all kind or Hard Disks?
Because I don't think my HDs are SATA.. it's a little old hardware. (P4 2.8GHz)
It applies to all disks. The older kernels used IDE/PATA modules which listed drives as /dev/hd*. Newer kernels have switched over to using the libata modules. Libata calls all drives /dev/sd*. Does not matter if they are SATA or IDE.
libata has modules for both SATA interfaces and IDE/PATA interfaces.
Last edited by disturbed1; 06-01-2010 at 03:41 AM.
GREAT, I finally managed to log back directly to my box..
But, I figured out, that I have many packages that was badly damaged due to connection errors while downloading these packages.
Honestly, when I started the upgrade process.. my connection wasn't doing well, and so I guess several packages was damaged.
I had to re-download and install few packages other than the kernel before I was able to log to the system.
Ok, my question now..
Can I some way, reinstall ALL packages via (slackpkg) or something like that?
Just to make sure.. every thing is replaced again with a fresh and clean copy?
slackpkg accepts tagsets, patterns, and series.
If you wanted to reinstall everything with slackpkg
Code:
slackpkg reinstall a ap d e f k kde l n t tcl x xap y
The above command would reinstall every package from the entire software series listed. man slackpkg has more details.
When ever I update Slackware, I usually do clean-system, upgrade-all, install-new, then slackpkg install * to pick the odd package that was not detected as new or needing upgraded.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.