Slackware :: 13 2.6.29.6 Cryptsetup Luks Wrong Device Name In /dev/mapper/*?

Mar 3, 2010

Slackware 13 Kernel 2.6.29.6 have three hard drives. Root is on own drive sda1. sdb and sdc are raid via mdadm with two partitions. one for /home raid0 md0 one for swap raid1 md1. md0 is encrypted vi cryptsetup. md1 is encrypted vi fstab. everything boots fine and is accessible. However, /dev/mapper/* shows sda1 as block device connected to the raid md0. swap crypted device is correct in /dev/mapper/*. fstab is set correctly. problem seems to be with initrd. I would like the correct device in /dev/mapper so that I can access drive info; size, available space, etc. now info shows only sda1 info

View 1 Replies


ADVERTISEMENT

Slackware :: LVM/CRYPTSETUP Duplicate Devices In /dev/mapper Again?

Jan 23, 2011

We had this problem a while back but it went away with whatever updates lvm/cryptsetup have been through, but it's back again as of the latest update. Instead of symlinks to the /dev/dm-* devices, lvm and cryptsetup are both creating duplicate device nodes under /dev/mapper for already existing devices.

e.g.
Code:
gazl@slack:~$ ls -l /dev/mapper
total 0
crw------- 1 root root 10, 61 Jan 23 16:48 control
brw-rw-r-- 1 root disk 253, 0 Jan 23 16:48 lukssda5
brw-rw-r-- 1 root disk 253, 9 Jan 23 16:48 rootvg-lvhome

[Code]...

View 11 Replies View Related

Slackware :: Cryptsetup - No Such File Or Directory While Trying To Open /dev/mapper/crypthome?

Jan 24, 2011

I've encrypted the /home partition. I've been successful in doing this by following the instructions here:slackware64-current/README_CRYPT.TXTBut after upgrade to cryptsetup-1.2.0-x86_64, when I boot up I get 'no such file or directory while trying to open /dev/mapper/crypthome'I have to manually type 'cryptsetup luksOpen /dev/sda9 crypthome' and mount each time to get into the encrypted partition.I expect to be prompted for the password on boot but I just get that error, what is wrong?my config files:

/etc/crypttab:
crypthome /dev/sda9
/etc/fstab:

[code]....

View 5 Replies View Related

Red Hat :: /dev/mapper/device_name Missing For Luks?

Mar 31, 2011

I am using Centos 5.5. I have a luks partition that I can successfully open and mount manually. But the problem is upon boot up, the device is missing from /dev/mapper/device_name until I manually luksOpen it..then it appears as it has before. This makes it a problem for me to have it open and mounted automatically upon boot up. Why is the /dev/mapper/device_name missing untill I manually luksOpen it?

View 3 Replies View Related

Software :: Cann't Find The Device Created Through Device Mapper In /proc/partitions?

May 15, 2011

Recently, I created a device sc0 through device mapper. The divice could be found in /dev/mapper/sc0. My problem is that the device doesn't exist in /dev/partitions which will block my following test.BTW, I found dm-0 in /dev/partitions. Is it the same as /dev/mapper/sc0? But the device /dev/dm-0 doesn't exist!

View 2 Replies View Related

Ubuntu :: Cryptsetup - Cannot Access Device

Feb 23, 2010

I have 10 hotswappable SATA drives I use for a rotating backup system. On each drive I have created an encrypted LUKS partition. I normally mount the drive by first unlocking it via:

Code:

cryptsetup luksOpen /dev/sdc1: BD-4-B

However some time last week this command refused to work...for any of the drive. Before I even get prompted for a password I get the terse error message: "Command failed: Can not access device"I can't recall if it was a system update that broke it, but now I can't get to any of the data on these devices nor can I run any backups.

View 1 Replies View Related

Hardware :: Red Hat (RHEL 5.6) Device Mapper Not Seeing LUN Changes?

Jun 23, 2011

Dell PowerEdge R610 with QLogic HBA card connected to HP EVA6000 SAN through a pair of switches.When I present space to the server, device mapper doesn't see it unless I restart the multipathd service. Same thing with unpresenting - the /dev/mapper/mpatha does not go away unless I restart multipathd.Here's what it looks like in 'multipath -ll' before and after I unpresent the LUN (without restarting multipathd)...

== BEFORE ==
# multipath -ll
mpathb (3600508b40010716b0000900001a40000) dm-8 HP,HSV200

[code]....

View 3 Replies View Related

Red Hat / Fedora :: Pvcreate /dev/mapper/disk_bin : Device Not Found?

Feb 28, 2011

I'm facing a problem on Boot on San installation, Os is installed, now I'm trying to define mapper device

for others lun/disk with alias for multipath references
Code: # pvcreate /dev/dm-14 /dev/mapper/disk_bin_rac
Device /dev/dm-14 created

[code]....

View 2 Replies View Related

CentOS 5 :: Prevent Device-mapper From Loading In Installer

Mar 5, 2009

I am trying to prevent the dm_mod and friends from loading during install.I am installing by PXE boot with NFS and kickstart files over http. This works fine for other machines.Ok, I have a Dell PowerEdge 2900 III with 8gig ram, PERC 6/i raid controller.The raid has 8 1TB drives in it, so the total size of the device is >2TB.There is also an SATA drive, which is NOT on the raid controller.

The problem is, I want to install CentOS on the SATA drive. The SATA drive comes up as a device-mapper drive, with a big crazy device name.This is ok, but the problem is, when the system goes to boot, it just says 'missing operating system'.I can't boot from the raid because it is large enough to require a GPT partition, and CentOS says it can't boot from a GPT partition.The SATA drive would work FINE if I could just prevent the damn device mapper from loading, so that I could install on the SATA drive in ordinary SATA mode.

I have tried re-squashing the stage2.img with /etc/modprobe.conf with alias dm_mod off and such, no luck.I also tried adding an /etc/modprobe.d/blacklist file, that did not work either.I also tried putting blacklist= dm_mod in the kickstart file, but that seems to be a fedora-only option and it kills my install. any ideas on preventing the dm_mod et. al. from loading at install time??

View 1 Replies View Related

Server :: Device Mapper Not Recognizing RAID Storage Luns On RH5?

Feb 26, 2010

Greetings Fellow Knights Of The Penguin Clan....!I am having issues with device mapper seeing a 275GB Raid5 Lun from my SAN storage.I'm using IBM 2145 San Volume Controller.I am able to see a 40 GB Raid 10 device though..

########################################################################
fdisk -l |grep 'dm-*'
Disk /dev/dm-6: 42.9 GB, 42949672960 bytes

[code]....

View 22 Replies View Related

Software :: Device-mapper-multipath - Slow Failover Period

May 10, 2010

I have a linux machine, attached to a fibre channel SAN.

We're in the testing phases and we're attempting to get all of the bugs worked out before this goes live.

If i have my host streaming data to the storage device on the san (or from the device on the san) and simulate a path failure (by shutting down one of the host's ports on the FC switch), multipath does not pick up on another path until about 45 seconds have passed.

I can verify this by watching the statistic graph (which updates once per second) on the storage system.

I see iops running along rather nicely, and then they drop to 0 for 45 seconds, then pick right up to normal again.

This is a RehHat EL 5.5 system, with qlogic HBA's.

Am i being too picky? I'd expect multipath to recover in under 30 seconds, so as to not alarm host applications running on the linux host... 45 seconds seems like a long time to wait for a disk operation to complete.

Any tips on tuning Multipath, or the qlogic card? As it is, i've got the following options in my modprobe.conf.

alias scsi_hostadapter2 qla2xxx

Code:

My multipath.conf looks like:

Code:

View 3 Replies View Related

CentOS 5 :: Yum Update Dep - Device-mapper-event Is Needed By Package: Lvm2

Sep 8, 2009

Trying to do a yum update to get everything to latest, towards the end it says this:

[Code]...

how to get around this? I tried yum clean all, then yum update, again but it did the same. I had other deps missing on other servers but yum clean all fixed them -- can't find anyone else who's had this specific issue either, nor an rpm called 'device-mapper-event' or the other things that are missing - am kinda stuck!

View 8 Replies View Related

Ubuntu :: Error: Device-mapper: Reload Ioctl Failed: Invalid Argument

Jun 13, 2010

I'm having some difficulities with truecrypt and cannot figure out what's wrong since this is my first attempt to create hidden encrypted partition. I'm using ubuntu 9.10 64b with latest 6.3a truecrypt. After using truecrypt gui (just command truecrypt) I've tried: create volume-->create volumne within a partition/drive-->hidden trucrypt volume --> select some /dev/sdX by my choice --> select aes & sha512 --> password --> and format it.

when formating finished message "wrong ss, swith or wrong superblock of /dev/loop0" appeared. I've got no idea what could I do with it neither know whats program trying to do! Ok formating's done, then if you're trying to mount that partition then I would expect prompt for password, but that did not happen ...

EDIT: sudo mount /dev/loop0 /media/tmp/ also complaint about wrong superblock, but that does not ring any bell since i've got no idea what /dev/loop0 is or is for...

EDIT2: I've tried another approach also:

sudo truecrypt -t -c
sudo truecrypt -t /dev/sda3 --filesystem=none

but the first command finished creating 100G drive in 1 sec (nonsense) and latter one prints:

Error: device-mapper: reload ioctl failed: Invalid argument
Command failed

View 3 Replies View Related

Ubuntu Security :: Dmsetup - Device-mapper - TrueCrypt - And Desktop Icon Labels

Jul 8, 2011

Anyone know how device-mapper works, or can someone point me to any docco (other than the man page)?

Couple years ago I wrote a TrueCrypt wrapper script for use on Puppy Linux, and am reworking it for Ubuntu. Puppy sometimes didn't have the 'dmsetup' device-mapper utility available, but TrueCrypt still works without this when the '-m nokernelcrypto' option is used.

My script notices when dmsetup is available and skips this option. When the TC volume gets mounted (somehow using dmsetup), the Desktop icon is labled with the leaf name of the /media/mount_point -- so far, so good.

However, if I force the script to add the no-kernel-crypto option, and the TC volume is mounted without using dmsetup, the Desktop icon ls labled with the size of the volume. Say what?

Running df shows the difference between the two mounts is whether /dev/mapper is used. So *how is* dmsetup making this happen? The manpage isn't much help. Is it just the 'rename' sub-command? I am unable to find any details about this mechanism.

Code:

View 1 Replies View Related

CentOS 5 :: 5.3 In VMWare ESX - Device-mapper: Dm-raid45: Initialized V0.2429 Waiting For Driver Initialization

Apr 2, 2009

I run many 5.2 virtual machines inside of VMWare ESX3.5 I've updated a couple of test VMs from 5.2 to 5.3. The thing that stands out is that during boot time, the sequence gets to this stage:

device-mapper: dm-raid45: intialized v0.2429 Waiting for driver initialization.

Here it takes about 3 times longer than the previous Centos 5.2 (about 9 seconds instead of 3). Whereas inside a physical box the wait in 5.3 is the same as it was in 5.2

View 4 Replies View Related

Slackware :: Cannot Mount Dev/mapper/crypted-drive?

Feb 18, 2010

Well as you can see from my sig I am running Slack 13 and unfortunately did not discover the readme_crypt.txt on the installation cd until it was far too late. Not to worry, many hours burned and things learned.So I compiled and installed cryptsetup and for my test encryption I am using an external usb harddrive (sdb3).First off cryptsetup kept segfaulting with the luksFormat command and this seems to be a know bug. The workaround it to pass USE="dynamic" to config before you build the package. Then

Code:
# cryptsetup.dynamic -h sha512 --verify-passphrase luksFormat /dev/sdb3 test-crypt
# cryptsetup luksOpen /dev/sdb3

[code]....

View 2 Replies View Related

Fedora X86/64bit :: Device-mapper - Reload Ioctl Failed - Invalid Argument Failed To Suspend LogVol00

Sep 10, 2009

I've read hundreds of threads on this problem but they seem to be intermittent and the resolution has been using a different kernel version.

I'm using the latest kernel but I still have this problem

Running Logical Volume Manager gui and attempting to extend the volume results in the same error.

View 3 Replies View Related

Fedora Networking :: 3G USB Modem Has Wrong Device Port In NM - Change Device Port In Network Manager?

Aug 14, 2009

I installed ZTE MF 626 modem in my F10 with kernel 2.6.27.12-170, i run usb_modeswitch and so far things happened normally. Watching through /var/log/messages it says that F10 detects two port device for this modem: ttyUSB1 and ttyUSB2, and in the sequence it disable port ttyUSB1 BUT Network Manager still set this port.I mean, when i connect via wvdial appointing to ttyUSB2 i get connection, but Network Manager fails to do it appointing to ttyUSB1. How to change device port in Network Manager?

View 1 Replies View Related

Slackware :: Adding A Volume To A LUKS/LVM Setup?

Mar 21, 2010

I have been following Alien Bob's README_CRYPT.TXT on the install disk and playing around with LUKS and LVM as highlighted in the section Combining LUKS and LVM. I got this working following the examples in the readme however I now wish to add another volume to the volume group. I have got this working and extended the group with an encrypted volume so it's now bigger. I want the two included physical volumes in the volume group (which are both encrypted) to be opened on bootup.

As it is now I am prompted for a password for the first physical volume (the passwords are set to be the same) and that opens and boots the volume. It has a problem with the second PV I have added and doesn't open this. There are errors on boot up about this and pvdisplay give this:

Code:
Couldn't find device with uuid 'JVirxL-lmqH-SUym-3lXG-MnXx-Qjk8-JZRha8'.
Couldn't find device with uuid 'JVirxL-lmqH-SUym-3lXG-MnXx-Qjk8-JZRha8'.
Couldn't find device with uuid 'JVirxL-lmqH-SUym-3lXG-MnXx-Qjk8-JZRha8'.
--- Physical volume ---
PV Name /dev/block/253:0

[Code]....

View 6 Replies View Related

Slackware :: LUKS Decryption Fails In Dolphin?

Nov 25, 2010

I've just did a fresh Slackware 13.1 install on a 32-bit box for friends of mine. It's an older machine with an AMD Athlon XP 2500. Generally everything works just fine, with one exception, however.Connecting a LUKS encrypted USB harddisk is notified by KDE. Clicking on the device icon in Dolphin opens the dialog asking for the LUKS passphrase. No error message appears, but the file system is not opened and mounted, anyway.However, before another attempt I have to "remove" the device in Dolphin.Output of dmesg:

Code:
# Nov 25 23:58:24 mycomputer kernel: device-mapper: ioctl: unable to remove open device temporary-cryptsetup-3023

[code]....

View 12 Replies View Related

Slackware :: Installing Lilo With RAID/LUKS/LVM - 13.1(64)?

Mar 9, 2011

Basic Problem: I have been trying to install 13.1 (64-bit) and have not been able to get lilo to install.

Procedure:

1) partitioned drive /dev/sdc 1GB (Linux RAID) and 499GB (Linux Raid)
2) copied partitioning scheme to /dev/sdd
3) set up RAID-1 arrays md0 (sdc1-sdd1) and md1 (sdc2-sdd2)
4) write random data to partitions
5) set up LUKS on md1 (swluks)
6) set up LVM on swluks (80GB /, 375GB /home, 20GB swap)
7) ran setup, chose partitions, installed software
8) setup lilo (mbr, selected /)
9) TRIED to install lilo

[Code]..

View 4 Replies View Related

Slackware :: 12.2 - RAID-1 - LVM - LUKS Encrypted Root

Dec 17, 2008

I am trying to get Slackware 12.2 running on a system with two identical harddiscs using RAID-1, LVM and LUKS.

Here is what I get:

Code:

The system is still the same, however, the results of upgrading or installing 12.2 are different. The system refuses to boot. The screen messages during boot seem to suggest, that the RAID system is "seen" by the system, but the encrypted filesystem is not.

I can boot with the installation DVD, however, and

Code:

View 14 Replies View Related

Slackware :: USB Keyboard Won't Respond On Luks Login?

May 9, 2011

I just installed slackware 13.37 64 using luks and lvm by following this. However, when its time to enter the password, my usb keyboard won't work. I included the uhci-hcd, and usbhid modules when running mkinitrd,

View 3 Replies View Related

Slackware :: Pondering About Encrypting The Keycard For A LUKS/LVM Partition?

Aug 15, 2010

So I was wondering about the dilemma of how to encrypt the password file on a key card to unlock your harddrive without having to enter any password. I came to the conclusion that that the scripts could do this without storing any passwords in plane text them self. Have a few extra steps to the scripts that would:

1. Read the UUID of any disks coming in.

2. Attempt to use that ID to decrypt a password file stored in the initrd.

3. Use the decrypted password file to unlock the the keycard partition.

4. THEN use the password files on the keycard to decrypt the main partition and boot the system.

However, if somebody stole your key card and didn't know what the unencrypted information was, then it's harmless for them to have it anyway. And if they did know, you wouldn't be any better off with it being encrypted because they probably can gain access to your computer anyway; leaving them to just pop the key card in and automatically decrypt the drive.

I suppose encrypting the keycard would give you extra assurance that the information would be much harder to recover if you destroyed the key card in a hurry. So would this extra security step even be worth it?

I guess the most secure thing would be to only have a password and type it in every time... unless you are concerned about the aliens/government stealing that from your brain which would probably mean they wouldn't need your password anyway.

View 3 Replies View Related

Slackware :: Xfce Automount Luks Lvm External Drive

Apr 5, 2011

I have a luks-encrypted external drive with lvm on top. When I plug it in xfce prompts me (twice as usual) for the encryption phrase. Then, unlike when I have a regular file system on top and it automounts, I need to activate the volumes and manually mount. Is there a way to make these steps happen automatically?

View 7 Replies View Related

Slackware :: Xfce LUKS Handling Randomly Fails?

May 24, 2010

Anyone else experiencing the random LUKS fails? Anyone know of a solution?I filed a bugBasically I have a USB hard drive with two LUKS partitions on it (sdb2, sdb3). When plugged in, it asks for the password in Xfce (like it did in Slackware 13.0), but instead of the previous "asks twice for password" bug, now it asks once, but nothing pops up on the desktop. It's rare to see either of them put an icon on the desktop (usually nothing results).

I see /dev/mapper/luks_crypto_{UUID} get populated, so they are successfully being unlocked (LUKS), but no icon appears, and no mount point for the volume label (i.e. /media/BACKUP /media/ASUS) is populated.Does anyone know how I could produce a more useful bug report? I'm wondering if "strace startxfce" would produce anything useful or if I should alias Thunar to "strace -o /tmp/thunar-`date`.txt" would be in order.

View 14 Replies View Related

Ubuntu :: VFS: Cannot Open Root Device "mapper/mylaptop-root" Or Unknown-block(0,0)

Nov 5, 2010

Installed Maverick last night... the system has been working fine all day... then on a reboot tonight got the following.

RAMDISK: gzip image found at block 0
usb 1-2: new high speed usb device using ehci_hcd and address 2
uncompression error
VFS: Cannot open root device "mapper/mylaptop-root" or unknown-block(0,0)

[code]....

Then it gives the Kernel Panic

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper not tainted 2.6.35-22-generic #35-Ubuntu

Then a call trace...This is a brand new install of Maverick I copied my files onto a USB and did a fresh install on the whole drive using the alternate CD (the desktop and netbook editions both failed to read on my system) was previously using Karmic with no issues. I tried to e2fsck the dev/sda1 from the CD in "repair broken system" mode but the return was "clean" I read that as the file system being intact but this is an area that I have no real knowledge in.

View 1 Replies View Related

Slackware :: Automount LUKS Encrypted USB Disk As Regular User

Oct 29, 2009

How can I get a LUKS encrypted partition on an external USB device automounted with r/w access for non-privileged users?

Background:
I just reformatted an external USB device with ext4. The only partition is LUKS encrypted. Now, when I plug the device to my computer, KDE notifies me and asks me to enter the LUKS passphrase. Then it mounts the device. Little snag here: Non-privileged users have read-only access.

My user is a member of group plugdev, but not of group disk, as this was discouraged several times, e. g. by Robby Workman. With non-encrypted disks regular users have read/write access, or can change the filemodes accordingly, as far as I recall (currently I have no more non-encrypted disks left to verify it...)

View 11 Replies View Related

Slackware :: Shrink A LUKS-encrypted Physical Volume - LVM2

Dec 28, 2009

I have a 160GB harddrive with 2 partitions:

1. /dev/sda1 ext2 100MB (this is my /boot partition)

2. /dev/sda2 LVM2 Remaining space (this is my physical volume and is LUKS-encrypted)

There is 1 volume group, slackvg, and 3 logical volumes:

1. swap 2GB

2. root jfs 10GB

3. home jfs 50GB

I would like to shrink /dev/sda2 to make room for another regular partition, is this possible?

View 1 Replies View Related

Slackware :: Clock Shows The Wrong Time In Slackware

May 10, 2011

I've been running arch linux, with my clock set to UTC with no problem. Recently I installed slackware on a different partition. During the setup I chose to set my clock to 'local time' instead of UTC by accident. Now in slackware my clock shows the wrong time. Also in arch it shows the same wrong time.

I booted back into slackware and ran pkgtool to enter the setup again, and changed my time to UTC. But this makes no difference. My clock is still wrong in both slackware and arch. Do I need to reboot after changing my clock settings in slackware before it takes effect? how the clock or the setup works.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved