I installed Linux on the disk, I need to edit the menu.lst file, but it does not exist in the specified /boot/grub/ directory. Help find and edit. Petrenko A.M.

  • These commands do not work, but I solved the problem: Menu> Setup> Grub4Dos bootloader config> Search> this menu> go> ok> ok> Edit> menu.lst '> ok. Petrenko A.M. - alexmix pm
  • I want to add more. I installed Puppy, stopped running Ubuntu. I reinstalled Ubuntu, stopped running Puppy (in the boot menu, unnown Puppy was indicated), but I solved the problem: in the boot menu, move the cursor to unnown Puppy, click "e" and delete the line beginning with search , then ctrl-x.Puppy is launched. AM Petrenko - alexmix

4 answers 4

Depends on the grub version. in 1.x the config branch was called menu.lst . in the 2.x hornbeam, a branch may be called differently, but in any case it will be in /boot , etc. View the files for similarity to the config in content - you will find exactly)) there are not very many of them)

    find / -name (file name without parentheses): the command will search for the file you need across the entire file structure, including all mounted drives (including network drives) and display the full path to it.

    find -x/ -name (file name without brackets): the same, but the search will be carried out exclusively on the boot disk of your system.

    find . -name 'имя файла' find . -name 'имя файла' : (with the specified syntax preserved) - the search will be performed in the current directory and all its subdirectories.

    find . -mtime find . -mtime - (here you need the number to enter without parentheses): this command, like the previous one, searches the current directory and all its subdirectories, but its difference is that, for example, specifying the number 3 ( find . -mtime -3 ) the team will give you all the files that have been changed in the last three days. By specifying 0, the command will find only those files whose date has been changed.

    • There is also a gui utility: catfish, I often use it, very convenient. - r1za pm

    In general, this menu.lst file is usually located in / boot / grub. If not, then you can search by name.

     locate menu.lst 

    or

     find . -name menu.lst 

    Before you search, it is probably worth running update-grub.

      In cgrub2 file is called "/boot/grub/grub.cfg" or we create a file with our boot option in "/etc/grub.d/" .

      • one
        And have you already forgotten everything about / etc / default / grub? - areshin
      • Thanks for the addition. - Semyon Ledovsky