LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2012, 10:46 AM   #1
velouria
Member
 
Registered: May 2008
Posts: 57

Rep: Reputation: 15
fsck on encrypted partition


hi all,

my home partition is encrypted. when i try to boot on fedora 16 i get 'try to run fsck manually'. I try and get fsck.crypto:not found

what should be the output of modprobe dm-crypt? and cryptsetup luksOpen /dev/hda5 crypt1?

my home partition is sda2. does that mean i should replace hda5 by sda2 in the command above?

in any case after typing exit it boots normally

can anyone help me to fix this?
 
Old 02-05-2012, 11:28 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by velouria View Post
hi all,

my home partition is encrypted. when i try to boot on fedora 16 i get 'try to run fsck manually'. I try and get fsck.crypto:not found

what should be the output of modprobe dm-crypt? and cryptsetup luksOpen /dev/hda5 crypt1?

my home partition is sda2. does that mean i should replace hda5 by sda2 in the command above?
If the encrypted partition is on /dev/sda2, then you would need to run
Code:
cryptsetup luksOpen /dev/sda2 crypt1
fsck /dev/mapper/crypt1
 
Old 02-06-2012, 04:19 AM   #3
velouria
Member
 
Registered: May 2008
Posts: 57

Original Poster
Rep: Reputation: 15
hi and thank you,

it doesn't seem to work though. the output is

[root@localhost liveuser]# fsck /dev/mapper/crypt1
fsck from util-linux-ng 2.18
fsck: fsck.LVM2_member: not found
fsck: Error 2 while executing fsck.LVM2_member for /dev/mapper/crypt1

what should i do now?
 
Old 02-06-2012, 02:46 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Ouch! I didn't realize LVM was involved. Since cryptsetup was able to open the partition, it sounds like you have an encrypted partition used as an LVM logical volume. I've never used that sort of LVM setup, but I believe you would need to run "lvscan" to identify the LVM volume names and then give one of those volume names to fsck in place of "/dev/sda2". You might need to do a physical volume scan ("pvscan") first.

I have no experience mixing LVM with encryption, and I have no easy way to test any of it. Sorry.
 
  


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
fsck or equivalent for my encrypted home directory cantab Ubuntu 2 09-20-2010 01:41 PM
I may have lost my encrypted partition Syl Ubuntu 3 04-10-2010 03:26 PM
After running "fsck"... No longer able to open encrypted drive... Any chance?... airstuff Linux - General 7 08-11-2009 06:33 AM
Encrypted FS Partition Scheme? DJ Cacophony Linux - Newbie 1 10-01-2004 04:52 PM
Encrypted partition? hjles Slackware 1 01-25-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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