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


ADVERTISEMENT

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 View Related

Hardware :: Possible To Access An IrDA Device As A Serial Device Such As /dev/ttyUSB0?

May 24, 2011

the message from dmesg for the IrDA device:

[ 3635.194162] usb 3-1: new full speed USB device using uhci_hcd and address 2
[ 3635.338159] usb 3-1: New USB device found, idVendor=066f, idProduct=4200
[ 3635.338165] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[code]...

View 1 Replies View Related

Ubuntu :: Cryptsetup Container Ain't Mountable Anymore?

Jan 22, 2011

i have a cryptsetup container, which after freshly setting up the computer isn't mountable anymore. Google didnt help me much soSince i use a keyfile, it cant be the passphrase.This is what i do:Quote:

losetup /dev/loop0 /home/data.img
cryptsetup -d super-secret-key.file data /dev/loop0
mount /dev/mapper/data /data

[code]....

View 4 Replies View Related

Debian :: Cryptsetup Automount USB Key

Aug 27, 2015

I setup a luks encrypted /home partition on my Debian jessie, with an automount when my usb key containing the luks secret is plugged in at startup.

I did configure /etc/fstab so that my usb key be mounted at startup to /media/usb1, and /etc/crypttab to open my encrypted partition with the key at /media/usb1/homekey. It works.

However, when my usb key is not plugged in, boot fails and never shows welcome screen. I would change this behaviour so that when my usb is missing, boot resumes and do not mount /home partition. How could I manage this?

View 0 Replies View Related

Ubuntu :: How To Get High Resolution Bootsplash When Cryptsetup Installed

Sep 12, 2010

I'm using an nvidia graphic card, as i read before on this forum, to get high resolution in bootsplash i need v86d package - and i installled it and i get back 1680x1050 resolution in bootslash. But the problem with resolution come back after installing cryptsetup package, now i've got 640x480 and i can change it, I trying to reconfigure v86d , plymount, trying update-initramfs -u but with no result.

View 4 Replies View Related

Debian :: Uninstall Cryptsetup Dmcrypt?

Oct 2, 2010

I have a 1 TB usb external disk. I was crypted it with cryptsetup. now I dont' want crypt. without losing data how can I clear dmcrypt from my external disk

View 1 Replies View Related

Ubuntu Security :: Cryptsetup Won't Accept Password After Normal Reboot?

Feb 2, 2010

Strange thing happend two days ago. I just wanted to reboot my computer and now I'm no longer able to boot o0. My system is runnig with a full encryption with luks/cryptsetup. I'm using a passphrase to unlock my first partition and it will unlock the others by itself. So far so good. But now it doesnt work anymore... I'm not sure what I did before, but what I know, I didn't change anything! about cryptsetup. I did only a little "update" with the recommended packages from the repositories (guess only 4-5 updated)

I already checked with live cd and same thing there. Not able to unlock any device (what seems strange to me, cause there are 4 of them and all corrupted at the same time...?)

I always get the error message: unlock failed, bad password or options? (on boot) Command failed: No key available with this passphrase (live cd)

First thing I did was checking wheter all modules are loaded:

Code:
ubuntu@ubuntu:~$ lsmod
Module Size Used by
sha256_generic 11580 0

[Code].....

View 5 Replies View Related

Debian :: Enabling Cryptsetup In Initrd Img Manually

Dec 1, 2015

I have encountered a bug in the live-build in Debian Live. The persistence does not work it is because of the bug #767195. I cannot recreate another live img file because of bandwidth problem, is there any way to repack the initrd and enable the cryptsetup?

as per suggested:
#767195 – cryptsetup needs to be enabled for initramfs inclusion – Debian Bug report logs
On Wed, Oct 29, 2014 @ 18:09, Evgeni Golov <evgeni@grml.org> wrote:
....
Edit: Line 77 -79 @
# nano /usr/lib/live/build/chroot_hacks

[Code] ....

View 0 Replies View Related

Fedora Security :: Cryptsetup: How To List Used Slots

Jan 13, 2011

The simple question 'How do I list all the used/unused LUKS slots' wasn't found in either cryptsetup Wiki or its man page.Is this possible - to list all the available/used LUKS slots for a given device?

View 2 Replies View Related

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

Ubuntu Multimedia :: Access The Photos That Are On The Device, But Nothing Else?

Oct 17, 2010

