General :: Encrypt An Existing Partition While Preserving Its Data?
Nov 30, 2010
If I have a partition like /dev/hd1 that is unencrypted and want it to be encrypted, but want to keep everything currently in that partition, how can I do that?
In the process of preupgrading to FC12. Towards the end of the process I get a warning that my /boot partition isn't big enough (12 recommends minimum of 300Mb).
Is there a tool I can use to resize my existing partitions WITHOUT data loss? I've been using gparted up to now for sorting partition stuff, does that maintain data when resizing (assuming I run from a boot CD or USB rather than a running system)?
I have a BIG extended partition. It's at about 750Gb. Aside from that, I have 2 unallocated spaces, one at 240Gb and one at 5Gb. I want to make one of my storage drives bigger, and so that I can take advantage of all the space I have. (Those 250Gb have been unused for ages. I want to use them for my growing libraries.) So I wonder: would it be safe to put these smaller "chunks" into the extended partition, and still have a working systen? I don't want to mess it all up.
Also, can I safely resize a partition, like adding the extra space, without touching the existing data? I'm not exactly sure how the resize/move function in GParted works. Will it wipe and extend or only extend it by adding it? It would be nice to have these questions answered. Also, if it's to any help, this is my partition table as of now:
[Code]....
As for the first entries, they're unallocated. They're the primary drives, but they don't exist. I'm actually considering to move my partitions out of the extended one, because I only have 3 partitions that I use and will ever use. But if the extended partition is not a problem, I will just keep it this way.
I'd imagine that I first extend the extended partition to consume the unallocated space, and then I move it all to the end of the partition, and then resize sda7 to consume it, and get a 750Gb partition. Can this be done without loss of data?
Is there a way to encrypt existing home directories in lucid so that they will unlock with pam-encfs when the user logs in? Or must you do this when the directory is created?
I want to encrypt Full partition instead of creating a file and encrypting it, and also want to move this disk to another server. do i need some files also (that hold keys) with my self on new server. i am using FC11.
I had a drive that kept kernel panic'ing so my data center recommended using the spare hard drive to reinstall OS on, and import the data from the old drive. (they checked the hardware, it wasn't the hardware) The new install is done, and I need to mount the old drive and get backups off it since my data center does not provide management whatsoever.
It's the same OS on both (Cent OS 5.4 32-bit) I'm an advanced user on windows, but linux gets me. I can ssh in, do basic stuff like setup IP ranges and restart services. I normally navigate the box through SFTP so I have a gui. WHM shows me my drives as such
Found Disk: hda Found Disk: sdb
so I'm assuming SDB is my old drive and the drive I need to access. I attempted to follow instructions on
Folks:What can I use to encrypt all data on my USB flash drive? If possible, could I use something that has a public Key, so I do not have to type in a password to access the information when I plug the drive into my machie, but will not open or display contant if the drive is plugged into anyone else's machine, unless they have the public key?
I have a 120GB HD that I installed my linux-mint distro to and have been using for a while now, maybe a year or so. However, it has been running great so I haven't paid much attention to the actual install. Recently, I have been getting notifications of very low disk space remaining. I ran gparted and discovered that there is a very large extended partition that doesn't appear to be mounted. Can I just boot into a terminal, set a mount point and be on my way or will this hurt my existing installation? What is the safest set of steps to mount this partition since it looks to be the swap space as well?
Code: Here is output of fdisk for the drive: Disk /dev/sdb: 122.9 GB, 122942324736 bytes 255 heads, 63 sectors/track, 14946 cylinders
I just tried out setting a master password for Firefox saved passwords and compared the old and new (before and after setting the master password) signons.sqlite files. Although passwords were not stored in plain text in either of the files, I did notice that the files were exactly the same. Am I wrong in assuming that setting the master password did not encrypt anything at all, or am I simply looking at the wrong file?
I'm trying to write a GUI text encryption application. I wrote the encryption system in a No GUI application like this::
[Code]...
Now I'm trying to write a GUI version, using the same algorithm. Here goes a rough image of my main window code. If you scroll down you'll observe a coloured part. As you see, the text in the first textbox gets copied into clipboard. That is the part where my encryption system should encrypt the data in the clipboard, and copy it again, and later on the new data will be pasted. How am I supposed to write that? If I have to use another signal, what is the receiver of that signal?
I am currently in the process of moving around 20TB of data from one server to another. Security is not a concern, since the data are freely available to anyone on our network anyway. There are a couple of things that I'm trying to decide on:
(1) protocol choice
Of all the choices I have--nfs, ftp, scp, rsync, samba--has anyone done any benchmarking to show which would be the fastest/most robust transfer protocol? I know nfs has slow write speeds for synchronous transfers. Asynchronous would be faster, but less robust. I'm leaning toward rsync since it performs md5sums to confirm the file transfers. (Remember if there's a 1 in a billion chance that a byte will get corrupted, then I'll have 20,000 corrupt bytes in the transfer.)
(2) Nautilus emblems
We use emblems in Nautilus to categorize files. The old and the new server have the same directory structure.Is there any way to copy the Nautilus emblems from the old server to the new server. What I want is that if a user had marked a particular file with a star on the old server, then that file would be marked with a star on the new server when he/she logs in.
I have a raid1 setup on a machine. Recently it died and I thought one of the drives had failed as it was shooting errors. So I tried unplugging that drive get it to boot off the mirror but it seems the techs forgot to mirror the boot device so the 2nd drive can't boot on its own. After a while it was realized that the sata cable was in fact bad and replaced so now its working again.
However, this occurrence showed a flaw in the setup where the RAID1 isn't working as its supposed to. I would like to correct this. Can I somehow mirror the boot partition so the 2nd drive will boot independent? I'm not sure how I would go about this. This is a CentOS 5 installation.
I've been using Ubuntu 10.10 for just under a week. Recently, a partition called 'Data' has disappeared, and all my music and documents along with it. The folder is not to be seen in Places or on my desktop. My only way of finding it is to go to terminal. But when I try to open it there I get an error saying I don't have permission to read it. In Puppy Linux and SliTaz I can easily find the partition and read it. What should I do to bring it back in Ubuntu?
I've never encrypted a disk before; I'm following the Arch wiki (I'm a newbie, basically). Should I try and encrypt my swap partition (I've got 512 MB RAM, 1 GB swap)? Ideally, I'd like to make it so it's not feasible for someone (even a very skilled someone) to access my files (and system -- I'm encrypting /), but still make it fairly fast and usable for day-to-day operations. If it matters any, I'm using JFS.
I've been thinking about this pretty heavily and am thinking about using LVM to store my media collection. The USB hard drives (3x1TB) are plugged into my Mythbuntu server and are never unplugged. The only issue I forsee is that the USB drives spin down when not in use. Will this cause any issues with LVM? I have about 750GB of data on one of the drives and, obviously, want to keep this data. I think the existing data makes it not possible to use a LVM mirror (correct me if I'm wrong).
I was thinking that I could create a 2 disk LVM with the unused data. Then, copy the existing data to the logical volume. Lastly, add the third disk into the volume group. I know doing this does not add any redundancy. Would it be wise to add a RAID1 or RAID5 on top of the volume group? Does using USB drives make this unstable?
When the installer gets to the point to set up the partitions it offers something like
sda1 / sda2 /swap sda3 /home
I'm not sure which option to take now. I assume I choose the option to edit the partitions but I'm not clear how to preserve the /home as it's now got a different partition number or does that no matter as long as I choose not to format it? Also, to replicate the original partition structure I'd need to delete the partitions and add them in the correct order but would that destroy the /home?I'm a bit confused with how it will work.
I have a system that has the following partitions:
Now SDC is a new drive I added. I would like to pool that new drive with the raided drives to give myself more space on my existing system (and structure). Is this possible since my raid already has data on it?
i tried installing windows 7 on a partition on my laptop but i'm getting this message:"setup was unable to create a new partition or locate an existing system partition "i tried googling and found that it has something to do with the number of partitions:my hard disk layout right now:
Well i have an 20GB HDD (/dev/sdb) formated with ext4 and has very important files on it .All of sudden something went wrong and the 20GB partition has been lost . Now how do i have to recover that partition and primarily recover those files . Gparted shows no partition on it but unpartitioned space .
I have a 10gb partition I use for data. The /home is there, and I mount any other data partitions (like /music stuff) onto /data. These other mounted partitions add up to something like 60gb of diskspace, but since they're just mounted on /data, I believe they only take up 4096 bytes per mount point.
Some time ago, I found that the /data parition was full. There was only 330mb of data in /home, so I was perplexed. I found a cache dir under .opera that reported itself as having 132TB (yes, that is terrabytes) of files. I thought deleting the offending directory was the answer, so I deleted that cache dir and every file or subdirectory in it, but the /data partition is still like 99% full. I am a wee bit confused.
This very full /data partition is my only jfs partition. The other mounted filesystems are either ext3 or ntfs. Is it possible that the journal of this filesystem is corrupted? Or is hidden somewhere on the /data parition, taking up a bunch of space? (I obviously don't know enough about filesystem to know whether or not this is a likely scenario.) Is it possible to zero out (or delete and re-create) the journal, if so? The only other thing I can think of is to move all the /home data off, delete the partition, then re-create it and move /home back. I will do that if need be, but I'd rather learn something from the experience, weird as it is.
I have an existing OpenSuse 11.3 (64 bit) box serving a couple of websites. I would like to enable Xen. Question - If I install Xen through Yast, will my existing configurations be reset and will I loose my existing data? Does Xen have to be installed on a clean system?
I could understand the idea of security "if I haven't touched the file in 9 days, and the timestamp was changed, I know someone was in my system". But, is there any other purpose for preserving timestamps?