Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
I normally boot to ubuntu, with the option of booting to lubuntu or ubuntu netbook remix. It has been awhile since I updated the Lubuntu install, so I booted into ...
  1. #1
    Linux Enthusiast MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    721

    I updated lubuntu on my triple boot system, and lost the other 2

    I normally boot to ubuntu, with the option of booting to lubuntu or ubuntu netbook remix. It has been awhile since I updated the Lubuntu install, so I booted into lubuntu, went to synaptic and did a reload/update. All seemed normal, but now when I boot it only shows the kernals for the lubuntu install, not ubuntu or remix. How do I get grub back to seeing all 3?
    Registered Linux user #526930

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    I normally boot to ubuntu
    Does that mean you were using the Ubuntu Grub to boot all systems previously?

    The first thing I would suggest is to boot lubuntu and run fdisk -l to verify all partitions which were previously there are still there. While booted into lubuntu, check the grub.cfg file to see if there are any entries for you other operating systems.

    Generally, running: sudo os-prober and subsequently sudo update-grub will resolve this.

    If that doesn't work, you might take a look at this Ubuntu Grub site to see if you can find more info:

    https://help.ubuntu.com/community/Grub2

  3. #3
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    If your still struggling with this then posting the output of
    sudo blkid
    sudo cat /boot/grub/grub.cfg
    would be useful, and also the output of
    ls /etc/grub.d/ -l

  4. #4
    Linux Enthusiast MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    721
    blkid
    /dev/sda1: UUID="09f17f83-70ab-4188-81c4-d82b1717c059" TYPE="ext4"
    /dev/sda5: UUID="f849ca00-5137-4223-a106-c554bce2da9a" TYPE="swap"
    /dev/sda6: UUID="986d75c8-0755-448e-b46b-f7e5531e6958" TYPE="ext4"
    /dev/sda7: UUID="964e842f-42ca-40f4-a0c8-e0dbf69fa77c" TYPE="swap"
    /dev/sda8: UUID="b8a37408-9388-40ef-a514-f07db2806d6f" TYPE="ext4"
    /dev/sda9: UUID="f77575d8-0352-46c4-bd9d-bd98fcecfbff" TYPE="swap"
    Registered Linux user #526930

  5. #5
    Linux Enthusiast MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    721
    sudo: cat/boot/grub/grub.cfg: command not found
    david@Daviddesktop:~$ ls /etc/grub.d/ -l
    total 52
    -rwxr-xr-x 1 root root 6831 2010-10-06 07:23 00_header
    -rwxr-xr-x 1 root root 1481 2010-10-06 07:05 05_debian_theme
    -rwxr-xr-x 1 root root 4757 2010-10-06 07:23 10_linux
    -rwxr-xr-x 1 root root 5028 2010-10-06 07:23 20_linux_xen
    -rwxr-xr-x 1 root root 1588 2010-09-24 12:14 20_memtest86+
    -rwxr-xr-x 1 root root 6933 2010-10-06 07:23 30_os-prober
    -rwxr-xr-x 1 root root 214 2010-10-06 07:23 40_custom
    -rwxr-xr-x 1 root root 95 2010-10-06 07:23 41_custom
    -rw-r--r-- 1 root root 483 2010-10-06 07:23 README

    Running yancek's sudo os-prober also showed command not found. The partitions appear to be intact, but when the updated kernel-30 installed, it didn't pick them up. Now my only option is the lubuntu installs kernel -28 or -30

    Thanks for the help, I have updated lots of times without incident, and not sure what went wrong this time.
    Registered Linux user #526930

  6. #6
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    137
    I think a space between cat and /boot might avoid 'command not found.' A workaround when the other way doesn't do it... mount all the root partitions and then update grub.

  7. #7
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Since os-prober reports command not found, I have to ask which version of GRUB are you using?
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  8. #8
    Linux Enthusiast MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    721
    Thanks, output is
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    set have_grubenv=true
    load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi

    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    }

    function recordfail {
    set recordfail=1
    if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }

    function load_video {
    insmod vbe
    insmod vga
    }

    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=640x480
    load_video
    insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ "${recordfail}" = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-30-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    linux /boot/vmlinuz-2.6.35-30-generic root=UUID=986d75c8-0755-448e-b46b-f7e5531e6958 ro quiet splash
    initrd /boot/initrd.img-2.6.35-30-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    echo 'Loading Linux 2.6.35-30-generic ...'
    linux /boot/vmlinuz-2.6.35-30-generic root=UUID=986d75c8-0755-448e-b46b-f7e5531e6958 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.35-30-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    linux /boot/vmlinuz-2.6.35-28-generic root=UUID=986d75c8-0755-448e-b46b-f7e5531e6958 ro quiet splash
    initrd /boot/initrd.img-2.6.35-28-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    echo 'Loading Linux 2.6.35-28-generic ...'
    linux /boot/vmlinuz-2.6.35-28-generic root=UUID=986d75c8-0755-448e-b46b-f7e5531e6958 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.35-28-generic
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 986d75c8-0755-448e-b46b-f7e5531e6958
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###

    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    Registered Linux user #526930

  9. #9
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    All of your entries are (hd0,6) which is sda7. Is that your Lubuntu partition? Have you tried sudo update-grub and if so, what happens? os-prober may not be installed. Lubuntu does use sudo, right?

  10. #10
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Well... never mind my question!
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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