I just recently purchased an iPod touch 4G running iOS 4.1 under the assumption that it would play nice with Ubuntu as stated here:..Devices/iPhone. It doesn't! I can't seem to get it to work. It shows up as a camera with 86MB of available space. I can access the photos that are on the device, but nothing else. I really would like to be able to transfer music to the device, but nothing seems to work. Rhythmbox doesn't even seem to recognize that it's there, the device isn't showing up in /media, and I can't seem to get a mount point. Has anybody out there had any success in this area? I've tried on both my 10.04 Desktop and 10.10 laptop machines

View 2 Replies View Related

Ubuntu :: Remote Access With Android Device

Apr 7, 2011

Any way to remote access my Ubuntu Server using my Android phone?

View 2 Replies View Related

Ubuntu Security :: Permanent User Access To A Device?

May 11, 2011

I managed to make an old parallel port scanner work in ubuntu 11.04 with SANE. Everything's perfect but one thing: scanner applications work only if they are executed as a root.After further researching, I've found the cause is that only the root has read and write permissions on the device /dev/parport0 which is my parallel port. If I set the right permissions giving sudo chmod a+rw /dev/parport0 I solve my problem, but just untill next reboot... the system resets root only permissions at each restart. I would like to make that change permanent... what can I do?

View 6 Replies View Related

Fedora :: Command Failed: Can Not Access Device?

Jan 5, 2010

I updated quite a lot - kernel, selinux policies, initscripts, glibc and a lot more - and after reboot one filesystem does not mount. It says:Command failed: Can not access device... and asks for password. This is: RAID -> LVM (mirrored) -> LUKS -> ext3. Similar filesystem (raid->lvm(not mirrored)->luks->ext3) mounts fine. Mounting the problematic system by hand works fine. During boot, the lvm blockdev is named by UUID in crypttab, and the name used in fstab.

Of course I removed it from fstab to boot now. I tried downgrading initscripts so far, will try others. What I also noticed is that the emergency shell (bash) complains about something, I'd need to write it down next time I reboot; also "lvs" fails when / is ro, but maybe that's normal, dunno.Googling for the error message brought something about cryptsetup, but I didn't upgrade it (there is no upgrade available), and all I gather from it is that the error message might really mean something else, like device is already mapped.

It is probably something related to lvm mirrors, maybe also to luks, though the only related package in the list is the kernel, maybe the module-init-tools. SELinux seems not to be the cause, booting with permissive has the same problem. What I wrote above, leads me to thinking that luks is trying to set up lvm mirrors in parallel as they have the same uuid, but a) later during boot the mapping name is not there b) I have no idea what reads crypttab

View 1 Replies View Related

OpenSUSE :: Terminal Access To A Ethernet Device

Feb 24, 2011

I know that there is support for this, but i can't seem to find any appropriate tools. Let's say my widget is at 192.168.1.111; i need to open a terminal window talking to it. Then i can control the things connected to it (it is a bus converter). oS 11.1, KDE 3.5, various machines.

View 2 Replies View Related

OpenSUSE Hardware :: Changes In USB Device Access With Suse 11.2?

Dec 6, 2009

this weekend I updated the OS on my laptop from OS 10.3 to 11.2.Most things worked fine ... and quickly ... but I have issues with some USB devices.Printers and everthing that works like a Memory Stick, HD (camera, mobile phone) are OK. But after the update to 11.2 I can neither use my scanner anymore nor my Garmin GPS device. Both devices are listed with 'lsusb' correctly. But applications are not able to find/access them.

For the GPS device I do not know how to do more tests. The application (gpsman) that worked fine with 10.3 does not find it anymore. The Scanner is detected by Xsane or Skanlite and also the driver can be installed with Yast when plugged in. But a test fails with "sane_start: Error during Device I/O". 'sane-find-scanner' also lists the device correctly. As a normal user it complains that there is no write access for usblib to the usb device. As root this error does not appear. It can be avoided temporarily by setting chmod 777 to all /dev/bus/usb entries. Then 'sane-find-scanner' does not show any errors.
But the applications do not work.

I already added the normal user to the "lp" group as shown in the /etc/udev/rules.d/55-libsane.rules and tried to give access to the usb-devices in /etc/fstab .... all without success. As I have two USB devices (Scanner, GPS) that worked fine with 10.3 but are not an external HD (or similar), I assume that someting has changed with the handling of USB devices from 10.3 to 11.2.

View 8 Replies View Related

General :: How To Access TrackPad Device In Eeepc

May 24, 2011

