LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2010, 02:17 AM   #1
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Rep: Reputation: 16
Question There is no "menu.lst" in my Ubuntu "/boot/grub/" folder.


Hi All,

I have a problem with my GRUB bootloader. I have Ubuntu 9.10
and Win XP installed on my laptop. But only the list of Ubuntu
appears in the menu and NOT win XP.

Some instructions say try to edit the "menu.lst" file in
"/boot/grub/" menu.

But there is no such a file in my /boot/grub/" folder.

What should I do now?

With best regards,
Hassan
 
Old 01-30-2010, 02:19 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
you could do an ls /boot/grub/ and post the results here but I am guessing the like canditate file to be editted in it's place will be /boot/grub/grub.conf the two files are often very similar or identical and perform similar tasks.
 
Old 01-30-2010, 02:31 AM   #3
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Hi Again,

There is neither "menu.lst" nor "grub.conf" in my
whole ubuntu drive.

I did nothing on my Ubuntu.
I just turned it on in the morning and I saw there is
no menu to select Ubuntu or Win XP.

Thanks Anyway.
 
Old 01-30-2010, 02:35 AM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

Do you mind doing an "ls /boot/" and pasting the results here, also if it exists, "ls /boot/grub", it sounds like you have done something to your grub bootloader in a strange way. Can I also confirm you are using grub and lilo.
 
Old 01-30-2010, 02:52 AM   #5
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
I will paste it now, thanks and wait.

Yes you are right that it seems I did sth to my Ubuntu.

I followed this instruction several times maby this removes it.
I do not know!!!

http://www.dedoimedo.com/computers/g...mozTocId842078

Last edited by msbstar; 01-30-2010 at 02:56 AM.
 
Old 01-30-2010, 02:59 AM   #6
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Just to check, how many HDDs do you have in your computer, if it's more then one it might be worth checking the output of the mount command, you could have installed grub to somewhere other then /boot (a strange idea I know, but could be possible)
 
Old 01-30-2010, 03:05 AM   #7
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Hi,

No I have only one hard drive in my laptop.
Windows is in 1st partition and Ubuntu in 2nd.

These are the result of those two command you said:
*********************************************
root@pc-laptop:/boot/grub# ls /boot/
abi-2.6.31-14-generic-pae memtest86+.bin
config-2.6.31-14-generic-pae System.map-2.6.31-14-generic-pae
grub vmcoreinfo-2.6.31-14-generic-pae
initrd.img-2.6.31-14-generic-pae vmlinuz-2.6.31-14-generic-pae

************************************************
root@pc-laptop:/boot/grub# ls /boot/grub/
915resolution.mod efiemu.mod lvm.mod scsi.mod
acpi.mod elf.mod mdraid.mod search.mod
affs.mod ext2.mod memdisk.mod serial.mod
afs_be.mod extcmd.mod memrw.mod setjmp.mod
afs.mod fat.mod minicmd.mod sfs.mod
aout.mod font.mod minix.mod sh.mod
ata.mod fs_file.mod mmap.mod sleep.mod
ata_pthru.mod fshelp.mod moddep.lst tar.mod
at_keyboard.mod fs.lst msdospart.mod terminfo.mod
befs_be.mod fs_uuid.mod multiboot.mod test.mod
befs.mod gfxterm.mod normal.mod tga.mod
biosdisk.mod gptsync.mod ntfscomp.mod true.mod
bitmap.mod grub.cfg ntfs.mod udf.mod
blocklist.mod grubenv ohci.mod ufs1.mod
boot.img gzio.mod part_acorn.mod ufs2.mod
boot.mod halt.mod part_amiga.mod uhci.mod
bsd.mod handler.lst part_apple.mod unicode.pf2
bufio.mod handler.mod part_gpt.mod usb_keyboard.mod
cat.mod hdparm.mod partmap.lst usb.mod
cdboot.img hello.mod part_msdos.mod usbms.mod
chain.mod help.mod part_sun.mod usbtest.mod
cmp.mod hexdump.mod parttool.lst vbeinfo.mod
command.lst hfs.mod parttool.mod vbe.mod
configfile.mod hfsplus.mod password.mod vbetest.mod
cpio.mod iso9660.mod pci.mod vga.mod
cpuid.mod jfs.mod play.mod vga_text.mod
crc.mod jpeg.mod png.mod video_fb.mod
datehook.mod kernel.img probe.mod video.mod
date.mod keystatus.mod pxeboot.img videotest.mod
datetime.mod linux16.mod pxecmd.mod xfs.mod
device.map linux.mod pxe.mod xnu.mod
diskboot.img lnxboot.img raid5rec.mod xnu_uuid.mod
dm_nv.mod loadenv.mod raid6rec.mod zfsinfo.mod
drivemap.mod loopback.mod raid.mod zfs.mod
echo.mod lsmmap.mod read.mod
efiemu32.o ls.mod reboot.mod
efiemu64.o lspci.mod reiserfs.mod
************************************************

