Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LUKS header always disappears after reboot [RESOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Tue Jan 03, 2012 1:34 pm    Post subject: LUKS header always disappears after reboot [RESOLVED] Reply with quote

Not sure if this is the appropriate forum...

I have a dedicated drive used just for data. The entire drive is encrypted with cryptsetup & LUKS. Since the drive is 3tb in size I had to create the partition with parted. The partition is aligned for optimal performance.

Code:
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 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
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT


GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           
Model: ATA Hitachi HDS5C303 (scsi)
Disk /dev/sdb: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  3001GB  3001GB

(parted) align-check opt 1                                               
1 aligned


For some reason, every time I reboot the LUKS header is no longer recognized. I checked to make sure the appropriate modules are loaded into memory. The first time I just redid it thinking maybe I did something wrong. The second time now this has happened I'm thinking something else is going on. Why does this keep happening? How do I fix it without redoing it as I have data on this drive.

Code:
# cryptsetup luksDump /dev/sdb1
Device /dev/sdb1 is not a valid LUKS device.


Last edited by plut0 on Fri Jan 06, 2012 2:11 am; edited 1 time in total
Back to top
View user's profile Send private message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Fri Jan 06, 2012 2:11 am    Post subject: Reply with quote

I fixed it. This had nothing to do with LUKS. I needed to add GPT support in the kernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum