LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Update from Slack 10 to 12 failed (https://www.linuxquestions.org/questions/slackware-14/update-from-slack-10-to-12-failed-615039/)

oddo 01-20-2008 04:34 PM

Update from Slack 10 to 12 failed
 
I had to update a Slackware 10.0 full install to Slackware 12.

First thing - I have comiled and succesfully installed 2.6.23.14 - rebooted - everything was fine on Slack 10 with 2.6 kernel.

Then i copyed files from slack 12 DVD on my harddisk - telinit 1 and followed steps from changes_and_hints. In the last step I have updated only rc.M and inittab.

After reboot - I got :

/sbin/e2fsck : No such file or directory while trying to open /dev/hda1 ( this is my / partition )
then

after I logint to sstem maintenance ;

/dev/hda1:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem ( and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:

Did that with all 3 values - same result as above.

Rebooted from CD - I run e2fsck on /dev/hda1 - everything is fine ( once it told me that superblock was modified in the future- and answered yes to fix )

I can see all the files in place...but this machine doesn't boot..

On this console
fdisk /dev/hda gives "unable to open /dev/hda" but I can mount rw /dev/hda1....

Any idea ?

willysr 01-20-2008 05:32 PM

there's a lot of changes between 10 and 12.0
you should have look over the .new files all over /etc and tried to merge it with the current configuration files

btw, have you installed udev?

oddo 01-20-2008 05:41 PM

yes udev-111-i486-5

It's weird because I get correct results from fsdisk when booting from cd , and nothing when I boot from HDD. Also if I boot with hugesmp kernel from cd and root on /dev/hda1 it doesn't work...

I got an error from udev at line 47 :
/sbin/udevstart: No such file or directory

rkelsen 01-20-2008 06:11 PM

Willysr is right.

You probably need to replace some of your old config files with the ".new" ones. Especially the ones under /etc/rc.d.

Also, it probably would've been better to run a fresh installation instead of upgrading... :)

oddo 01-20-2008 06:12 PM

I'm a stupid cow...Thanks for the hint willysr - indeed the problem lied in old /etc/rc.d/rc.udev. Updated with right version - all in place..I should have RTFM till the end.

Thanks again

willysr 01-21-2008 08:30 AM

check the other files as well
i find this command works on mine
Code:

find /etc -name "*.new"
there's some exception though, for example /etc/passwd, /etc/group and /etc/shadow (you might want to leave it or look through diff to find the difference)

oddo 01-21-2008 01:56 PM

If I exclude the fact that I haven't taken care of .new files everything went smoothly. I had a little problem with upgrading to mysql 5 ( a matter of permissions on /var/lib/mysql* ) but fixed quickly. So in my case upgrade from 10 to 12 worked well. Anyway I guess reistall could reduce the amount of time. :)


All times are GMT -5. The time now is 02:58 PM.