LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 05-22-2015, 12:37 PM   #1
bluejam
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
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

Last edited by bluejam; 05-30-2015 at 01:10 AM. Reason: Update
 
Old 05-23-2015, 09:26 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Please post /boot/grub2/menu.cfg from Debian 8 and
fdisk -l from your harddisk(s).
 
1 members found this post helpful.
Old 05-24-2015, 10:19 AM   #3
bluejam
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Keruskerfuerst View Post
Please post /boot/grub2/menu.cfg from Debian 8 and
fdisk -l from your harddisk(s).
Hi

/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
 
Old 05-30-2015, 01:12 AM   #4
bluejam
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Keruskerfuerst View Post
Please post /boot/grub2/menu.cfg from Debian 8 and
fdisk -l from your harddisk(s).
I have now got a working Linux Lite and marked this thead as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Grub2 automatically boot from a secondary partition if the primary fails? sharkman Linux - Desktop 8 12-06-2014 03:09 PM
[SOLVED] OpenSuSe12.3 - Help Fix Grub2 Syntax Errors (was - Replace Grub2 w/ Lilo) enorbet SUSE / openSUSE 9 12-08-2013 04:09 AM
Ubuntu 12.04 fails to install grub2 Drone4four Linux - Newbie 1 04-27-2012 03:58 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
APM + upgrade to GRUB2 = fails to poweroff kevinbenko Linux - Software 4 06-09-2010 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration