
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.sabayonlinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Mount_Encrypted_Partition&amp;feed=atom&amp;action=history</id>
		<title>HOWTO: Mount Encrypted Partition - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Mount_Encrypted_Partition&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Mount_Encrypted_Partition&amp;action=history"/>
		<updated>2013-05-24T14:10:56Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.4</generator>

	<entry>
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Mount_Encrypted_Partition&amp;diff=18878&amp;oldid=prev</id>
		<title>Hatalar205 at 21:50, 2 November 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Mount_Encrypted_Partition&amp;diff=18878&amp;oldid=prev"/>
				<updated>2012-11-02T21:50:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{i18n| [[HOWTO: Mount Encrypted Partition|en]] [[Tr:HOWTO: Mount Encrypted Partition|tr]]}}&lt;br /&gt;
&lt;br /&gt;
{{Warning| '''If you have lost or do not remember the passphrase you set, your data is just gone and there is nothing that can be done about it. Dont even ask.'''}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Mounting Encrypted Volumes/Partitions=&lt;br /&gt;
&lt;br /&gt;
*NOTE: Since the Anaconda installer has been added to Sabayon iso's disk and/or partition encryption is simply a matter of enabling a check box during installation and adding a password. It's quite easy even for new users. You may also wish to read the following link:&lt;br /&gt;
* [http://wiki.sabayon.org/index.php?title=En:Security#Hard_Disk_Encryption_.26_boot_options Hard Disk Encryption &amp;amp; boot options]&lt;br /&gt;
&lt;br /&gt;
For those wishing or needing to perform this from the command line continue reading the following:&lt;br /&gt;
&lt;br /&gt;
==Using LVM==&lt;br /&gt;
If you are also using LVM then all of the steps found in that how-to '''EXCEPT''' issuing the mount command must be done first. The LVM must be prepped prior to your decrypting it. A change should also be noted that with LVM instead of decrypting something like /dev/sda3 you instead will find the volume to decrypt in /dev/mapper.&lt;br /&gt;
&lt;br /&gt;
You will have to do this manually, as the script that is in place in the LVM how-to automatically mounts the appropriate LVM volumes. If you use that script anyways and things dont work, dont say you haven't been warned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mounting/Decrypting==&lt;br /&gt;
From the livecd you will need to go root, on the livecd the password for root is root.&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;$ su &lt;br /&gt;
Password: &amp;lt;type root here if on livecd&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
Next we will need a little information, namely which partition that the encrypted volume is on. If you have used encryption and LVM together you will have to mount the LVM first as documented elsewhere. For now, if you dont know or remember which partition you installed on we need to find out.&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# fdisk -lu &amp;lt;/pre&amp;gt;}}&lt;br /&gt;
There is no real way to see which exactly is the encrypted partition. What we can do here is look to see which is the largest partition with a linux type. If you have a single linux install, then typically this will be the largest partition listed as linux in the table. In other words look at how many blocks each has.&lt;br /&gt;
&lt;br /&gt;
Now that we have it we can set up to mount it.&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# cd /mnt&lt;br /&gt;
# mkdir enc &amp;lt;/pre&amp;gt;}}&lt;br /&gt;
This made a mount point that we can use in a moment. Next we get to actually get the system to recognize and make the partition usable.&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# cryptsetup luksOpen /dev/&amp;lt;whateveryourdeviceis&amp;gt; encrypted&lt;br /&gt;
# &amp;lt;whateverpassphrase&amp;gt;  &amp;lt;/pre&amp;gt;}}&lt;br /&gt;
*Note that the &amp;lt;&amp;gt; are not used in the actual command /dev/sda2 is an example of what you might put there. We also assigned a name to it, that will come in handy in a moment.*&lt;br /&gt;
&lt;br /&gt;
Finally we will mount the volume with:&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# mount /dev/mapper/encrypted /mnt/enc&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
There we go, your volume is mounted. You now have access your data, make changes, chroot in, or whatever else that you needed to access the volume from the outside. Once you are done with whatever it was make sure to cleanly unmount the volume with :&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;&lt;br /&gt;
# umount /mnt/enc&lt;br /&gt;
# cryptsetup luksClose /dev/mapper/encrypted&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Have a great one&lt;br /&gt;
~Az&lt;/div&gt;</summary>
		<author><name>Hatalar205</name></author>	</entry>

	</feed>