LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 10-12-2010, 09:39 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Angry find: `/boot/grub/menu.lst': No such file or directory


I had dual booted my internal harddisk.

OpenSuse 11.2 was already installed.
I installed Linux-Mint Fluxbox, second.

I need to modify the grub - menu.lst since Suse is not getting displayed in the boot menu !

Code:
aquarius ~ # find /boot/grub/menu.lst
find: `/boot/grub/menu.lst': No such file or directory
Code:
aquarius ~ # find /etc/lilo.conf
find: `/etc/lilo.conf': No such file or directory
Please help !
 
Old 10-12-2010, 11:15 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Did you install Linux Mint Grub to the mbr? Newer releases of Mint use Grub2 which should have detected Opensuse. Run the find command from a Grub prompt as root (sudo). If you installed Grub 2 and it does not detect Opensuse, you may have to update Grub. I don't use Grub2 but this link may help, Section 5:C:

http://www.dedoimedo.com/computers/grub-2.html
 
Old 10-12-2010, 11:32 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Thanks for replying.
Quote:
Originally Posted by yancek View Post
Did you install Linux Mint Grub to the mbr?
I don't know. How should i find out ?

Quote:
Originally Posted by yancek View Post
Run the find command from a Grub prompt as root (sudo). If you installed Grub 2 and it does not detect Opensuse, you may have to update Grub. I don't use Grub2 but this link may help, Section 5:C:

http://www.dedoimedo.com/computers/grub-2.html
How am i supposed to get the grub prompt ?

Following code is from my external harddisk:
Code:
Eccentric-aquarian anisha # grub
The program 'grub' is currently not installed.  You can install it by typing:
apt-get install grub
This mean there is no grub on my machine Am I doing it wrong or I have to install grub now ?
 
Old 10-12-2010, 03:30 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
You should be able to read the mbr contents using the dd command. Unfortunately, I'm not sure what the command is so I won't tread there. The default on Linux Mint as on most distributions is to install to the master boot record. If you did not select the Advanced tab from GParted when you were partitioning and installing the bootloader, it should have been installed to the mbr.

Getting a grub prompt should be as simple as logging in as root (sudo or sudo su in Mint) and typing grub? When I log in as root on my machine and type the find command, these are my results:

Quote:
grub> find /boot/grub/menu.lst
(hd0,4)
(hd0,6)
(hd0,7)
which shows I have the menu.lst file on three partitions.

What OS are you using to run the command? Could you post partition inforamtion indicating which drives/partitions you have which OS installed on. sudo fdisk -l (lower case Letter L)

You could use the Mint install CD, mount your Mint and Opensuse partitions and see whether these files are there. Not really sure what the problem is?

Are you able to boot Linux Mint

Last edited by yancek; 10-12-2010 at 03:40 PM. Reason: Request add'l info
 
Old 10-12-2010, 08:14 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
"grub-install -v" will give you a version number; "0.9[67]" is grub1, and "1.9?" is grub2.

If it is grub2 it should have found OpenSuSE on install.
 
Old 10-14-2010, 05:54 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
yancek and syg00
Thanks to both of you.
Code:
Eccentric-aquarian anisha # grub-install -v
grub-install (GNU GRUB 1.98-1ubuntu5-1mint2)
Quote:
Originally Posted by yancek View Post
The default on Linux Mint as on most distributions is to install to the master boot record. If you did not select the Advanced tab from GParted when you were partitioning and installing the bootloader, it should have been installed to the mbr.
I have not done anything from GParted, long time back I had created the partitions with PartedMagic.

Quote:
Originally Posted by yancek View Post
Getting a grub prompt should be as simple as logging in as root (sudo or sudo su in Mint) and typing grub? When I log in as root on my machine and type the find command, these are my results:
See this: Do I have to install Grub now ?
Code:
Eccentric-aquarian anisha # grub
The program 'grub' is currently not installed.  You can install it by typing:
apt-get install grub
Quote:
Originally Posted by yancek View Post
What OS are you using to run the command? Could you post partition inforamtion indicating which drives/partitions you have which OS installed on. sudo fdisk -l (lower case Letter L)
Linux Mint 9 Fluxbox

Code:
Eccentric-aquarian anisha # fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f0989

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1306    10490413+  83  Linux
/dev/sda2            1307        6528    41945715   83  Linux
/dev/sda3            6529       19458   103853057    5  Extended
/dev/sda5            6529       18927    99587072   83  Linux
/dev/sda6           18927       19458     4264960   82  Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107861504 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003061f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         623     4999168   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2             623        1121     3998721    5  Extended
/dev/sdb3            1121       60802   479385600   83  Linux
/dev/sdb5             623        1121     3998720   82  Linux swap / Solaris
Quote:
Originally Posted by yancek View Post
You could use the Mint install CD, mount your Mint and Opensuse partitions and see whether these files are there. Not really sure what the problem is?

Are you able to boot Linux Mint
Which files you want me to find ?
Yes I am able to boot Mint from my external disk and I have posted all this from my external disk Mint.

HELP HELP
 
Old 10-14-2010, 06:21 AM   #7
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Hi!

Just a note from me, it is pretty obvious that SUSE's GRUB was overwritten with Mint's when you have installed it and that's why you can't see SUSE entry in the boot menu. What you need to do is to recover SUSE's GRUB and install it on the MBR then you have to install Mint's GRUB to his root / partition, because both GRUBs can't be on the MBR.

A little search found this; http://www.linuxquestions.org/questi...-howto-517717/

Regards, Alan.
 
Old 10-14-2010, 10:14 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
If I understand correctly, your current situation is that you are able to boot and use Linux Mint which is on your external drive?? Is your external sdb?

Quote:
grub-install -v
The output from the above command shows you have the ubuntu-mint Grub2.
Your post shows that when you type grub at the command line, you are told it is not installed. Curious?

Am I correct that you have Opensuse on the internal and that is sda?
You have Linux Mint on sdb?

Which drive do you have set to first boot priority in the BIOS? sda? sdb?

I noticed several days ago you had another post in which you listed the output of the "ls" command in your Mint install and only had one png file in the /boot/grub directory. If you boot Mint, go to the /boot/grub directory and see what files you have there. You should have a number of files including a grub.cfg file which is to Grub2 what menu.lst was in Grub Legacy.
 
1 members found this post helpful.
Old 10-14-2010, 10:45 AM   #9
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
yancek,
Thanks for following up.

Quote:
Originally Posted by yancek View Post
If I understand correctly, your current situation is that you are able to boot and use Linux Mint which is on your external drive??
I am able to boot Linux Mint on my internal harddisk as well as Linux Mint on my external harddisk. What I am not able to boot is OpenSuse on the internal harddisk.

Quote:
Originally Posted by yancek View Post
Am I correct that you have Opensuse on the internal and that is sda? You have Linux Mint on sdb?

Which drive do you have set to first boot priority in the BIOS? sda? sdb?
Internal harddisk :
  • OpenSuse 11.2
  • Linux Mint 9

External harddisk :
  • Linux Mint 9

I do not know what disk represents sda and sdb.

Quote:
Originally Posted by yancek View Post
I noticed several days ago you had another post in which you listed the output of the "ls" command in your Mint install and only had one png file in the /boot/grub directory. If you boot Mint, go to the /boot/grub directory and see what files you have there. You should have a number of files including a grub.cfg file which is to Grub2 what menu.lst was in Grub Legacy.
You noticed that thread of mine but still didn't help there ???
Yes I have found that grub.cfg here:
and you are saying now I should do with grub.cfg whatever I wanted to do with menu.lst
Code:
anisha@Eccentric-aquarian ~ $ su
Password: 
 _________________________________________
( Zounds! I was never so bethumped with   )
( words since I first called my brother's )
( father dad.                             )
(                                         )
( -- William Shakespeare, "Kind John"     )
 -----------------------------------------
   o
    o
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

Eccentric-aquarian anisha # cd /boot/grub/
Eccentric-aquarian grub # ls -R
.:
915resolution.mod  cpio.mod                     gcry_cast5.mod      hashsum.mod    minicmd.mod          pxeboot.img         trig.mod
acpi.mod           cpuid.mod                    gcry_crc.mod        hdparm.mod     minix.mod            pxecmd.mod          true.mod
affs.mod           crc.mod                      gcry_des.mod        hello.mod      mmap.mod             pxe.mod             udf.mod
afs_be.mod         crypto.lst                   gcry_md4.mod        help.mod       moddep.lst           raid5rec.mod        ufs1.mod
afs.mod            crypto.mod                   gcry_md5.mod        hexdump.mod    msdospart.mod        raid6rec.mod        ufs2.mod
aout.mod           datehook.mod                 gcry_rfc2268.mod    hfs.mod        multiboot2.mod       raid.mod            uhci.mod
ata.mod            date.mod                     gcry_rijndael.mod   hfsplus.mod    multiboot.mod        read.mod            usb_keyboard.mod
ata_pthru.mod      datetime.mod                 gcry_rmd160.mod     iso9660.mod    normal.mod           reboot.mod          usb.mod
at_keyboard.mod    diskboot.img                 gcry_seed.mod       jfs.mod        ntfscomp.mod         reiserfs.mod        usbms.mod
befs_be.mod        dm_nv.mod                    gcry_serpent.mod    jpeg.mod       ntfs.mod             relocator.mod       usbtest.mod
befs.mod           drivemap.mod                 gcry_sha1.mod       kernel.img     ohci.mod             scsi.mod            vbeinfo.mod
biosdisk.mod       echo.mod                     gcry_sha256.mod     keystatus.mod  part_acorn.mod       search_fs_file.mod  vbe.mod
bitmap.mod         efiemu32.o                   gcry_sha512.mod     linux16.mod    part_amiga.mod       search_fs_uuid.mod  vbetest.mod
bitmap_scale.mod   efiemu64.o                   gcry_tiger.mod      linuxmint.png  part_apple.mod       search_label.mod    vga.mod
blocklist.mod      efiemu.mod                   gcry_twofish.mod    linux.mod      part_gpt.mod         search.mod          vga_text.mod
boot.img           elf.mod                      gcry_whirlpool.mod  lnxboot.img    partmap.lst          serial.mod          video_fb.mod
boot.mod           example_functional_test.mod  gettext.mod         load.cfg       part_msdos.mod       setjmp.mod          video.lst
bsd.mod            ext2.mod                     gfxmenu.mod         loadenv.mod    part_sun.mod         setpci.mod          video.mod
bufio.mod          extcmd.mod                   gfxterm.mod         locale         parttool.lst         sfs.mod             videotest.mod
cat.mod            fat.mod                      gptsync.mod         loopback.mod   parttool.mod         sh.mod              xfs.mod
cdboot.img         font.mod                     grldr.img           lsmmap.mod     password.mod         sleep.mod           xnu.mod
chain.mod          fshelp.mod                   grub.cfg            ls.mod         password_pbkdf2.mod  tar.mod             xnu_uuid.mod
charset.mod        fs.lst                       grubenv             lspci.mod      pbkdf2.mod           terminal.lst        zfsinfo.mod
cmp.mod            functional_test.mod          gzio.mod            lvm.mod        pci.mod              terminal.mod        zfs.mod
command.lst        gcry_arcfour.mod             halt.mod            mdraid.mod     play.mod             terminfo.mod
configfile.mod     gcry_blowfish.mod            handler.lst         memdisk.mod    png.mod              test.mod
core.img           gcry_camellia.mod            handler.mod         memrw.mod      probe.mod            tga.mod

./locale:
ast.mo  ca.mo  de.mo  fi.mo  fr.mo  hu.mo  id.mo  it.mo  nl.mo  ru.mo  sv.mo  zh_CN.mo
Eccentric-aquarian grub #

Last edited by Aquarius_Girl; 10-14-2010 at 11:14 AM.
 
Old 10-14-2010, 11:16 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you edit the grub.cfg file, your changes will be lost the next time some program calls update-grub. It may help to call the command yourself.
 
Old 10-14-2010, 11:19 AM   #11
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by TobiSGD View Post
It may help to call the command yourself.
I do not understand what you said here and what i am supposed to do ?
 
Old 10-14-2010, 11:47 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The file grub.cfg is not intended to be edited by the user, it is automatically created if the command update-grub is executed. This command will search for bootable operating systems and then generate grub.cfg according to its findings. So may be it helps if you boot into your Mint and run, as root, update-grub.
 
Old 10-14-2010, 12:38 PM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Which Linux Mint are you using to boot?
Which was the last you installed, external?
Do you have the internal drive set to first boot priority?
If it is, when you boot, are you able to boot either Linux Mint?
Can you set the external drive to first boot priority? If so, do that and re-boot to see what happens.

Quote:
I do not know what disk represents sda and sdb.
Your fdisk output posted above indicates sda is 160GB drive and sdb is a 500GB drive.

Quote:
You noticed that thread of mine but still didn't help there ???
Correct. I guess it just seemed to obvious, the only file in the directory was an image file?

I think the first thing you need to figure out is which Grub you re using to boot, the internal or external drive. Try changing boot priorities as suggested above to see what happens. I think the update-grub command should work but, I have not used Grub2 at all so won't make any further suggestions in that regard.
 
Old 10-15-2010, 12:41 PM   #14
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by TobiSGD View Post
The file grub.cfg is not intended to be edited by the user, it is automatically created if the command update-grub is executed. This command will search for bootable operating systems and then generate grub.cfg according to its findings. So may be it helps if you boot into your Mint and run, as root, update-grub.
I don't know how to thank you now.

I booted Mint from my external harddisk in the rescue mode and ran the command
Code:
update-grub
It gave some output showing that it had detected Suse on a harddisk and Mint on another.

and I rebooted,
OpenSuse 11.2 showed up in the booting menu !!!
and I am posting this from that Suse itself.

Thanks again.
 
Old 10-15-2010, 12:48 PM   #15
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by yancek View Post
Your fdisk output posted above indicates sda is 160GB drive and sdb is a 500GB drive.

Correct. I guess it just seemed to obvious, the only file in the directory was an image file?
Thanks to you for trying to help me out. This problem has been solved now.

160GB is internal harddisk with the dual boot : Suse+Mint
500GB is external harddisk with Mint.

What was so obvious in that thread ? Yes, I am a Grub illiterate.
 
  


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
multi booting GRUB cd cannot find menu.lst bowserevilking Linux - General 1 10-17-2009 08:49 PM
to add Mandriva grub boot lines to the main menu.lst file, using 2 hard drives james2b Linux - Newbie 5 10-09-2008 06:20 PM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 01:29 PM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
Grub - how do I change which partition is used to find menu.lst nickhen Linux - General 1 01-24-2005 01:48 PM

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

All times are GMT -5. The time now is 07:38 PM.

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