Debian :: Can't Access Harddrive (lvm + Dm-crypt) After Reinstall
Feb 22, 2011
Debian 6.0 Squeeze (stable) AMD64.
At first the problem was that the old volume group (containing all logical volumes for both physical volumes) had the same name as the new volume group. I did a reinstall where I changed the name and ran vgreduce --removemissing debian which seems to have removed all logical volumes from the old volume group.
When I try to unlock the drive in Gnomes Disk Utility I get "Incorrect Passphrase. Try again." but I *know* it's the right password, and I don't get any error when changing the password so that seems to be possible.
I found the oldest archive in /etc/lvm/archive/ and manually edited it to remove any stuff about the old LVs and PVs. Then I did vgcfgrestore --file VG_backup.vg groupname. With the help of blkid I edited /etc/fstab and /etc/crypttab to mount the disk at startup.
I have two hard drives one running Ubuntu 10.04 and the other XP (only for itunes and gaming) but earlier today i needed to reinstall xp as its windows and got bored of working properly and i am now unable to access the ubuntu harddrive as grub was written to the windows mbr.Now i would of normally just reinstalled Ubuntu and gone from there but as i was trying to be clever i copied my itunes folder over and i dont really wont to lose this.So two questions;1) How can i add the Ubuntu harddrive back to the boot options ?2) Or how can i get the itunes folder off the Ubuntu install using a live disk or from xp?
After upgrading to Natty Narwhal my Crypt Keeper app will not launch. I am now unable to access secure files. Has anyone had this issue after their upgrade to Natty Narwhal? If so, How were able to resolve this issue.
The in build cipher algorithms that are in the kernel are not critically secured, the best, I think, supports 384 bit encryption.
So I was looking forward towards stuff like DSA or very preferably OTP cipher with like... 8192 bit encryption using DM, I know it sounds insane, but so is the data. I want it to be uncrackable for the fastest supercomputer combined till 2070.
I'm trying to manually boot (from the GRUB console) into a system set up as follows: crypt partition -> LVM -> root LV, and I'm having some trouble figuring out how to do this from the GRUB console.
I have successfully manually booted a system which is set up as just LVM -> VG -> root LV. All I have to do is load the LVM module. In GRUB, that partition shows up as (hd0,gpt5). Once I load the GRUB LVM module, I can see the logical volume within the LVM as well. (My volume group name is "caesar", and the single logical volume is named "root".)
Code: Select allgrub> ls ... (hd0,gpt5) ... grub> insmod lvm grub> ls ... (lvm/caesar-root) ...
It's fairly simple to manually boot:
Code: Select allgrub> set root=(lvm/caesar-root) grub> linux /vmlinuz root=/dev/mapper/caesar-root grub> initrd /initrd.img grub> boot
Where I am having difficulty is in trying to insert crypt before LVM. I can set up such a scheme, and put a minimal installation on it, without issues. It's booting into it upon reboot that I can't figure out. Once I load the GRUB crypto, cryptodisk and luks modules, I can mount the crypto partition:
Attempting to decrypt master key... Enter passphrase for hd0,gpt5 (<long hex string here>): <type my password> Slot 0 opened grub> ls ... (crypto0) ...
At this point, GRUB sees the crypto partition as (crypto0). But the GRUB LVM module doesn't see "inside" of the crypto partition, so I don't see the root logical volume within the LVM listed; all I see is (crypto0).
Code: Select allgrub> insmod lvm grub> ls ... (crypt0) ...
Setting it as root doesn't work:
Code: Select allgrub> set root=(crypto0) grub> ls / error: disk `crypto0' not found.
So, How do I get GRUB to "see" LVM inside the crypto partition?
i've worked with Linux for a while now, but never in a double boot kind of way (except using wubi), and i'm still kind of a newby.i have 2 harddrivesfirst one has only 1 partition; Windows XPsecond one has 1 empty partition, simple storageand another partition where i installed fedora core, and GRUB is also located on this harddrive.I changed harddrive priority to my second harddrive, result:GRUB comes up, no problem, but when I try to boot windows, it tells mentldr is missing ctrl alt del to continueso i changed the harddisk priority back to the way it was, where the first drive containing windows is first priority... but then, no GRUB.i've tried editing the grub conf,i've tried fixboot/fixmbrtl;dr:no ntdlr when linux harddrive is main priorityno grub when windows harddrive is main priority
I have two ext3 drives recovered from a failed NSLU2 network file server. I need to recover some of the files stored on them, so...I attempted to mount them on my debian ETCH (LV file system), thus:
# mkdir /mnt/usbdrive
# mount -t ext3 /dev/sda1 /mnt/usbdrive
Instead of seeing the drive content I see my harddrive's GRUB & Kernel partition. What am I doing wrong? What do I need to do to see the drive's content?
I recently switched to ubuntu from win 7. I have samsung netbook150. I did stupid mistake in setting up evolution. So I uninstalled it first via ubuntu software center and again reinstalled it. I also installed all the evolution components from synaptic package manager. Now I dont see evolution in internet section of Applications on the top panel.I need your help to figure out how I can reinstall evolution properly and access it again.
I am trying to set up a SunBlade 150 with 512MB RAM, ATI Video, 80GB Harddrive on Lenny.
My Goals: 1. Have Web Server 2. Have Mail Server 3. Be able to connect to Lenny from Windows 7 for file sharing 4. Be able to ADMINSTER Lenny from Windows using Exceed in a GUI environment.
Can someone please give me a step-by-step that I might be able to follow. I have already tried to install Lenny with the desktop stuff and the system locks up. I have reinstalled this thing about 6 times and am about to give up and reload Solaris on this stupid machine and try to figure it out.
I accidentally removed my network manager (gnome) from my system (via synaptic) and hence have not been able to have access to the internet to reinstall the packages. I have experimented with many commands (with help from others) in terminal with little success.
What I now did was downloaded a 'NetworkManager-0.8.0.999.tar.gz' file and a 'NetworkManager-0.8.1.tar.bz2' file (from a different comp) and have placed them onto my desktop. I have read the INSTALL instructions within and it is a tad complex for me as I am new to Linux. I understand I have to extract the files and compile them into a new folder (I think I would choose a file in the /home directory)- how would I go about doing this? Following this, I need to './configure' or 'make' or 'make install' the files
I'm new here and very new to Debian. I have a server with Debian 4 installed by anoter person and webmin was installed and running. I run a dist-upgrade to switch to Debian 5.
Upgrade completed successfully, as far as I know, except than Webmin stopped to work. Once logged in I got many error for modules/program not found. So I uninstalled webmin using "apt-get remove".
Now if I try to install it again apt-get tells me that (try to translate from Italian):
Quote:
Package webmin has not any version available, but is referred by another package. This means that package is missing, became obsolete or is available only from within another source. E: package webmin has no installation candidates
I tried also with "apt-get install webmin-core" but get the same message with only this additional info:
Quote:
Anyway, these packages substitute it: webmin
Tried to run "apt-get update" and then "apt-cache search webmin" but it doesn't find anything.
I need to reinstall my distro, MEPIS, but--mostly just because I feel restless--I'd like to try another Debian-based distro. It has to be Debian-based because I'm comfortable enough with apt-get that I don't want to learn another package management system; and I want to avoid Ubuntu and distros based on it, because I've long since decided I don't like the decreased user control in Ubuntu. What are my choices? If I want to leave MEPIS and don't want Ubuntu, I don't really know what there is other than Debian itself. I don't know if I feel like tolerating the supposedly greater difficulty of Debian, but I would otherwise expect to feel at home in it, since MEPIS is based on it. And does the Debian Project still make a version small enough to fit on one CD?
I recently installed opensuse 11.2 on my laptop which also had windows vista and windows 7, i created a new partition and the installation went smoothly, after i went to boot back into windows 7 i got a blue screen of death, strangely vista boots perfectly.I could just reinstall windows 7 but its a pain to reinstall all my programs and such
So I was messing around trying to uninstall Nibbles and reinstall since I have an issue starting that game and something happened and removed the submenu under Games called "Logic", which had another whole list of games.
Is it possible to reinstall the games package or reinstall the update?I'm thinking more of the lines of a system restore or something so back 2 days from today.
I can't believe that I did not write down the password to my encrypted volume. Had not rebooted in a long time so I had not typed it and now that I rebooted I don't remember what is was.
Is there any way to automate the trial of different passwords? I remember the basic structure of what the password was so if somehow I could automate trying passwords from a list I may have a good change to recover my volume.
If/when I do remember the password. Is there a way to change the password on an encrypted volume? I need to make it something I will remember for sure... or write it down somewhere safe..
I have a compressed backup that I want to crypt and upload to a remote server through ssh once in a while. The problem is with the size, more than 4 GB. If the connection drops how does scp know to resume? This should be an automated process.
Since i'm on-the-road a lot encryption is crucial, with windows i've always used TrueCrypt and DiskCryptor, this is very easy to setup and allows me to create usb/cd devices that i can boot off and contain a keyfile, on boot it also requires a passphrase. Currently all i need to do is boot from harddisk and enter my passphrase. I would like to be able to boot from external device (in this case USB) that contains the bootloader and an integrated keyfile, also it should requist the passphrase. I found a guide on how to achieve two-factor authentication with dm-crypt on feisty but it's quite an old guide and is realy realy complicated for a newbie
I'm simply interested in a more basic discussion of why one would choose one of these methods over the other. What do they offer that the other does not? I'll start with what I know:
- dm-crypt/LUKS --- included in a lot of install images already; in other words, perhaps easier to implement on a fresh install - TrueCrypt --- multiple encryption algorithms possible
[code]....
For me... I have no need for Windows compatibility, though I do use OS X on a dual booting MacBook. I believe TrueCrypt woks with OS X, so that could be a bonus, though I can simply encrypt my home folder on OS X with it's own FireVault and be fine.My setup (after wiping and starting over) will probably be like so:
- /boot on it's own primary partition - / on it's own primary partition with logical partitions within --- /usr, /var, /etc, /opt, and the like on a logical partition --- /home on a logical partition
/home will surely be encrypted and I'm leaning toward encrypting the rest as well, though perhaps it's not necessary. I'm open to input there as well -- is there anything the leaks from normal application use into /var or /tmp that would make one lean toward just encrypting the whole thing?
I opened up TrueCrypt just to look at it and since I can't encrypt a whole partition without losing data... I pretty much have to encrypt from what? A live CD? This could be a drawback -- I think since TrueCrypt isn't coming on install disks, I'd have to go with an unencrypted (or dm-crypt/LUKS) root partition and then use TrueCrypt to make a container (or partition) for /home only. I can't think of another way to do this since I can't encrypt the whole disk as one entity with my dual booting situation...
I just bought a new laptop which will be running SSD (Corsair 120GB) as the boot drive and would like to migrate my OS to the new system. One of my requirements is full-disk encryption. I work with proprietary client data and need to encrypt the new drive, its swap partition, everything except for /boot. I've read instructions for doing this from the alternate install CD, but my OS is disturbingly customized (started out as 10.04) and it would take months to rebuild everything. I keep remastersys (-dist) ISOs to ensure I don't have to go through that process, but the ubiquity installer does not appear to have the option of doing disk-level crypt during the installation process. I can boot the ISO into CLI, but don't know how to run the alternate installer from there.
I have a perfectly OK 2.5 inch disk drive from a dead laptop (graphics card failed).
The hard drive is fine. I know the passphrase.
I had installed Ubuntu 10.04 with full fisk encryption using dm-crypt/luks using the alternate install cd.
I'm not exactly sure of the configuration I selected. Just that its full disk encryption with a pre-boot passphrase prompt.
Now my issue is, I have put the drive into a usb drive docking station, and I simply want to mount the partition on my new laptop, so I can copy the files over.
I've tried googling for various things like "mount dm-crypt drive linux" and "how to mount a luks encrypted partition linux", but I get no results.
I'm not a mathematician or cryptographer, only an end user of the technology trying to determine the "best" or safest future proof option to go with for long term archival while also maintaining reasonable performance with dual opteron ~2GHz or similar setup. I've noticed aes-cbc-essiv seems to be the default choice in various installers for reasons of backwards compatibility while others are moving towards XTS since the standardization.
This was working for me in 10.10 until I was forced to reinstall Ubuntu. I have a Western Digital Live Hub, basically a hard drive that sits under my telly and lets me stream media from the computer or transfer media to it from the computer. I could access it fine a couple of days ago, but then I reinstalled Ubuntu and now I get the error "Unable to mount location, Failed to retrieve share list from server". Anyone have any idea how I can access it again?
When I upgraded from FC11 to FC12 of the encrypted raid partitions started to request password on boot (in FC11 not having references to encrypted md1 in fstab and crypttab, was enough for FC11 not to ask for passwords on boot) despite the fact that I removed /etc/crypttab and there is nothing in /etc/fstab relating to encrypted md1 (raid array). I want my machine to boot w/o asking me passwords for encrypted devices, and I will open and mount them myself manually after boot.
I'm trying to have a LUKS encrypted partition mounted at startup and to have GDM ask for my key so it will decrypt. Now I followed [URL] to the letter. Except for now, I have it just mounted into /mnt/cryptohome so I'm not messing with my system. My problem is the one everyone mentions in the comments, ubuntu isn't asking for the LUKS key in the X display, it's asking in the first terminal (Ctrl-Alt-F1). This will not do. I need it to ask to mount my drive before I'm even asked to login, so eventually I can encrypt my /home.
It seems I've run into a bit of a problem. I recently upgraded to the latest kernel 2.6.32-24-generic (x86) but when I reboot into the new kernel and type in my password the system hangs, same when using a keyfile on the root file system.to give an outline of how the disks are setup.3 hard drives