LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-05-2007, 02:11 PM   #1
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Rep: Reputation: 16
Grub.conf is blank


I have a dual boot system with XP. I had set XP to be the default OS.

I noticed today that when I booted up, it said it was going to boot to Fedora by default.

I opened grub.conf in /etc with kedit and saw that it was blank. When I view the properties of the file, it says it points to /boot/grub/grub.conf. That grub.conf is also blank.

In /etc there is also a file called grub.conf~. I don't recall seeing it before.

I also had a problem with Disk Management which may be related to this. When I launch it, it no longer prompts me to login as root. Instead, it says, "There are no file systems which you are allowed to mount or unmount. Contact your administrator."

Any suggestions? Many thanks.
 
Old 03-05-2007, 02:24 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
#1 make sure you're trying to access the file(s) and/or programs as root; you shouldn't be able to deal with the GRUB config file as a regular user

#2 last time I checked GRUB used /boot/grub/menu.lst as it's configuration file; on some system it seems to be called grub.conf though. See if you've got both of them. GRUB's config file should in any case be in /boot though it can be linked in /etc too.

#3 A file that ends with ~ (like filename.xyz~) is often a kind of temp file of an editor; when you open a file with a text editor such as vim for example, it usually creates a temporary file that is called the same as the original file, but with a tilde (~) in the end; when you save and exit this temp file should get removed and changes written to the original file. Should the editor suddenly die, that ~-file may not be removed. Check out it's contents:
Code:
less filename.abc~
and check out what it has inside. If that's what you're looking for (BUT make sure it really is exactly what you're looking for), you can just rename that and overwrite the original empty file. Warning: if you were able to boot, your GRUB's configuration cannot be empty; since GRUB reads it's configuration from your /boot partition, it means the configuration file GRUB is using is not completely empty (it has to have at least the OS configured properly that you can boot), so don't overwrite anything before locating the file and checking out what's inside.

I would cd to /boot/grub/ and see what files are there; if there are both grub.conf and menu.lst, see which one is empty and which one is not. If both are non-empty, you may use find to determine if either of them has been used more recently than the other one, and deduce which one of them is actually used by GRUB. I remember reading that GRUB Legacy should use menu.lst and not grub.conf anymore, but who knows..
 
Old 03-06-2007, 01:33 PM   #3
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Original Poster
Rep: Reputation: 16
Thanks for your tips, Bouncer. I logged in as root and was able to see the contents of grub.conf. When I was logged in with my regular user account, I opened up a terminal, did su -, and then entered kedit grub.conf. I could have sworn that I was previously able to edit grub.conf that way, but now it just comes up blank.
 
Old 03-07-2007, 08:16 AM   #4
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Devuan Beowulf
Posts: 514
Blog Entries: 1

Rep: Reputation: 37
You might want to run chkrootkit and rkhunter on that install, just for safeties sake. Its always one of the first things i do when i get weird problems, just to eliminate i havent been compromised.
 
  


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
my.conf is blank, how can i solve it? tootcsen Linux - Newbie 2 06-16-2006 03:47 AM
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
screen suspend/blank conf file? chunlee Linux - Newbie 1 01-07-2005 10:38 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

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

All times are GMT -5. The time now is 08:09 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