Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: boot-repair worked - once

  1. #21
    Join Date
    Mar 2009
    Beans
    100

    Re: boot-repair worked - once

    Well, by formatting my / partition onto the spinning HDD it installed. But despite me specifying that I wanted my /home on a separate partition, no format, where I had previously cp all my files, it decided not to do that and so I have new install of 11.10. Now moving my /home partition and replace the empty one they gave me. Ubiquity is seriously crap.

  2. #22
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: boot-repair worked - once

    Oh come on, I am doing clean installs since 9.10 and it has never ignored attaching my existing /home partition. You either made a mistake during the install, or you have some corrupted install media... I don't know what to say...

    If you used the manual partitioning and selected the correct options, it should attach the partition you tell it to for /home.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  3. #23
    Join Date
    Mar 2009
    Beans
    100

    Re: boot-repair worked - once

    You are right, it did create the /home on a separate /dev/sdc3 partition. The problem was that I had read instructions to put /home on that partition, this was not correct, you copy the users directories directly into that partition, there is no longer a /home directory at the base. Also note that since you had to do the copy as sudo all files are then owned by root, so I had to "sudo chown -R david:david /home/david"

    So I have a working machine on a spinning HDD, which I have to give back at some point. I give up on the SSDs, cannot find an effective way to debug why Ubuntu does not seem to mount /dev/mapper/vgssd-lvssd (not even sure how thise relates to the lv called /dev/vgssd/lvssd). Maybe add vgchange -a y /dev/vgssd to the boot.cfg?

  4. #24
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: boot-repair worked - once

    Well, since now you did the install without LVM (right?) there will not be many option to check why. The only thing in my mind, is to look at the menu entries in /boot/grub/grub.cfg. When using LVM it should load the module in the first lines of the menu entry, something like 'insmod lvm'.

    Other than that, I don't have many clues. It might be some sort of issue with your hardware, just one of those things.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  5. #25
    Join Date
    Mar 2009
    Beans
    100

    Re: boot-repair worked - once

    Here is the grub.cfg. It does insmod lvm at the start, but I note not in the "Ubuntu, with Linux 3.0.0-12-generic" section?

    Code:
    #
    # 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 video_bochs
      insmod video_cirrus
    }
    
    insmod lvm
    insmod part_msdos
    insmod part_msdos
    insmod ext2
    set root='(vgssd-lvssd)'
    search --no-floppy --fs-uuid --set=root 1658fd81-31a4-490d-92e5-f9ab28401687
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod raid
      insmod mdraid09
      insmod part_msdos
      insmod part_msdos
      insmod part_msdos
      insmod ext2
      set root='(md0,1)'
      search --no-floppy --fs-uuid --set=root a26a1220-9bdd-4d3a-b987-a46ad25c0b22
      set locale_dir=($root)/grub/locale
      set lang=en_GB
      insmod gettext
    fi
    terminal_output gfxterm
    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
    if background_color 44,0,30; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    if [ ${recordfail} != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod gzio
        insmod raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(md0,1)'
        search --no-floppy --fs-uuid --set=root a26a1220-9bdd-4d3a-b987-a46ad25c0b22
        linux    /vmlinuz-3.0.0-12-generic root=/dev/mapper/vgssd-lvssd ro   quiet splash vt.handoff=7
        initrd    /initrd.img-3.0.0-12-generic
    }
    menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod gzio
        insmod raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(md0,1)'
        search --no-floppy --fs-uuid --set=root a26a1220-9bdd-4d3a-b987-a46ad25c0b22
        echo    'Loading Linux 3.0.0-12-generic ...'
        linux    /vmlinuz-3.0.0-12-generic root=/dev/mapper/vgssd-lvssd ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-3.0.0-12-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 raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(md0,1)'
        search --no-floppy --fs-uuid --set=root a26a1220-9bdd-4d3a-b987-a46ad25c0b22
        linux16    /memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod raid
        insmod mdraid09
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(md0,1)'
        search --no-floppy --fs-uuid --set=root a26a1220-9bdd-4d3a-b987-a46ad25c0b22
        linux16    /memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /vmlinuz root=/dev/sdc2
        initrd /initrd.img
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /vmlinuz root=/dev/sdc2
        initrd /initrd.img
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /vmlinuz root=/dev/sdc2
        initrd /initrd.img.old
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /boot/vmlinuz-3.0.0-12-generic root=/dev/sdc2
        initrd /boot/initrd.img-3.0.0-12-generic
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /boot/vmlinuz-3.0.0-14-generic root=/dev/sdc2
        initrd /boot/initrd.img-3.0.0-14-generic
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /boot/vmlinuz-3.0.0-15-generic root=/dev/sdc2
        initrd /boot/initrd.img-3.0.0-15-generic
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /boot/vmlinuz-3.0.0-16-generic root=/dev/sdc2
        initrd /boot/initrd.img-3.0.0-16-generic
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /boot/vmlinuz-3.0.0-17-generic root=/dev/sdc2
        initrd /boot/initrd.img-3.0.0-17-generic
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /vmlinuz root=/dev/sdc2
        initrd /initrd.img
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /vmlinuz root=/dev/sdc2
        initrd /initrd.img
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /vmlinuz root=/dev/sdc2
        initrd /initrd.img.old
    }
    menuentry "Ubuntu 11.10 (11.10) (on /dev/sdc2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 41953c50-b4b0-4c5f-9970-52f50f599ab8
        linux /vmlinuz.old root=/dev/sdc2
        initrd /initrd.img.old
    }
    ### 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 ###
    Last edited by oldfred; May 3rd, 2012 at 06:08 PM. Reason: Added code tags (# in edit menu)

  6. #26
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: boot-repair worked - once

    Added code tags to make it a bit easier to review.

    It also is strange that you have the insmod part_msdos three times, I have never seen that. But I do not know LVM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 3 of 3 FirstFirst 123

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
  •