Results 1 to 6 of 6

Thread: USB Flash drive boots just fine but grub.cfg file is missing, can't edit boot menu.

  1. #1
    Join Date
    Apr 2013
    Beans
    4

    Question USB Flash drive boots just fine but grub.cfg file is missing, can't edit boot menu.

    I have BackBox Ubuntu installed on a USB flash drive and it boots and runs just fine. However I would like to modify the boot menu but can't find a grub.cfg file. Therefore grub-update will not work. I've also tried using Grub Customizer but it shows both device.map and grub.cfg missing. Most posts I've found with grub.cfg missing have boot problems which I am not having. Is my setup not really using Grub but an alternative boot system? Any help to reconfigure the boot menu on this system would be appreciated.

  2. #2
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: USB Flash drive boots just fine but grub.cfg file is missing, can't edit boot men

    Quote Originally Posted by cozway View Post
    I have BackBox Ubuntu installed on a USB flash drive and it boots and runs just fine. However I would like to modify the boot menu but can't find a grub.cfg file. Therefore grub-update will not work. I've also tried using Grub Customizer but it shows both device.map and grub.cfg missing. Most posts I've found with grub.cfg missing have boot problems which I am not having. Is my setup not really using Grub but an alternative boot system? Any help to reconfigure the boot menu on this system would be appreciated.
    hi
    i think your problem is that you have only a boot-abel usb - not a real system on your stick. did you erver tried to update a CD-read only.
    see: http://www.ubuntu.com/download/help/...tick-on-ubuntu
    you have to install a real system on your usb
    good luck and much fun
    ciao
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  3. #3
    Join Date
    Apr 2013
    Beans
    4

    Re: USB Flash drive boots just fine but grub.cfg file is missing, can't edit boot men

    System was installed from BackBox ISO with Unetbootin.

  4. #4
    Join Date
    Jul 2005
    Location
    England
    Beans
    13,515

    Re: USB Flash drive boots just fine but grub.cfg file is missing, can't edit boot men

    As rnerwein says, it looks as if you are simply booting to a live USB system, not a proper installed version of Ubuntu. If you have another OS on this or some other machine, plug in the USB and tell us what folders are on it.

    I suspect it will have a list like my screenshot, which is a live system only, not an installed OS.
    Attached Images Attached Images
    DISTRO: Xubuntu 12.04-64bit --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  5. #5
    Join Date
    Apr 2013
    Beans
    4

    Re: USB Flash drive boots just fine but grub.cfg file is missing, can't edit boot men

    I think you both have identified the problem. Thanks, Joseph

  6. #6
    Join Date
    Apr 2013
    Beans
    4

    Smile RE: USB Flash drive boots just fine but grub.cfg file is missing, can't edit boot men

    SOLVED: The solution was to simply edit the syslinux file. If booted up in Linux, it is in the /CDROM folder. If your flash drive partition is FAT or NTFS you can access this file simply in the root of the flash drive from Windows. Below is the original and newly edited syslinux files with their corresponding boot menus.

    Original syslinux file contents:

    default menu.c32
    prompt 0
    menu title BackBox Linux
    timeout 100


    label ubnentry0
    menu label Start BackBox in Persistent Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz file=/cdrom/preseed/backbox.seed boot=casper persistent quiet splash locale=en_US bootkbd=us console-setup/layoutcode=us vga=791 -- persistent


    label ubnentry1
    menu label Start BackBox in Forensic Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd_forensic.gz file=/cdrom/preseed/backbox.seed boot=casper quiet splash locale=en_US bootkbd=us console-setup/layoutcode=us vga=791 -- persistent


    label ubnentry2
    menu label Start BackBox in Text Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz file=/cdrom/preseed/backbox.seed boot=casper quiet text vga=791 -- persistent


    label ubnentry3
    menu label Start BackBox in Compatibility Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz file=/cdrom/preseed/backbox.seed boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll -- persistent


    label ubnentry4
    menu label Check disc for defects
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz boot=casper integrity-check quiet splash vga=791 -- persistent


    label ubnentry5
    menu label Test memory
    kernel /install/mt86plus
    append initrd=/ubninit persistent

    Original boot menu:


    Newly edited syslinux file:

    default menu.c32
    prompt 0
    menu title BackBox Linux
    timeout 100


    label ubnentry0
    menu label Start BackBox in Persistent Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz file=/cdrom/preseed/backbox.seed boot=casper persistent quiet splash locale=en_US bootkbd=us console-setup/layoutcode=us vga=791 -- persistent


    label ubnentry1
    menu label Start BackBox in Forensic Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd_forensic.gz file=/cdrom/preseed/backbox.seed boot=casper quiet splash locale=en_US bootkbd=us console-setup/layoutcode=us vga=791 -- persistent


    label ubnentry2
    menu label Start BackBox in Text Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz file=/cdrom/preseed/backbox.seed boot=casper quiet text vga=791 -- persistent


    label ubnentry3
    menu label Start BackBox in Compatibility Mode
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz file=/cdrom/preseed/backbox.seed boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll -- persistent


    label ubnentry4
    menu label Check disc for defects
    kernel /casper/vmlinuz
    append initrd=/casper/initrd.gz boot=casper integrity-check quiet splash vga=791 -- persistent


    label ubnentry5
    menu label Test memory
    kernel /install/mt86plus
    append initrd=/ubninit persistent

    New Boot Menu:

Tags for this Thread

Bookmarks

Posting Permissions

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