LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-29-2012, 06:10 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
Cannot see /dev/sda1 boot in LUKS - LVM setup


I am so happy about the new release of Slackware 14.0 that I immediately started to reinstall my test boxes.
The first is a Slackbox with LVM and LUKS encrypted partition. Ẃhere I have my hard-drive partitioned the same way how it is described in the README_CRYPT.TXT.

/dev/sda1 /boot
/dev/sda2 /LUKS-LVM

I have completed such installations successfully several times but now I was surprised that I couldn't choose /dev/sda1 for /boot. I just cannot see my partition /dev/sda1 in the list.

I am going to try another installation on different box.
 
Old 09-29-2012, 06:44 AM   #2
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 204

Rep: Reputation: 44
Are you sure you added /dev/sda1 partition to be mounted at /boot when installing? I have just seen this error as I am doing basically the same as you. It turns out that the problem was that I forgot to add /dev/sda1 mapping, so the installation put /boot on the root, which is in the LVM part...

I think I could fix this by hand (copying the contents of the old /boot to the new one in /edv/sda1 and fixing /etc/fstab), but I thought it would be safer to go the slow route: run setup again and let it do the job right.
 
Old 09-29-2012, 06:54 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by metageek View Post
I think I could fix this by hand (copying the contents of the old /boot to the new one in /edv/sda1 and fixing /etc/fstab), but I thought it would be safer to go the slow route: run setup again and let it do the job right.
I added the partition exactly as you noted - manually into fstab and copy the content from the existing boot before I run mkinitrd... .

When I first run setup (in this installation) at point where you choose / ,/home I exit the script and verified whether the /dev/sda1 exists. It was there and I rerun the setup but all I could see was:
/dev/cryptvg/root
/dev/cryptcg/home
/dev/mapper/slackluks

I will see whether the second install on another box will give the same result.
 
Old 09-29-2012, 07:01 AM   #4
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 204

Rep: Reputation: 44
I just finished reinstalling and confirm that now lilo works and sees /dev/sda1 as /boot.
All is well.
 
1 members found this post helpful.
Old 09-29-2012, 08:30 AM   #5
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by metageek View Post
I just finished reinstalling and confirm that now lilo works and sees /dev/sda1 as /boot.
All is well.
What do you mean with "now lilo works"? It means that you tried the installation of such encrypted system and it works for you - or something has been changed and now it works?

I am asking because I tried to do everything from the beginning and I found out that at step "Setting up root Linux partition" I can still see the /dev/sda1 partition in the list. But after this step when I choose /dev/cryptvg/root > Format with ext4 > I get back to the Step "Setting up other Linux partitions" and here in the list of devices I already cannot see the /dev/sda1.
-------------------
EDIT
Ok it looks like there is some problem with that hardware (HP Proliant micro N36L) on the other box it works (I can see /dev/sda1 - maybe hardware bug).

Thanks for your answer

Last edited by hua; 09-29-2012 at 08:52 AM.
 
  


Reply



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
LUKS LVM with usb token at boot mrmnemo Ubuntu 3 02-26-2011 08:35 AM
Mounting encrypted LVM - Device /dev/.../lv_home is not a valid LUKS device. recarv Linux - Hardware 3 02-15-2011 02:38 PM
[SOLVED] Combining LUKS and LVM... LILO fails to boot STDOUBT Slackware - Installation 4 06-10-2010 09:58 PM
[SOLVED] Adding a volume to a LUKS/LVM setup bgeddy Slackware 6 03-21-2010 06:37 PM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM

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

All times are GMT -5. The time now is 12:01 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