LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2016, 07:26 AM   #16
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled

In the first example above:
/dev/mapper/luks-f25862ef-6be7-487f-80c0-aa21ce26319e: UUID="c4ccc1dc-6738-48a0-8922-afa3b7ee11fd" TYPE="ext4" #line 9

which is missing. The UUID & Luks-... do not match.

You are saying I should have always used the UUID vs. the luks-.... line in cryptab & fstab ?
How should the whole line look?
 
Old 12-13-2016, 08:47 AM   #17
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by HardenedCriminal View Post
In the first example above:
/dev/mapper/luks-f25862ef-6be7-487f-80c0-aa21ce26319e: UUID="c4ccc1dc-6738-48a0-8922-afa3b7ee11fd" TYPE="ext4" #line 9

which is missing. The UUID & Luks-... do not match.
They won't match. The first contains the UUID of the LUKS container. The second is the UUID of the ext4 filesystem within that container. If those were the same it would violate the expected uniqueness of UUIDs.

That name in /dev/mapper can really be anything. It is determined by the first argument in the /etc/crypttab line, and the device name in the /etc/fstab entry needs to match. Using a name that contains the LUKS UUID is just a convention that the installer uses. Your line in /etc/crypttab could be as simple as
Code:
mystuff UUID=31e49c7a-7071-4a36-a58d-9a35638e5235 none
and your /etc/fstab would then need an entry referencing "/dev/mapper/mystuff".
 
Old 12-13-2016, 09:10 AM   #18
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled
do I make a empty file in /dev/mapper/mystuff

or do I use:
UUID=31e49c7a-7071-4a36-a58d-9a35638e5235 none
or something else?


A current working fstab:

/dev/mapper/luks-f20124ef-6be7-487f-80c0-aa21ce21239e /home/BIGDRIVE ext4 defaults 0 2 #SDB

so all it needs to be is:

/dev/mapper/mystuff /home/BIGDRIVE ext4 defaults 0 2 #SDB
 
Old 12-13-2016, 09:30 AM   #19
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by HardenedCriminal View Post
do I make a empty file in /dev/mapper/mystuff

or do I use:
UUID=31e49c7a-7071-4a36-a58d-9a35638e5235 none
or something else?
The node /dev/mapper/mystuff gets created when the LUKS container is unlocked. The line in /etc/crypttab would be "mystuff UUID=31e49c7a-7071-4a36-a58d-9a35638e5235 none", as I said before. Using "none" as the password causes a password prompt when booting. Perhaps you are doing something else. I'd have to see an /etc/crypttab line from one of your other systems (with any actual password redacted) to know.
Quote:
A current working fstab:

/dev/mapper/luks-f20124ef-6be7-487f-80c0-aa21ce21239e /home/BIGDRIVE ext4 defaults 0 2 #SDB

so all it needs to be is:

/dev/mapper/mystuff /home/BIGDRIVE ext4 defaults 0 2 #SDB
Yes, if that's how you set up /etc/crypttab. The name in /dev/mapper is completely arbitrary. It just needs to match what you use in /etc/crypttab.
 
Old 12-13-2016, 01:30 PM   #20
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled
thanks. I will try tomorrow, super busy with Christmas business right now.
 
  


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
2nd hard Drive grabro Linux - Hardware 1 02-05-2005 05:49 AM
2nd Hard Drive snutz411 Linux - Hardware 3 03-24-2004 12:52 PM
2nd hard drive neo.sarcastic Linux - Hardware 4 09-22-2003 11:22 PM
2nd Hard Drive Tad Linux - Hardware 6 05-22-2003 12:47 PM
2nd hard drive jarrodatt Linux - Hardware 1 11-12-2002 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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