LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-16-2013, 02:30 AM   #1
anon309
Registered User
 
Registered: Oct 2013
Distribution: Moving On
Posts: 187

Rep: Reputation: 20
Adding encrypted luks Slackware 14.1 to Fedora grub2


I have been trying everything and I am missing something here. I am trying to add Slackware's lilo entry to Fedora grub2. I created a custom file, 31_custom, in grub.d and made it executable in the terminal (chmod a+x). I followed what reply #14 did at this thread, https://www.linuxquestions.org/quest...52#post5061552 I than ran
Quote:
su -c 'grub2-mkconfig -o /boot/grub2/grub.cfg'
This added the entry just fine in the grub boot menu but it won't boot. It says I need to load the kernel first.

I have five hard drives. One IDE and four SATA. The bios reads them as,

0 IDE
1 SATA (Windows/Fedora)
2 SATA (Slackware)
3 SATA
4 SATA


Here is my lilo menu entry,

Quote:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-3.10.17
initrd = /boot/initrd.gz
root = /dev/cryptvg/root
label = Slackware
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
I think since I have slackware encrypted with luks+lvm that this may be the problem. Or I am just missing something. Or both.

Anyone know what the grub2 entry should look like?

Last edited by anon309; 11-16-2013 at 07:00 AM.
 
Old 11-16-2013, 07:39 PM   #2
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
Hi,

I don't know the proper fix for that but I just wanted to give you a suggestion :

Boot into your Slackware install and install Lilo on your /boot partition NOT on your MBR.

Then when still in Slackware, open your grub.cfg file and create an manual entry that will make Grub2 (installed on the MBR) do a chainload to the partition where you just installed Lilo.

That way, you will let Lilo handle the boot process of your Slackware setup and use Grub2 for Fedora only.

Also, it will reduce the possibility of breakages

The addition of Grub2 to the main repository of Slackware is quite recent (mostly because of the UEFI-based machines).

That's one of the reason that Grub2 is not that well documented for Slackware.

Hope this helps
 
1 members found this post helpful.
  


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
Slackware 14.1: LUKS encrypted volumes + mkinitrd => missing dmsetup and can't unlock furryspider Slackware 4 11-16-2013 10:58 AM
[SOLVED] Kernel update on LUKS and LVM encrypted Slackware, mount fails KMBS Slackware 15 02-08-2010 02:23 PM
Slackware 12.2 + RAID-1 + LVM + LUKS encrypted root gargamel Slackware 35 12-17-2009 12:25 PM
Loaded Fedora 9 (twice) in encrypted hard drive, now I can't get past LUKS? GaveUpOnTV Linux - Newbie 3 05-04-2009 03:48 PM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 03:20 AM

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

All times are GMT -5. The time now is 09:29 PM.

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