LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 08-01-2006, 01:43 AM   #1
5tonedSidney
LQ Newbie
 
Registered: Aug 2004
Location: Sydney
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
Aargh I've removed the kernel during an upgrade


OK, so I'm a moron, let's get that out of the way first.

I was trying to upgrade FC4 to FC5 and I thought I'd be bold, so I used: yum upgrade

This worked hard for a while downloading headers etc. but eventually it failed due to dependency problems with initscript and kudzu.

So I googled further and found this site:http://fedoraproject.org/wiki/YumUpgradeFaq

Unfortunately, the first thing it says to do is remove kernels 2.6.14 and earlier, so I hit: yum remove kernel2.6.1*

Now I admit that I thought this was dangerous ("how can the OS run with the kernel removed?") but trusted the advice, as forums have always helped me in need.

The command processed for a while deleting everything that depended on the kernel i.e. everything! Now I have no commands (ls, yum, rpm, nautilus, firefox etc.).

By a freak of nature, I just happened to be playing poker online (for real money, small 0.25c thankfully) using W2K in a VM under VMWare. That continues to run fine although all basic linux functions e.g. the main menu fail!

While using another PC to google for a fix, the damn screen saver kicked in, and now won't let me login - I guess I've also lost the s/w for credentials checking, or maybe my logon record itself! To further punish my stupidity, in a cruel joke I can still hear the poker chips being tossed around i.e. the VM is still running quite happily (hope it's not loosing me money).

The only thing I can now interact with is a Ctrl-Alt-F2 terminal, which I'd already logged into (finally I'm lucky). Of course I can't actually do anything with no commands

On condition that I promise never to try anything so stupid in the future, can anyone offer any suggestions for fixing this? I do have two live distro's available that I thought I might be able to use to un-delete the files (the disk has had no activity except the VM which only accesses a fixed sandbox file on disk) but I wouldn't know where to start. With yum do files get really-really deleted or just "flagged"?

Should I stop whizzing into the wind and just start a reinstall?

I have emailed the guy running the wiki to point out this shortcoming.
 
Old 08-01-2006, 02:03 AM   #2
Sailesh
LQ Newbie
 
Registered: Jul 2006
Posts: 16

Rep: Reputation: 0
Instead of having long run probs by fixing temporarily, I suggest u to re - install it.
 
Old 08-07-2006, 08:58 PM   #3
5tonedSidney
LQ Newbie
 
Registered: Aug 2004
Location: Sydney
Distribution: Redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Yep, I've blown away the old install and made a fresh, new, crisp Ubuntu install. So far so good although I am getting sick of typing sudo in front of everything.

The installer is so much nicer than the (old?) Fedora installer - 1 CD +download v's 4 CD's. Also, you get a full working environment, whilst the installer is running. All hardware detected and working out-of-the box. Good stuff.
 
  


Reply

Tags
fedora, kernel, remove, upgrade, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
network card removed after kernel upgrade mjkwn Linux - Networking 2 06-16-2006 03:23 AM
apt-get upgrade removed rpm help!! gfem Fedora 6 06-12-2006 10:36 AM
apt-get dist upgrade kernel image removed gordonp Linux - Newbie 3 06-09-2006 10:47 AM
openoffice is removed at the time of dist-upgrade lavluda Debian 1 03-21-2006 02:32 AM
Files removed from file system during Fedora Core Upgrade gryphonavocatio Linux - General 5 09-21-2005 12:27 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration