LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-21-2007, 06:27 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
No Grub.Conf File in 6.10?


I was looking in /boot/grub and I can't seem to find grub.conf. How can the system boot w/o the grub.conf file?

Code:
carlos@lptp:/boot/grub$ ls -la
total 196
drwxr-xr-x 2 root root   4096 2007-02-21 19:25 .
drwxr-xr-x 3 root root   4096 2006-12-13 18:54 ..
-rw-r--r-- 1 root root    197 2006-11-29 20:08 default
-rw-r--r-- 1 root root     15 2006-11-29 20:08 device.map
-rw-r--r-- 1 root root   7508 2006-11-29 20:08 e2fs_stage1_5
-rw-r--r-- 1 root root   7332 2006-11-29 20:08 fat_stage1_5
-rw-r--r-- 1 root root     16 2006-11-29 20:08 installed-version
-rw-r--r-- 1 root root   8128 2006-11-29 20:08 jfs_stage1_5
-rw-r--r-- 1 root root   3917 2007-02-21 19:25 menu.lst
-rw-r--r-- 1 root root   3910 2006-12-13 18:55 menu.lst~
-rw-r--r-- 1 root root   6804 2006-11-29 20:08 minix_stage1_5
-rw-r--r-- 1 root root   9076 2006-11-29 20:08 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 2006-11-29 20:08 stage1
-rw-r--r-- 1 root root 105652 2006-11-29 20:08 stage2
-rw-r--r-- 1 root root   8764 2006-11-29 20:08 xfs_stage1_5
I also tried looking around in case it was in an "unusual" spot and I was unable to find it. Anyone care to help me out or explain why I can't find it.

Thanks!
 
Old 02-21-2007, 06:32 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
View your menu.lst

Is your /boot partition mounted (assuming it is on it's own partition)?

Run "mount"

If your /etc/fstab looks like this:

Code:
/dev/hda1   /boot        ext2   noauto,noatime     1 2
then it may not be mounted at boot and you are not looking at your real boot partition.

Last edited by dxqcanada; 02-21-2007 at 06:34 PM.
 
Old 02-21-2007, 06:39 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Perhaps I am missing something...

Code:
carlos@lptp:/boot/grub$ mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.17-10-generic/volatile type tmpfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
I don't see my /boot partition in /etc/fstab.

Code:
carlos@lptp:/boot/grub$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda1
UUID=2318bbb7-6d0e-48da-b4af-e7a6215ff72e /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda5
UUID=fe11757f-97b7-4a15-860f-70c148881ca2 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
 
Old 02-21-2007, 06:41 PM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Your fstab shows that you do not have a unique partition for /boot.

View your /boot/grub/menu.lst ... as grub may be using that instead of the standard grub.conf.
 
Old 02-21-2007, 06:47 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
grub.conf is used mainly by the Red Hat family.

Just about every other Linux uses menu.lst.

grub.conf if used is just a symbolic to menu.lst which is the official configuration file sought by Grub.
 
Old 02-21-2007, 06:47 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by dxqcanada
Your fstab shows that you do not have a unique partition for /boot.

View your /boot/grub/menu.lst ... as grub may be using that instead of the standard grub.conf.
Thanks!...
 
Old 02-21-2007, 07:20 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
It is quite acceptable to use a single partition for installation of a Linux and I never do anything else even with every Red Hat.

If you have menu.lst in the subdirectory /boot/grub that means /boot is a subdirectory to "/".

Only users who make a separate /boot partition will have to mount it and the menu.lst will be found in /grub directory of the partition that hosts /boot.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
No grub.conf file dhawal Linux - Enterprise 3 10-22-2005 12:15 AM
I cannot edit grub.conf file!! Azzath Linux - Software 3 03-23-2005 02:00 PM
What should my grub.conf file say for Windows? EVO VIII Chris Linux - Software 6 01-18-2004 04:33 AM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 12:33 AM

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

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