LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   find: `/boot/grub/menu.lst': No such file or directory (https://www.linuxquestions.org/questions/linux-mint-84/find-%60-boot-grub-menu-lst-no-such-file-or-directory-837603/)

Aquarius_Girl 10-12-2010 09:39 AM

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 !

yancek 10-12-2010 11:15 AM

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

Aquarius_Girl 10-12-2010 11:32 AM

Thanks for replying.
Quote:

Originally Posted by yancek (Post 4125090)
Did you install Linux Mint Grub to the mbr?

I don't know. How should i find out ?

Quote:

Originally Posted by yancek (Post 4125090)
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 :confused: Am I doing it wrong or I have to install grub now ?

yancek 10-12-2010 03:30 PM

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

syg00 10-12-2010 08:14 PM

"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.

Aquarius_Girl 10-14-2010 05:54 AM

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 (Post 4125298)
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 (Post 4125298)
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 (Post 4125298)
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 (Post 4125298)
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

alan_ri 10-14-2010 06:21 AM

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.

yancek 10-14-2010 10:14 AM

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.

Aquarius_Girl 10-14-2010 10:45 AM

yancek,
Thanks for following up.

Quote:

Originally Posted by yancek (Post 4127276)
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 (Post 4127276)
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 (Post 4127276)
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 ??? :D
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 #


TobiSGD 10-14-2010 11:16 AM

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.

Aquarius_Girl 10-14-2010 11:19 AM

Quote:

Originally Posted by TobiSGD (Post 4127339)
It may help to call the command yourself.

I do not understand what you said here and what i am supposed to do ?

TobiSGD 10-14-2010 11:47 AM

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.

yancek 10-14-2010 12:38 PM

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.

Aquarius_Girl 10-15-2010 12:41 PM

Quote:

Originally Posted by TobiSGD (Post 4127381)
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.

Aquarius_Girl 10-15-2010 12:48 PM

Quote:

Originally Posted by yancek (Post 4127446)
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.


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