Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    menu.lst missing


    Hi,

    I used Clonezilla to create RAID 1, partition and install Debian Lenny on a server. (Company's database server).

    The fstab file resides in /newinstall/etc. And all partitions are mounted on /newinstall, not on /.

    So, for example, partitions like /var, and /usr reside in /newinstall as in /newinstall/var and /newinstall/usr. This is because the /var and /usr reside on Clonezilla, not on Debian.

    RAID 1 was created, fstab populated, and OS installed using a script.

    However, now I cannot locate menu.lst. We do not have a separate /newinstall/boot partition though. This partition resides in the /newinstall.

    What happened to menu.lst and how do I locate it?

  2. #2
    Try

    Code:
    locate grub
    I refuse to let fear and fear of others rule my life. It puts my humanity at risk.
    Accepting Death is the only way to stay alive.

  3. #3
    Quote Originally Posted by rokytnji View Post
    Try

    Code:
    locate grub
    I get this error :
    HTML Code:
    -su: locate: command not found
    when I run that command.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jan 2012
    Location
    Central Hell, CA
    Posts
    4
    Quote Originally Posted by anaigini45 View Post
    I get this error :
    HTML Code:
    -su: locate: command not found
    when I run that command.
    Use find instead. Find / grub

  6. #5
    I ran this command :

    Code:
    # find / -name grub
    and these were the output :

    Code:
    /newinstall/usr/share/doc/grub
    /newinstall/usr/share/bug/grub
    /newinstall/usr/share/linttan/overrides/grub
    /newinstall/usr/lib/grub
    /newinstall/sbin/grub
    /newinstall/boot/grub
    /usr/lib/grub
    /usr/share/
    /usr/share/grub
    /usr/share/grub/default/grub
    /etc/default/grub
    /etc/bash_completion.d/grub

    Is it possible for grub to be in an alternate directory like /sbin or /lib?

  7. #6
    Look for menu.list in /etc/default/grub. That is the menu.list in grub 2. You can also poke around in /newinstall/boot/grub to see what is in there. Looks like you are running grub2 though instead of legacy grub which uses a menu.lst to boot the os instead of /etc/default/grub in grub 2.

    Code:
    apt-cache policy mlocate
    Code:
    updatedb
    Just tools I use to make running Linux easier.
    I refuse to let fear and fear of others rule my life. It puts my humanity at risk.
    Accepting Death is the only way to stay alive.

  8. #7
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Recent releases of Debian use Grub2 and there is no menu.lst file. The menu file for Grub2 is grub.cfg which should be in /newinstall/boot/grub based on your output above. The original Grub files are also in /usr/lib/grub or on your cloned system, /newinstall/usr/lib/grub. The /lib/grub directory does not have a grub.cfg file so you need to look in /newinstall/boot/grub for it.

  9. #8
    I checked in the directory /newinstall/boot/grub, and the only file in it is 'device.map'.
    In /newinstall/usr/lib/grub, the only file is 'i386-pc'
    In /usr/lib/grub, the files available are :

    -i386-pc
    -grub-mkconfig -> ../ ../share/grub/grub-mkconfig_lib

    I believe the latter is a linked file.

    And to locate the grub.cfg specifically, I ran the command :

    Code:
    # find / -name grub.cfg
    and the output was :

    HTML Code:
    /live/image/EFI/boot/grub.cfg
    And this is the output of /newinstall/etc/fstab :

    HTML Code:
    root@debian:~# cat /newinstall/etc/fstab
    # UNCONFIGURED FSTAB FOR BASE SYSTEM
    /dev/md0 /   ext3    defaults    0   1
    proc  /proc   proc    defaults    0   0
    /dev/md1 none    swap    sw   0  0
    /dev/md2 /var    ext3    nosuid,nodev    0   2
    /dev/md3 /usr    ext3    nodev    0   2
    /dev/md4 /tmp    ext3    nosuid,nodev    0   2
    /dev/md5 /var/lib/postgresql/8.3/fast ext3 noexec,nosuid,nodev,noatime 0  2
    /dev/md6 /var/lib/postgresql/backups ext3 noexec,nosuid,nodev 0  2
    /dev/md7 /var/lib/postgresql/8.3/main ext3 noexec,nosuid,nodev,noatime 0  2
    /dev/hda /cdrom  iso9660 ro,noauto,user  0   0
    nfs:/home    /home   nfs user,exec,suid,nolock   0   0
    root@debian:~#
    The partitions are mounted directly to /var, /tmp, /, /usr, etc etc. Could this be the reason for the grub not properly created?
    Last edited by anaigini45; 12-18-2013 at 08:00 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •