lilo failed to boot after "slackpkg upgrade-all" Slackware64 14.0
hi everyone~
i'm kinda new to linux so please excuse my stupidity, and english is not my first language, please excuse my bad english (if any) so i wanted to upgrade kernel to 3.2.45 by following this guide: http://www.ehow.com/how_8615290_upda...ux-kernel.html but after that i reboot my machine and then when i boot linux appeared like this: L 9A 9A 9A 9A.... i've tried to boot from my Slackware disc then ran 'lilo -v' then reboot the error code changed to: L 99 99 99 99 99 99 i've tried googling, there are so many threads in forums and even in LQ about this error code but i think what i found aren't relevant with my situation, i've tried: 'lilo -g', 'lilo -L' but they didn't solve the problem oh yeah, i forgot to mention that i dual booted with windows 7 and lilo was not installed in MBR edit: my /etc/lilo.conf Code:
# LILO configuration file |
Hello and welcome to LQ,
To upgrade a Slackware installation, please read the UPGRADE.TXT instructions available in the root directory of the installation CD. For Slackware 14.0 64-bit edition, the file can be found here. In particular, after a kernel upgrade, you should pay attention to step 7 of the upgrade process: Quote:
By the way, there is a lot of useful information in the text files available in the root directory of the installation CD. I would recommend that you take a look at them. |
Quote:
Have a look here: http://wiki.linuxquestions.org/wiki/LILO_Error_Codes |
Quote:
apparently i've done mkinitrd but with another parameter before, it's: mkinitrd -c -k 3.2.45 -m ext4 , but it didn't work, is this why it didn't work when i used the parameter from the generator? Quote:
yeah, it's intended, i thought if something wrong with lilo or something i still can boot up windows (it's kinda silly though when i want to choose linux i have to choose twice, from windows loader and lilo, haven't configure it yet) i've looked that url too, but 'lilo -g' gave me error, then i looked at the man page i saw "-L" parameter, i tried 'lilo -L' but it didn't solve the problem |
You only need to build an initrd image if you're using Slackware's generic kernel or one that you compiled yourself. If you're using the huge kernel, everything is already compiled into it.
The error code letter tell you where lilo gets stuck. The number is a hexadecimal number that tell you the disk error. http://www.tldp.org/HOWTO/Bootdisk-HOWTO/a1483.html http://wiki.wlug.org.nz/LiloErrorCodes If re-running lilo under /dev/sda4 did not output any errors, then you might want to make sure the boot flag is set for /dev/sda4. |
Quote:
i'm using huge kernel apparently, so it isn't necessary to use mkinitrd right? i just realize that :D oh yeah, just giving out some details hoping i can figure out what's wrong: - before executing "slackpkg upgrade-all" everything working nicely - i saw that slackpkg is not just upgrading kernel but some packages were upgraded, could some packages upgrade screwed up lilo? well, those links gave me some idea, i think i need someone to post a working lilo.conf file just for me to compare? thanks in advance |
Greetings
You may already know this but just in case.... Some of the many things I love about Slackware are the most basic, like that Patrick bothers to halt the Install DVD boot, to give you a hint that you can select a kernel (like huge) and boot a failed system. It amazes me how few distros provide this simple courtesy. It has saved my butt so many times I can't count, including booting some other distros! I'm an oldtime Slackware user so I have a certain revulsion for auto-dependency resolving package managers. I'll just say no more about that except it is my opinion that doing a complete system upgrade is much like throwing yourself off a cliff and hoping the wind is strong enough and blows in a direction that will land you safely on your feet. Some things are just not best left to chance. It is also my opinion that one should never have to apologize for redundant bootloading. What does it take? 2 seconds at most? It is still true that many bootloaders do not play nice. They are great on a standalone machine but the developers often act like nobody dual boots. I say redundancy is just smart and safe. It used to be that I used 3rd party windows based mult-bootloaders, largely to keep windows safe as it used to have some really arrogant requirements (1st partition 1st drive pffff!). Installing Lilo to Root meant all I had to do was point to that partition to get back in. Over time I got better at Lilo, and now Slackware Lilo resides in MBR, but I still put each other distros bootloader on it's root, just to be safe. If it works for you... no need to apologize. Welcome to Linux and especially Slackware Linux. |
Quote:
I'm using dual boot with Windows Vista and Slackware using first the Windows Vista boot loader and then lilo. I've used the following tutorial to make it work: dual-boot-linux-and-windows-vista-windows-bootloader I don't know if Windows 7 works the same way. Just try googling to find out how dual boot Windows 7/Linux works. But I find it surprising that you would forget such a thing if your system was working before the upgrade (except if someone else did the installation). |
Yes, gegechris99 is correct. I've dual booted slack and windows for years on my work computer. Any changes to lilo require an update to the bootsector file when lilo is installed to the linux root and you use the windows bootloader. I've gotten the 9999.... error everytime I made any changes to lilo without updating the bootsector file. And, it works the same for windows 7.
You can boot any linux live CD and grab the first 512 bytes of the bootsector using the dd command, make the file, and copy it to the root of your windows partition (C:\). Just follow all the steps in the link gegechris99 provided. In windows 7 you must follow the steps using bcdedit to configure the windows bootloader. |
+1 for gegechris99 and lukameen posts above. I run exactly this setup (Windows 7 bootloader chained to lilo), and you definitely need to update the file you put on your windows partition to make this work.
Quote:
|
Quote:
and thanks for your welcome! Quote:
Quote:
i used this as a guide to update the bootsector file. marked as solved! |
All times are GMT -5. The time now is 04:22 AM. |