LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ruined the OS ? Replacing deleted files from cd boot (http://www.linuxquestions.org/questions/linux-software-2/ruined-the-os-replacing-deleted-files-from-cd-boot-742099/)

Vask 07-22-2009 07:33 PM

Ruined the OS ? Replacing deleted files from cd boot
 
From the beginning here is the situation: i needed to uninstall some nvidia software that i downloaded using the "add/remove software" tool. I went through and searched nvidia and unchecked everything on the list. Apparently something on that list was pre-installed in the system because after my restart, the os wont load up. After the load bar, it blackscreens and states " JBD: barrier-based sync Failed on dm-0:8 disabling barrier. " Im currently running from the os disk, is there any way to replace the deleted file from here?

im running Fedora 11

unSpawn 07-22-2009 08:00 PM

This (disregard the distro flavour) says the message is primarily an informational message and does not indicate a problem. Blackscreening may be due to booting into runlevel 5 while the driver wasn't configured: try runlevel 3 or 1 instead? Also please review /var/log/(messages, kernel, boot, dmesg, Xorg.0) for any related (or seemingly unrelated) errors. I don't know what you mean by "unchecked everything on the list" but if the /etc/cron.daily/rpm cronjob hasn't run again you'll find the complete list of packages still in /var/log/rpmpkgs, else grep /var/log/messages for any "uninstall" lines left by the package manager? What made you change your mind? Apparently you came close to making things work...

Vask 07-22-2009 08:27 PM

by "unchecked" i mean, uninstalled.
I am unsure how to read the rpmpkgs file,
I cant access Messages but in what i could access...

in xorg 0, i found this:

(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
compiled for 1.6.1.901, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "nvidia"
(WW) Warning, couldn't open module nvidia
(II) UnloadModule: "nvidia"
(EE) Failed to load module "nvidia" (module does not exist, 0)
(EE) No drivers available.




in xorg 2:
(II) Module dri2: vendor="X.Org Foundation"
compiled for 1.6.1.901, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "nvidia"
(WW) Warning, couldn't open module nvidia
(II) UnloadModule: "nvidia"
(EE) Failed to load module "nvidia" (module does not exist, 0)
(EE) No drivers available.

Fatal server error:
no screens found

^^ is repeated through the rest of the xorgs.

in boot i found:
Entering non-interactive startup

No akmod packages found, nothing to do.[ OK ]


WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.

Enabling ondemand cpu frequency scaling: [ OK ]


ip6tables: Applying firewall rules: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.

[ OK ]


and

Starting RPC idmapd: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.

WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.

[ OK ]

GrapefruiTgirl 07-22-2009 08:40 PM

Hi,

Not sure what exactly the nvidia software is, but if you did not intend to remove the nvidia binary video driver, then that is why you are not booting to the desktop (which I assume you want to do?) and so you need to reinstall the nvidia proprietary driver by whatever means Fedora uses (dpkg??)

If you knowingly removed the nvidia driver, then you need to change the 'Driver' line in xorg.conf and set it to another driver (like the nv driver)

Sasha

EDIT: As UnSpawn said, try booting into init 1 or 3 to get a console login, where you can fix the situation.

Vask 07-22-2009 08:44 PM

Ok cool, thanks for the help. Im pretty knew with linux, only been using it for 2 days now. What would the logistics of doing what you described be?

im in runlevel 3 now, i attempted to install the nvidia driver i downloaded but have yet to install. It gave me the following error halfway through the process:

"no precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface gfor your kernel from the nvidia ftp site?"
"no matching precompiled kernel interface was found on the nvidia ftp site; this means that the installer will need to compile a kernel interface for your kernel"
ERROR: unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and tht they are properly configured; on red hat linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' rpm installed. if you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option"

GrapefruiTgirl 07-22-2009 09:30 PM

Am I on the right track? Do you need to reinstall the nvidia driver? Or is it that you need to change the driver line in your xorg.conf??


If it's the latter, then you'll need to use a commandline text editor, such as Vi or Nano or MC, and load up the file /etc/X11/xorg.conf and locate the line that starts with Driver, and change the driver to "nv". Then save the file and restart X (or go to init 5) or reboot.

Note - the names of the editors I gave are only examples; I have no idea what editors are included with Fedora.

And, as for re-installing the driver, if that's what you want to do, I cannot help you because I do not use Fedora, and it is rather different from my Slackware system. I have little to no idea how you install stuff into Fedora; I guess it is with 'dpkg' or some other automated package manager, but someone with Fedora experience will have to help you there..

Meanwhile, just please clarify for us what you need to do.

Welcome to Linux, by the way -- be patient, have fun!

Sasha

GrapefruiTgirl 07-22-2009 09:37 PM

Ok, disregard my last post.

To install the driver via its built-in installer as you are doing, you do need to have your kernel sources, headers, etc. installed in the system.

This (I'm guessing here again) would be done via dpkg or whatever the Fedora package manager is, and would be packages like 'kernel-devel', 'kernel-headers-<version>' and maybe others like this.

If you can make sure that you have the necessary stuff on the system, including kernel source, headers, etc., and then let us know how that installer goes.

I am going to step out of this thread, because I think you will get a more concise idea what's going on Fedora-wise, from someone who actually uses it. If I *can* help, I will -- I'll follow your thread, but I'm hoping a Fedora person will appear too :)

Sasha

Vask 07-22-2009 10:08 PM

Im not too sure what your asking, i think its missing the driver and some kernel deal but i am unsure how to install a new kernel/the original driver. I only have a nvida driver specific to my gfx card ready to install.

Thank you for the help and the welcome Sasha.

Vask 07-23-2009 12:07 AM

bump

jschiwal 07-23-2009 01:48 AM

This webpage explains how to install the NVidia driver for Fedora 10 & 11. http://www.mjmwired.net/resources/mj...idia_rpmfusion

Look at the section "Installation Using RPMFusion". That should be the easiest method, as it provides a precompiled drivers. The instructions will work in init level 3.


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