LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't boot into -current partition after slackpkg upgrade-all, after kernel upgraded (http://www.linuxquestions.org/questions/slackware-14/cant-boot-into-current-partition-after-slackpkg-upgrade-all-after-kernel-upgraded-4175421527/)

gabytf 08-11-2012 02:34 AM

Can't boot into -current partition after slackpkg upgrade-all, after kernel upgraded
 
I can't boot into my -current partition after slackpkg upgrade-all.

I am having 2 hard disc, first is purely for windows 7 where it come with the original purchase. i add another hard disc to install OperatingSystem for the use of Slackware stable and -current.

i boot in -current or stable by a usb pendrive as i yet to know how to chainload the OS with windows 7 in HD1, and i don't want to disturb the MBR in windows partition. That's why i add another HD but i can't load slackware directly thru HD2, must use a usb bootup pendrive.

My problem now is i can't boot into my -current partition after slackpkg upgrade-all, i can't even use the previous -current installer CD nor the bootup pendrive. i know it is due to the new kernel upgrade but how to rescure myself now?

willysr 08-11-2012 02:56 AM

you should install the kernel, not upgrade from previous version
also, did you run mkinitrd to create the new initrd just in case you are using generic kernel?

gabytf 08-11-2012 03:04 AM

Sorry Willysr, i am totally naive/blind in this issue.
No i didn't. How? What should i do as first step? Please advise.Thank you.

willysr 08-11-2012 03:17 AM

first, you will have to boot using the installer again (it can be pendrive or CD)
mount your root partition and chroot to the partition
next, reinstall your kernel and this time, make sure you create an initrd. It has a great documentation which is placed on /boot directory. You should read it first.

don't forget to add the initrd line in your /etc/lilo.conf and execute /sbin/lilo to re-read the configuration file

chrisretusn 08-11-2012 07:24 AM

It sounds like you are using the kernel that is installed by default, after you did and upgrade-all you should have been prompted to run lilo, did you?

Celyr 08-11-2012 07:40 AM

Hi,

I think that the issue is that you was using an huge kernel and now you switched to generic on the update.
I would solve this way (and stick with the huge kernel)
Boot slackware cdrom
mount /dev/<root> /mnt
cd /mnt
chroot ./
cd boot
change the System.map config and vmlinuz links from generic to huge
lilo
exit
umount
reboot

have a nice day

colorpurple21859 08-11-2012 10:58 AM

I'm not clear if ever slackware booted after you added an additional hard drive. If not, then adding of an additional hard drive may have moved the slackware hard drive from number 2 to number 3 hard drive. Try switching the cables on the new hard drive with the cables on the slackware hard drive, If it doesn't work then put them back the way the cables were to prevent futher problems.

gabytf 08-12-2012 11:42 AM

Quote:

I'm not clear if ever slackware booted after you added an additional hard drive.
No, it doesn't boot. Since i don't want to disturb the MBR in win7 hard drive, i boot into slackware in the second hard drive with pendrive.
As for now i have mess up with the kernel after updated to the new version i can't boot in with the old kernel in the previous pendrive.
Anyway, now i managed to boot-in thru the latest iso installer CD downloaded from mirror site.


All times are GMT -5. The time now is 09:31 AM.