Linux Lite Grub2 fails
Hi
Just installed Linux Lite 2.4 with the grub2 bootloader on sda7 The mbr bootloader is from Debian 8 and running update-grub from Debian produces an entry in boot screen for Linux Lite. On booting an error message gives "file not found" Displaying the script for this entry the last two lines shows fi linux If I edit this script as follows and press F10 the system boots and I am able to send this question linux /boot/vmlinuz-3.13.0-24-generic root=/dev/sda7 initrd /boot/initrd.img-3.13.0-24-generic How can I make this perminant by editing Debian Grub2 ? Looks like this is a problem with "Linux Lite" as all my other Distro's work fine and I have found some info online. I have tried a few things but with no success so I shall use "Handy Linux" instead to do what I require. I did not know how to start a new distro thead so posted here Thanks What follows is NOT A GOOD solution but it worked After generating a grub.cfg with update-grub I edited the Debian grub.cfg with geany. Finding the first entry for Linux Lite and after the word linux I added these two lines /boot/vmlinuz-3.13.0-24-generic root=/dev/sda7 ro initrd /boot/initrd.img-3.13.0-24-generic This addition will of course have to be repeated if update-grub is used again. To make this easier I copied the two lines to the heading and made them comments by preceding them with an # This allows me to boot Linux Lite from my Debian Grub Menu. ALL OTHER DISTRO'S I HAVE USED SEEM TO WORK WITH GRUB2 Thanks to Keruskerfuerst for pointing me to the .cfg file John |
Please post /boot/grub2/menu.cfg from Debian 8 and
fdisk -l from your harddisk(s). |
Quote:
/boot/grub2/menu.cfg did not exist But there was /boot/grub/grub.cfg but the file was 14 pages long All other Distros on the disks booted from the Debian menu I have included the Debian and Linux Lite entries only As you can see the the Linux Lite entry is not complete but but works if I edit it menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulin$ load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=a$ else search --no-floppy --fs-uuid --set=root 5f6b2614-eec9-4868-8c71-cdd7fd03e0d1 fi echo 'Loading Linux 3.16.0-4-686-pae ...' linux /boot/vmlinuz-3.16.0-4-686-pae root=UUID=5f6b2614-eec9-4868-8c71-cdd7fd03e0d1 ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-4-686-pae menuentry 'Linux Lite 2.4 (14.04) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober$ insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msd$ else search --no-floppy --fs-uuid --set=root be761cb4-4a13-4579-8966-4e54b35127df fi linux Running fdisk -l gives the output below Disk /dev/sdc: 149.1 GiB, 160041885696 bytes, 312581808 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000633a0 Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 37750783 37748736 18G 83 Linux /dev/sdc2 37750784 77596671 39845888 19G 83 Linux /dev/sdc3 77596672 312580095 234983424 112.1G 5 Extended /dev/sdc5 77598720 119541759 41943040 20G 83 Linux /dev/sdc6 119543808 163583999 44040192 21G 83 Linux /dev/sdc7 163586048 209723391 46137344 22G 83 Linux /dev/sdc8 209725440 241182719 31457280 15G 83 Linux Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000ced0a Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 37750783 37748736 18G 83 Linux /dev/sdb2 37750784 976773119 939022336 447.8G 5 Extended /dev/sdb5 37752832 90181631 52428800 25G 83 Linux /dev/sdb6 90183680 719329279 629145600 300G 83 Linux /dev/sdb7 719331328 771760127 52428800 25G 83 Linux Disk /dev/sda: 74.5 GiB, 80026361856 bytes, 156301488 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000688d4 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 25167871 25165824 12G 83 Linux /dev/sda2 25169918 156301311 131131394 62.5G 5 Extended /dev/sda5 25169920 30474239 5304320 2.5G 82 Linux swap / Solaris /dev/sda6 30476288 57739263 27262976 13G 83 Linux /dev/sda7 57741312 87101439 29360128 14G 83 Linux /dev/sda8 87103488 118560767 31457280 15G 83 Linux /dev/sda9 118562816 156301311 37738496 18G 83 Linux |
Quote:
|
All times are GMT -5. The time now is 04:20 AM. |