Thanks in advance.

Last edited by msbstar; 01-30-2010 at 03:10 AM.
 
Old 01-30-2010, 03:20 AM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
The only file I can see in there that might be connected is grub.cfg but for now I think we need to figure out where grub is actually check for stage 2... it could be somewhere else.

Could you do a df, mount and can you remember the hard drive and partition you did your most recent grub-install too?

another thought...

sudo find / -name "*stage2"

Last edited by r3sistance; 01-30-2010 at 03:25 AM.
 
Old 01-30-2010, 03:26 AM   #9
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
What does this mean "Could you do a df, mount"?

The partition of my Ubuntu is "sda6" and I followed
the above mentioned instruction applying on this partition.

Is it possible to create these two files (menu.lst and grub.conf)
by hand.
 
Old 01-30-2010, 03:28 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Ubuntu 9.10 comes with GRUB2 which doesn't use the menu.lst anymore but the grub.cfg instead.

Read on how to configure/use/install/setup GRUB2 in this tutorial.

Kind regards,

Eric
 
Old 01-30-2010, 03:32 AM   #11
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Dear EricTRA,

I would like to thank you for your previous comments and helps.

Would it be possible for you to tell me from which part I should
start in this case that I only see Ubuntu in my boot list not Win XP
although I have XP installed on my laptop.

Best regards,
Hassan
 
Old 01-30-2010, 03:43 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Start out at the section Dual boot: two operating systems with GRUB 2. Find out the exact partition where your Windows is installed on with:
Code:
sudo fdisk -l
Next edit the grub.cfg file and update grub.

Kind regards,

Eric
 
Old 01-30-2010, 03:57 AM   #13
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Dear EricTRA,

My windows XP is installed on "sda1".

But what do you mean by "edit the grub.cfg file and update grub."
I know where the "grub.cfg" file is, but what should I write on it?
How can I do that. In that section you mention I could not see
how to edit and what to edit.

Sorry for being so elementary.

(Oh, My professor is calling me. I will come back in half an hour, sorry for inconvenience).

With best regards,
Hassan

Last edited by msbstar; 01-30-2010 at 04:07 AM.
 
Old 01-30-2010, 04:21 AM   #14
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Can you post the output of this:
Code:
ls /etc/grub.d
Kind regards,

Eric
 
Old 01-30-2010, 05:07 AM   #15
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Hi EricTRA,

Sorry for my delay.

This is the result of "ls /etc/grub.d":

********************************
root@pc-laptop:/home/pc# ls /etc/grub.d
00_header 10_linux 30_os-prober README
05_debian_theme 20_memtest86+ 40_custom
**********************************

Thanks.

Last edited by msbstar; 01-30-2010 at 05:08 AM.
 
  


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
[SOLVED] When I type "sudo grub" it says "command not found" in Ubuntu 9.10 Live CD. msbstar Linux - Newbie 10 04-01-2020 11:54 PM
grub boot to "1" "S" or "single" chakkerz Linux - Newbie 2 12-09-2009 12:35 AM
[SOLVED] Dual boot, grub doesn"t show vista, no menu.lst mike11 Linux - Newbie 4 11-22-2009 07:56 PM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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