LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 13.37 - Newbie Effed Up - Repair Kernel from Install Disk One? (https://www.linuxquestions.org/questions/slackware-14/slackware-13-37-newbie-effed-up-repair-kernel-from-install-disk-one-4175413944/)

marcusrex 06-28-2012 11:00 PM

Slackware 13.37 - Newbie Effed Up - Repair Kernel from Install Disk One?
 
Hello,

I am a Linux newbie and made a mistake. I have an Nvidia card and was using the nouveau driver, but wanted to try the proprietary driver for the card. The installer said that the nouveau driver was incompatible and did something to remove it from the xorg.conf file. Now my system won't reboot. It hangs during reboot. The last displayed line of text is 'vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mum,decodes=none:owns=none.'

It seems like I ought to be able to boot into my system from one of the Slackware installation disks, but I don't know how. I've tried several times using Disk One but it always begins all of the routines I followed to initially install the operating system. I don't want to re-install the operating system, I want to repair it. How do I use the install disks to get to the filesystem that is already there so I can try to repair my system?

Thanks!

Mark

Arcosanti 06-28-2012 11:37 PM

If you haven't gotten too far with the install, you can wipe the installation and reinstall. It's been a long time ago, since I've used the Slackware install disks to boot up into an installation, but I think you have lilo pass something like root=\dev\hda1 or what ever your hard drive generally is. My hard drive tends to be \dev\sda1 on my current system. When compiling a custom kernel, always be sure to keep the old kernel around just for these types of problems. That way you can still boot up and get in to fix the problem.

allend 06-29-2012 12:12 AM

From http://rlworkman.net/howtos/glibc-recovery (slightly edited for 13.37)
Quote:

First, you will need the Slackware install cd for whatever version of Slackware
that you have installed. Insert that cd into the drive and reboot the system
(this will probably have to be forced with a manual power off).
When the install cd boots, you will notice some instructions for booting into
your system - ignore those. Instead, let the installer boot (as if you were
going to do a fresh installation).
Note: you will probably have better results if you boot the huge26.s kernel
on a Slackware 11.0 cd, or huge.s or hugesmp.s on later Slackware
releases.
Once the installer has booted, login as root (no password is needed) and
mount your system's root partition to /mnt
For example, if your system's root partition is /dev/sda1, then do this:
mount /dev/sda1 /mnt
Following the above will get you access to your file system.
To access the file system as your root filesystem, do 'chroot /mnt'

The other part of the question is how to recover.
1) If you want to uninstall the nVidia proprietary driver, then it will depend on how you did the initial install.
If you used a SlackBuild and made a package, then you can simply use 'removepkg'.
If you used the nVidia installer, then run the installer with the '--uninstall' flag.

2) It may also be that you simply need to specify a kernel boot option so that you can boot successfully.
You could try editing /etc/lilo.conf and adding ' video=800x600' to the append= line.
Type 'exit' to exit the chroot.
Type '/mnt/sbin/lilo -r /mnt' to rerun lilo.

Remove the CD and hit Ctrl-Alt-Del to reboot.

Comment:
Quote:

The installer said that the nouveau driver was incompatible and did something to remove it from the xorg.conf file.
The nVidia installer blacklists the nouveau kernel driver from loading by making an addition in the /etc/modprobe.d/ directory. It will also build an xorg.conf file if you request that.


All times are GMT -5. The time now is 11:47 PM.