I am on an Eeepc running Ubuntu and I am trying to store the raw data from the Eeepc's inbuilt track pad in a file.To do this with the keyboard (as root) I wentcat /dev/input/event7 > ~/raw-keyboard-out.dataThe result was the whole bunch of random-looking data I was hoping for.Now I want to do this for my mouse, and I tried all of the 'files' in this folder in an analogous operation and none of them seem to stream the input into a file.Does anybody know what the name of the TrackPad/mouse device is called in the /dev folder for an Asus Eeepc 1001p?

View 1 Replies View Related

Red Hat / Fedora :: Unable To Access Resume Device

Mar 18, 2010

How do you actually remove and install kernel when the system is not booting.

View 4 Replies View Related

Red Hat / Fedora :: Mailserver Have To Have Direct Access To WAN Or Can It Be A LAN Device With Just One NIC ?

Apr 22, 2010

Does a mailserver have to have direct access to WAN or can it be a LAN device with just one NIC ?

We have two WAN access points.

One is an adsl router joined to the switch and all seems fine for internet browsing.

The other is a wireless system with a linksys router joining by way of PPPoE and this appears to connect fine.

This PPPoE is direct to our ISP and where we need to downlod our mail to our pending mailserver.

When the linksys router is also joined to the switch all devices can use either the adsl or linksys to roam the net. 192.168.1.1 linksys & 192.168.1.10 is adsl.

When I join the linksys direct to the mailserver I will then need two NIC's. One for the Linksys and one for the LAN.

This is where the fun has started.

So.... Can I just have one NIC (connected to the switch) on the mailserver?

View 5 Replies View Related

General :: Switch CPU To 16 Bits To Access Its Device?

Apr 23, 2010

I have a CPLD (EPM240100T) chip that has data type of 16 bits, but the CPU access it using 8 bit. How do I switch the CPU mode (to 16 bits) to access this chip?

View 2 Replies View Related

CentOS 5 Hardware :: Attempt To Access Beyond End Of Device

Jul 6, 2010

I have a LVM snapshot that triggers these kernel errors when any LVM-related commands run:

Jul 6 10:31:38 itmanager kernel: attempt to access beyond end of device
Jul 6 10:31:38 itmanager kernel: dm-28: rw=0, want=66156996183394672, limit=25165824

dm-28 is the snapshot volume in device mapper. I think this error is generated because most LVM commands will check the first 4K of various drives and volumes for LVM metadata and labels, but attempts to read any of the first eight sectors (ie: 4K) of this particular snapshot logical volume trigger this error.The most interesting thing is that the snapshot is 25165824 sectors long (12G), but attempts to access the first eight sectors result in an attempt to access sector 66156996183394672!I've obtained an info dump from getinfo.sh disk, and added the output from lvs. You can find the results here:URL.. It's not as if the sectors that back the first 4K of the volume are corrupt, either: the read request never hits any hardware because the read request is attempting to read a non-sensical sector, instead of the correct sector. Perhaps the COW metadata for the snapshot is corrupt?

How do I find the cause of this problem?Is this a critical error that I should file a bug report for?I first noticed this some time after turning the machine on Sunday afternoon.As far as I can tell from the logs, the shutdown the previous evening was normal.I use LVM fairly heavily on this machine, and this is the first time I've ever seen this kind of problem..I've worked around the problem by copying the first eight sectors from the Origin volume, and the rest from the Snapshot volume, to a new normal logical volume.However, I'm still concerned about how this error occurred in the first place.

View 1 Replies View Related

Ubuntu :: Code To Access Hard Disk Sectors (LoopBack Device)

Jan 26, 2011

I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it has the following configuration.

Code: $> sudo fdisk -l /dev/loop0
Disk /dev/loop0: 10 MB, 10977280 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/loop0 doesn't contain a valid partition table Now what I want to do is develop a c++ program to read & write files to this loop back device,which I'm using to simulate an actual hard disk,at the blocks & sectors level. So far I've come up with the following code. But I'm still unable to read files from the hard disk one block at a time.

Code: #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char block[512]; int length=0;
cout<<"Implementation of the File Handler Read Method..."<<endl;
FILE *f = fopen("/dev/loop0", "r");
if(f == NULL) {
cout<<"Error In Opening the HardDisk File Retuning Error..."<<endl; return -1; }
//Read One Block of Data to Buffer length = fread(block, 1, sizeof(block), f);
/* Do something with the data */ cout<<"Length : "<<length<<endl;
return 0; }

When I run this Program All what I get is the message for NULL. "Error In Opening the HardDisk File Retuning Error...". So I could open the loopback device as a file an access it at the sectors & block level.

View 1 Replies View Related

Slackware :: How To Mount NAS Wireless Device And Access Files?

May 21, 2011

I have a Western Digital My Book World Edition II 2TB http://www.wdc.com/en/products/products.aspx?id=290 set up on my Windows install.how do I access the files from my Slackware box? I have Slack 13.37 64bit installed on a Samsung laptop.

View 8 Replies View Related

CentOS 5 Hardware :: Qla2460: Attempt To Access Beyond End Of Device

Feb 17, 2009

I'm experiencing some strange issues with a C5 installation on a Dell server with a QLA2460 HBA. When it boots up, I got a lot of these messages on dmesg:

[Code]...

View 4 Replies View Related

CentOS 5 :: Unable To Access Resume Device / Enable It?

Mar 7, 2011

I'm running CentOS 5.5 with a hardware Areca controller (Raid 10). I initially installed a machine and rsynced the file system to a third machine; I'm then pulling in the file system to new machines and updating grub with a script to make it bootable.

I've done this before with other machines (no raid sets) but with these machines I'm running into errors code...

View 1 Replies View Related

CentOS 5 Server :: Unable To Access Resume Device?

Sep 23, 2011

I face a problem with my server after i rebooted it i got a message on start up tell me that " Unable to access resume device (label=swap-sdb3) " and the system doesn't startup

the error message exactly is

Unable to access resume device (lable=swap-sdb3)
Creating root device.
Mounting root filesystem.
[ 3.305354] EXT-fs (md1) : error : unable to read superplock
mount: error mounting /dev/root on sysroot as ext3 : invalid argument

[Code]....

View 4 Replies View Related

General :: Software RAID Device Not Recognized - Can't Access Array

Aug 3, 2010

We ran out of space on our server hard drive, so I installed 2 x 1GB drives, set them up as a software RAID1 array, copied the contents of /home to it, mounted it as /home for testing. Everything OK, so I unmounted it, deleted the contents of the /home folders (don't worry, we're backed up), then remounted the array. Everything was fine until we rebooted. Now I can't access the array at all; during booting the error "mount: special device /dev/md1 does not exist" comes up twice, and manually trying toe same issue. The relevant line from fstab reads:

/dev/md1 /home ext3 defaults 0 0

However, using webmin shows only md0, the RAID0 device on which the OSD was originally installed. There is no /dev/md1 device file. The mdadm.conf file reads as follows:

# mdadm.conf written out by anaconda
DEVICE partitions
MAILADDR root
ARRAY /dev/md0 level=raid0 num-devices=2 uuid=76fd4050:fb820568:c9bd3a59:ad3e70b0

So it's not listed; I'm assuming this is significant. Am I right, and whether I am or not, what can I do?

View 3 Replies View Related

Fedora Installation :: Moving FC10 From SATA To PATA - Unable To Access Resume Device

Jan 26, 2010

I'm trying to move an existing FC10 install (created by someone else) from a 160GB WD1600AAJS SATA disk to a 160GB WD1600AAJB PATA disk (cursed trend of horizontally mounting SATA connectors at the end of the motherboard means the latest rev mobo doesn't fit in our enclosure!). I've used DD to copy the disk image from one to the other, but when attempting to boot, I get the following error:

Code:

Unable to access resume device (UUID=946f216f-0c24-4b02-a996-f42059970de7)
mount: error mounting /dev/root on /sysroot as ext3: no such file or directory

That particular UUID maps to sda2, which is the swap partition. Interestingly, both the SATA and PATA disk come up as /dev/sda on the motherboard. I kind of grok that the UUIDs are substitutes for directly naming the disks, and that they're referred to in fstab, initrd-2.6.27.12-170.2.5.fc10.i686.img, and in /dev/disk/by-* I'm guessing the problem is that the GUIDs (at least the one for swap) are no longer the same. How are they assigned to the partitions during boot?

I tried doing

Code:

swapoff -a
mkswap /dev/sda2
swapon -a

and put that new GUID in fstab and into initrd-* (using some steps I found elsewhere on how to gunzip/rezip it).At that point, I get a kernel panic on boot

Code:

Kernel panic - not syncing: CFS: Unable to mount root fs on unknown-block(0,0)

So I'm guessing that the other UUUDs have changed as well and I need to update them. How would I figure out what they are? I suppose I could change the references to /dev/sda*, but I didn't build this original image and I'm thinking whoever did had a good reason to go with UUIDs.

View 10 Replies View Related







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