LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-22-2012, 07:52 AM   #1
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia 3, Debian Wheezy, Maemo, Linux Mint 14.
Posts: 165

Rep: Reputation: Disabled
cryptsetup UUID/dev/sdax problem


Anyone with extra knowledge on cryptsetup and uuid could probably help me with this issue.

I am running multiple distroes, one with cryptsetup luks. This partition and distro used to be the main one, then I changed to another distro on another partition as the main one.
I currently have /dev/sda1 as /boot, /dev/sda7 as the current main distro.
I have /dev/sda5 as cryptsetup partition dm-0.

Problem is that the cryptsetup partition used to be /dev/sda6 and is now /dev/sda5. Additionally UUID has been changed (quite sure, not certain).
So, I tried to boot my /dev/sda5 distro with cryptsetup, everything was messed up, partition was not found etc. I changed grub config, I changed fstab in /dev/sda5 (which I can mount normally through my main distro).

This helped somewhat, but then I ended up having a problem with cryptsetup. Cryptsetup still thinkgs /dev/sda5 is /dev/sda6. I get a message when I try to decrypt the partition during boot that /dev/sda5 becomes crypt/sda6. Consequently it refused to decrypt the partition during boot.
I thought it would help to edit /etc/crypttab to match everything, but this did not change anything.

Is there some other way to configure cryptsetup in /dev/sda5 when I am booted in another distro with /dev/sda7?

How is cryptsetup reconfigured to account for changes in device number and/or UUID?

Why does cryptsetup load /dev/sda5 and move it to /crypt/sda6?

Please help!


Ps. I get timeout 1 minute (looking for /dev/sda5/6) for both sda5 and sda6 when booting /dev/sda5 before I can type decryption password. I know this is due to init issues with mismatching UUID. but this should not be relevant?
 
Old 07-23-2012, 10:25 PM   #2
roger_heslop
Member
 
Registered: Oct 2009
Location: Leander, TX
Distribution: CentOS
Posts: 81

Rep: Reputation: 31
I imagine that you are dual booting your system, and trying to get the LUKs encrypted partition to automount within each image?

The first thing I would recommend is to use the UUID of the filesystem in /etc/fstab instead of the drive label - and the UUID of the disk/partition in /etc/crypttab. (You should be able to get the UUID from the disk/partition from the command 'blkid')

If you find you have no success, post outputs from fstab and crypttab.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UUID= syntax not recognized by cryptsetup in initrd LUKSDEV johnbristol Slackware - Installation 12 03-24-2012 05:05 PM
[SOLVED] autofs does't mount /dev/sdaX newbie0101 Linux - Software 2 01-22-2012 04:53 PM
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 07:38 PM
[SOLVED] Alert! /dev/disk/by-uuid problem after bare metal restore of Ubuntu Subject16 Linux - Hardware 4 11-17-2010 09:36 AM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM


All times are GMT -5. The time now is 09:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration