LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg upgrade from 12.1 to 12.2 and now LILO can't find my HD (http://www.linuxquestions.org/questions/slackware-14/slackpkg-upgrade-from-12-1-to-12-2-and-now-lilo-cant-find-my-hd-710925/)

thrash242 03-12-2009 12:13 AM

slackpkg upgrade from 12.1 to 12.2 and now LILO can't find my HD
 
I used slackpkg to upgrade from 12.1 to 12.2 (update, install-new, upgrade-all, clean-system), which I've done before for previous upgrades and everything seemed to go ok this time until I tried rebooting.

LILO says:
Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sda")

I answered 'yes' to the 'do you want to run LILO' question after it installed the new kernel.

e2fsck complains about a bad superblock saying it's either the wrong filesystem or that it's corrupt.

It lets me boot into single-user mode and I tried fdisk and cfdisk and I can't find the hard drive at all.

My lilo.conf and fstab are the same as they've always been as far as I can tell.

I wouldn't think that upgrading versions would corrupt my hard drive.

And no, I have no backups, unfortunately, since there's nothing of great importance on this machine. It's more something for me to tinker with and learn Linux, so if I have to reinstall, it's not the end of the world, but I'd like to be able to fix it if possible.

Any help would be much appreciated--thanks in advance.

mRgOBLIN 03-12-2009 01:26 AM

Probably you need to either boot with the hugesmp kernel or create a new initrd.

Boot from a 12.2 install disk (or usbboot image) and see if your raid partitions and data are still intact.

darem 03-16-2009 07:59 AM

Possible solution
 
Hello,

I have the same problem, and I have noticed that just before the fault, it complains about a udev failure.

I didn't have time to try it, but I think I know the solution: when you upgrade, there are new config files that are not activated.

Boot from a Slackware bootdisk and mount your partition; eg.
mount /dev/sda1 /mnt

now go to /mnt/etc and search for the new config files:
find . -name "*.new"

There will be probably some new scripts in rc.d: check the diferences with the old ones, modify whatever you need and remove the .new extension.

It should work fine after reboot.

I'll try it this evening.

Best regards,
David

guanx 03-16-2009 02:28 PM

Quote:

Originally Posted by thrash242 (Post 3472658)
LILO says:
Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sda")

Do you have the install cdrom or dvdrom? If yes, you can have a look at what "fdisk -l" says.

darem 03-17-2009 10:15 AM

Solved
 
Hello,

I booted the with my old slackware 12.1 and then mounted my partition:
mount /dev/sda5 /mnt
I went to my rc.d directory: cd /mnt/etc/rc.d
And then, I renamed the file rc.udev.new to rc.udev.

After that, I was able to boot from my hard disk again.
Try it!!

Regards,
David


All times are GMT -5. The time now is 06:42 AM.