LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-20-2009, 12:32 AM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Angry Unable to edit grub.


How do i re install grub. It's got corrupted. Whenever i try to load ubuntu9.04 it says file not found. What do i do?
 
Old 10-20-2009, 02:19 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
You are going to have to give us a bit more to work on.

The easiest might just be to boot of a live CD and then chroot into your old system to see if all is well. If it's not, you can simply reinstall in the chrooted environment.
 
Old 10-21-2009, 08:50 PM   #3
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Wink

Quote:
Originally Posted by basheer View Post
How do i re install grub. It's got corrupted. Whenever i try to load ubuntu9.04 it says file not found. What do i do?
https://help.ubuntu.com/community/LiveCdRecovery
 
Old 10-21-2009, 09:33 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
The answer to your question is that grub cannot find your kernel or initrd.img

did you do an update and then this happened or how/when did this happen?

look in your /boot folder and see what vmlinuz and initrd.img are the newest
and edit your /boot/grub/menu.lst to reflect this

also, make sure the symlinks exist in / for vmlinuz and initrd.img

Last edited by linus72; 10-21-2009 at 09:40 PM.
 
Old 10-22-2009, 03:15 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by linus72 View Post
The answer to your question is that grub cannot find your kernel or initrd.img

did you do an update and then this happened or how/when did this happen?

look in your /boot folder and see what vmlinuz and initrd.img are the newest
and edit your /boot/grub/menu.lst to reflect this

also, make sure the symlinks exist in / for vmlinuz and initrd.img
Why would you need links in "/"? I have NEVER done this.

the kernel and initrd files (or links) have to be where menu.lst is telling grub to look---this is normally in /boot

But I thought the original question was re-installing grub.......
 
Old 10-22-2009, 04:38 AM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I was speaking of the symlinks to kernel/initrd found in the / root of the filesystem
most/all distros have these
 
Old 10-22-2009, 05:22 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by linus72 View Post
I was speaking of the symlinks to kernel/initrd found in the / root of the filesystem
most/all distros have these
I HAVE seen this but, in my experience, most distros do not do this. More to the point, it serves no purpose. The only thing that matters is that the files (or links) must exist where GRUB is told to look. I have never seen this to be anything but /boot.

Getting back to the original question, I still think OP simply needs to re-install GRUB. While waiting for OP to return, I'm going to go solve some other problem.......
 
Old 10-22-2009, 09:42 AM   #8
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Original Poster
Rep: Reputation: 29
Wink

thanx a lot linus72, eco , pixellany and all the guys who took tim to help me out.
I could not reinstall grub even after chrooting. It was giving some error messages like, not a block device, format not known etc.

So I just re-installed ubuntu.
Thanx a lot again.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to edit any file in OS??? ajeetraina Linux - Server 1 01-01-2008 08:39 AM
Unable To Edit Fstab steelheat Linux - Newbie 2 12-14-2007 12:48 PM
how to edit grub.conf from grub shell during booting pashaikh Linux - Security 1 06-27-2006 05:01 AM
Mozilla: unable to edit preferences pajoe Linux - Software 2 12-29-2005 03:46 AM
unable to edit grub in red hat randrake Linux - Enterprise 1 05-14-2004 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration