Debian Configuration :: Create An Encrypted File And Later Mount It As A Filesystem?

Aug 24, 2010

I am trying to create an encrypted file and later mount it as a filesystem.

KEY=`tr -cd [:graph:] < /dev/urandom | head -c 79`
echo $KEY | openssl aes-256-cbc > container.key
dd if=/dev/urandom of=~/container.img bs=1G count=10
losetup /dev/loop0 ~/container.img

[code]....

The luksOpen command asks me for my passphrase, but always rejects it. I have retried this several times and written down the passphrase - and even tried with a very simple one just to check. And I never can make it work.

View 2 Replies


ADVERTISEMENT

Debian Configuration :: Keyboard Layout Used At Boot For Encrypted Filesystem?

Jun 28, 2011

how can I set the keyboard layout used by Debian to enter the password of my encrypted filesystem?

After my recent "aptitude upgrade", I have not been able to mount my encrypted filesystem anymore. I have discovered that the keyboard layout used to enter the password has changed. Problem is that with such layout I can't enter some of the characters composing the password. The encrypted filesystem looks intact, since I have been able to mount it and backup my files by means of a live CD. That means that I can edit any system file, if needed.

Every technique I have found to change layout cannot be employed in this case, since they rely on the system being up and running. I've tried editing /etc/default/keyboard, but that does not work.

View 2 Replies View Related

Debian Configuration :: Permissions & Fuse - Mount A Remove Filesystem Onto Own Server

Feb 10, 2011

I'm trying to mount a remove filesystem onto my own server. I am able to do this, however I can only access it as root, or if I chmod 777 the lot. Obviously I want to be as secure as possible, so I'd like to avoid either one of those options. Another option is to mount it directly into my home directory, but previously when I was trying out Ubuntu this caused Samba problems - and I was advised mounting in my home dir was a workaround rather than a proper fix.

I have root access with sudo on my own server. I've not set a root pasword, and until I need to I'll avoid it. I have a user account with full control over my own home directory on the remote server. I am mounting using fstab - sshfs#username@remoteserver:/media/sdk/home/username/ /media//remote/ fuse    user,idmap=user 0 0

What I would like to do is without changing the permissions on the remote server change the permissions when they are mounted on my own server. I would like them to be in the group sambausers for example. Instead they are owned by root and in the group of 1024 (which I have not set). Additionally for this to work they would have to have 770 on my home server and 700 on the remote server....

View 1 Replies View Related

Software :: Encrypted Filesystem - Mount Failed With Run Sync Status 32

Dec 11, 2010

When I try to mount a linux file system that was encrypted using cryptsetup I get the following error:
debian:/# mount /dev/sdb3
Command sukey slot 0
mount: u moet een bestandssysteemsoort aangeven
mount failed with run_sync status 32
Command failed: Device busy
mount.crypto_LUKS(crypto-dmc.c:168): Could not unload dm-crypt device "/dev/mapper/_dev_sdb3", cryptsetup returned HXproc status 240
"mount: u moet een bestandssysteemsoort aangeven" is dutch for
"you must specify filesystem type"

View 10 Replies View Related

Debian Configuration :: Right Click - Create File From Document Template List?

Jul 2, 2011

When I right click on a free area of the desktop or within an open folder, I read "Create Document" -> "no templates installed" and "Empty File". How to install the templates in there so I could open a file of my choice?

View 3 Replies View Related

Debian :: Install On USB To Create Encrypted Partition

May 2, 2015

I'm trying to install Debian on a USB to create an encrypted partition, I get an error message saying I need to install missing firmware rtl_nic rtl8168d-2.fw.So I download that file and try again this time I get an error " There was a problem reading data from CD Rom" .I not using a CD Rom I put debian on the USB as an ISO file first using Unebutin then tried Rufus.

View 12 Replies View Related

General :: Mount A Windows File Share Securely (encrypted)?

Jan 15, 2009

I'd like to find a way to mount a windows file share securely (encrypted) as I'll be communicating over the Internet.

View 4 Replies View Related

Debian :: Mount Encrypted LUKS Partition (On Former System HDD)

Feb 1, 2016

I have two basically identical harddrives that are encrypted with LUKS containing a complete debian installation:

Code: Select allroot@x200s:/home/b# lsblk --fs
NAME                   FSTYPE      LABEL UUID                                   MOUNTPOINT
sda                                                                             
├─sda1                 ext2              0b851969-281e-4db2-8a5b-3798e801711b   /boot
├─sda2                                                                         
└─sda5                 crypto_LUKS       cfcf63ef-448a-4f72-9f58-8f7731cf3dfc   
  └─sda5_crypt         LVM2_member       21CS3f-SQeQ-XcMr-kyDs-OPtR-egmT-HkvJAu

[Code] ....

sda is what I currently run to write this text, sdb is my former harddrive, connected via USB.

I want to access the root partition on sdb.

The problem is:

Code: Select allcryptsetup luksOpen /dev/sdb5 oldhd
Enter passphrase for /dev/sdb5:
root@x200s:/home/b# ls /dev/mapper/
control  oldhd   sda5_crypt  x200s--vg-root  x200s--vg-swap_1
root@x200s:/home/b# mount /dev/mapper/oldhd /mnt/
[b]mount: unknown filesystem type 'LVM2_member'[/b]

[Code] ..

Before all this, both sda and sdb where in the same volume group. I renamed the volume group of sdb to "oldDisk"
using

Code: Select allvgrename <UUID> oldDisk

How I can access the data on the root filesystem of my sdb..

View 2 Replies View Related

Debian :: Create ISO From Current Filesystem?

Jun 20, 2010

I currently have a server setup in a perfect way for my specific network. Is there a way that I can mirror the server EXACTLY to a CD that will install all my configurations and the like upon CD boot?

View 5 Replies View Related

Debian Configuration :: Encrypted LVM Disappears In UEFI

Sep 6, 2015

Debian encrypted LVM disappears every time on sda when I install any other also encrypted Linux distro on sdb.

How can I set up Debian that way that it wouldn't disappear or how can I recover it form UEFI?

View 1 Replies View Related

Debian Configuration :: DNS And Resizing Encrypted Partition

Feb 27, 2016

I have Debian and Virtual Box with another Debian. I have resized max size of vdi file with VBoxManage modifyhd but now I need to resize partition on virtual machine's system. I've downloaded GParted and I can run machine from this ISO as CD. Partition is encrypted on machine.Unfortunately GParted doesn't start with X so I have to use it in terminal. I can see partitions:

Code: Select allroot@debian:/# fdisk -l
Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772610 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3914....

[code]....

So I though maybe I need to use this (URL...). I couldn't find similar tutorial about Debian or GParted but OK, it's just executing these commands, not modifying its source.list.But I cannot even do the update:

Code: Select allroot@debian:/# sudo apt-get update
Err: http://free.nchc.org.tw/debian sid InRelease
  Temporary failure resolving 'free.nchc.org.tw'
Err2: http://free.nchc.org.tw/drbl-core drbl InRelease
  Temporary failure resolving 'free.nchc.org.tw'
Reading package lists... Done
W: Failed to fetch http://free.nchc.org.tw/debian/dists/sid/InRelease  Teporary failure resolving 'free.nchc.org.tw'
W: Failed to fetch http://free.nchc.org.tw/drbl-core/dists/drbl/InRelease  Temporary failure resolving 'free.nchc.org.tw'
W: Some index files failed to download. They have been ignored, or old ones used instead.

So I check my internet connection. VirtualBox has 'attached to NAT' and before I run out of space on virtual machine, Debian could access internet. So it's only something about this GParted. I have modified /etc/resolv.conf with vi (even vim is not available). And it has two valid nameservers. I haven't restarted anything, as I'm not sure if I need to, after modifying resolv.conf file.But even in that case I cannot ping anything from GParted:

Code: Select allroot@debian:/# ping www.google.com
ping: unknown host www.google.com

How can I access internet from GParted and resize encrypted partition?

View 8 Replies View Related

Debian Configuration :: Online Resizing Of Encrypted Lvm?

Apr 4, 2011

When I installed Debian on this machine, I went with guided partitioning, encrypted lvm, and Debian defaulted to a 10GB / partition. I figured, hey, defaults are there for a reason, so left it alone.

Now that I need to shrink my /home and extend /, I'd like to do so as easily as possible. I installed system-config-lvm, read its man page ( which is really just a long description of the program, not much instruction ) and fired it up. Won't let me resize ( shrink ) /home, said files are in use.

Is there a way to use the nice pretty graphical tool, or do I need to boot to a non-X-using runlevel and log in as root, then muck about with CLI tools like lvresize and resize2fs?

View 2 Replies View Related

Debian :: Cannot Mount Volume Other Than FileSystem?

Jul 20, 2010

I have installed debian recently and not able to mount any other volume except FileSystem. It says -You are not privileged to mount this volume.I have tried everything including raising the permissions of the user and changing the group to root but in vain.??

View 4 Replies View Related

Debian Configuration :: Moving Encrypted System To New Drive

Dec 30, 2015

I want to move my old system to a new drive. Currently I have Debian installed with following configuration:

I have an encrypted system where everything is encrypted except /boot. Currently I've /boot and / installed on a 16 GB mSata SSD and /home on a regulard HDD. I've got a 500GB SSD for Christmas and want to move the whole system to the new SSD.

I just wanted to ask if I've got the process required to to this down:

1. backup root-directory (/) without and /boot /home using tar keeping file-permissions and owners to ext. hard drive
2. backup /boot and /home separately using the same method
2. replace HDD with SSD remove mSATA SDD.
3. boot via live-usb
4. create appropriate volume groups, partitions, setup encryption etc.
5. extract backups to appropriate partitions
6. chroot to old /.
7. edit fstab
8. reinstall grub
9. create new init ram img.

I'm pretty sure I've got steps 1.-6. down but I'm very shaky on what to do next.

View 0 Replies View Related

Debian Configuration :: Creating LUKS Encrypted USB Disk

Jan 15, 2016

Is it better to install LUKS to raw disk (/dev/sdb) or disk partition (/dev/sdb1)? What are best LUKS options?

"cryptsetup benchmark" output
Code: Select allPBKDF2-sha1      1310720 iterations per second
PBKDF2-sha256     862315 iterations per second
PBKDF2-sha512     590414 iterations per second

[Code] ....

Is slow hash better or how to choose it? It is clear that aes-xts is best choise. Is 265 bit key good?

View 3 Replies View Related

Debian Configuration :: Encrypted Home With Truecrypt On Usb Stick

May 31, 2011

is it possible to mount a truecrypt file container as a home directory before login, if so how to do that?

View 3 Replies View Related

Debian :: Reverting RAID 1 - Mount Partition As Standalone Encrypted Disk

Feb 11, 2011

I have 2 identical disks originally configured as a pair for a server. Each of the disks has 2 partitions dev/sdb1,dev/sdb2. The sdb1 partitions I had configured as a raid1 mirror. The sdb2 partitions were non-raid and used as extra misc. Space. Further, the raid setup is also encrypted using dm-crypt luks. Now I want to redeploy each of the disks for new purposes. One of the disks i want to deploy exactly as before (keeping the partitions and content), however without being part of a raid array.

I've successfully deployed this disk into a new system and I am mounting the dev/sdb1 partition as dev/md0 because the disk is set to autodetect raid. Actually I am using cryptsetup and mounting with mapper. Can I get rid of the setting for auto detect on this partition without losing the data, or breaking the encryption? I just want to mount the partition as a standalone encrypted disk. Is it as simple as doing crypt setup luksOpen /dev/sdb1 then mounting it with mapper? Or do I need to change the partition in some way. Or do I simply continue to operate it as a 'broken' raid array?

View 2 Replies View Related

Debian Configuration :: Boot Hangs With 4.2.6 Static Kernel And Encrypted LVM

Dec 7, 2015

I use a static compiled kernel and a fully encrypted disk apart from a boot partition. I have recompiled and installed kernels many times. When I tried with the latest kernel from Testing, 4.2.6, the system will not boot. Not only that but the previous kernel now does not boot. However, a stock modular kernel does boot. The static kernel hangs at:

Code: Select allVolume group "dk" not found
Cannot process volume group dk
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Reading all physical volumes. This may take a while...
/run/lvm/lvmetad.socket: connect failed: No such file or directory

[Code] ....

And after giving the password the boot continues successfully. How to diagnose it further?

View 1 Replies View Related

Debian Configuration :: Give Grub Access To Encrypted Partition

Apr 30, 2011

My partitions are set up as follows:

[code]...

I installed Ubuntu successfully using rescue mode on the alternate cd, and let Ubuntu use an internal boot and home. At the final stage grub refused to install to the MBR, and then refused to install to my /boot partition on /dev/sda2. It said: No boot loader has been installed, either because you chose not to or because your specific architecture doesn't support a boot loader yet. You will need to boot manually with the /vmlinuz kernel on partition /dev/mapper/volumegroup-natty and root=/dev/mapper/volumegroup-natty passed as a kernel argument. Returning to debian, I did a update-grub, which detects Windows and Ubuntu:

[code]...

How do I make grub decrypt the LUKS partition before attempting to load the Ubuntu kernel?

View 3 Replies View Related

Debian Installation :: Mount -unknown Filesystem Type 'xfs'

Aug 26, 2011

I recently upgrade my armel NAS from etch to squeeze. During the partitioning step of the installation I intentionally left unmounted the data partition (900GB formatted XFS) but after the installation I'm not able to mount it.

I edited the fstab file adding the last line

And tried a mount but I get the message

So i noticed throught lsmod that I don't have the module for xfs

Tried installing xfsprogs but it didn't helped. So I searched for xfs-modules but seems it doesn't exists for armel architecture. Am I right? What does it means? That XFS is not supported in armel Squeeze? Assumed I can't transfer/backup 900GB of partition, is there a way to convert it on-the-fly to a supported filesystem format?

View 8 Replies View Related

Debian Configuration :: Multipath Configuration On 5.0 64 Bit - Doesn't Create The Relative Devices

Jul 20, 2011

i have a HP MSA 2312fc SAN with 2 LUNs configured. The first LUN (LUN ID 1) is correctly connected to the system, but when i connect the second LUN (LUN ID 30), i find in the syslog this message: multipathd: 8:64: size 6835937472, expected 5267578112. Discard

Here is the multipath.conf

[Code]....

So I correctly see the two luns, but multipath doesn't create the relative devices. Under /dev/mapper I see: control mpath0 mpath0-part1 mpath0-part1 is the first lun, the one I mounted in a directory under filesystem. I can't find the device for the second lun

View 1 Replies View Related

Debian Configuration :: Readonly Filesystem And Mtab?

Jan 22, 2010

I have a system in which I want to have /etc in a read-only filesystem. What can I do with mtab? It gets write at /etc/init.d/mountall.sh (that is, /etc/rcS/S35mountall.sh)

View 3 Replies View Related

Debian :: Flash Drives Auto Mount To Wrong Filesystem

Jun 10, 2011

Sometimes when I plug in a USB flash drive, it is mounted to /dev/usb0 instead of /dev/drivename. This poses a problem for me because I have applications that depend on files I keep on flash drives, and having to frequently change the file paths is difficult. I haven't been able to find anything on this topic with a cursory search on Google or through the Debian reference. Heck, I don't even know what /dev/usb0 is (though I would like to learn, in the interest of being less of a noob). This is happening on a Squeeze system running Gnome, so I believe nautilus is what's responsible for auto-mounting my flash drives.

Beyond that, I don't know what other information I should provide; if you need to know something else, ask me (and perhaps tell me how to access that information). Someone on IRC suggested that I didn't have my drives set to mount in /dev/, but I have no idea how I would go about fixing that. If there's a configuration file that deals with this sort of thing, chances are I haven't touched it since installing this system. Debian installer sees usb drive as cd drive, so it adds it in fstab, but with wrong file system options (udf,iso9660) which is not the one your flash drive uses.

View 13 Replies View Related

Debian :: Can't Mount Ntfs: Unknown Filesystem Type 'LVM2_member'

Apr 27, 2011

I had windows with ntfs I installed ubuntu. All ok. Gurb with 2 os, can ran windows and ubuntu and can mount ntfs partition in ubuntu I installed debian with lvm over ubuntu partition. I can't mount ntfs partition now, and windows doesn't appears in gurb

# mount /dev/sda1 /mnt/windows/
mount: unknown filesystem type 'LVM2_member'
# pvs --all
PV VG Fmt Attr PSize PFree
/dev/dm-1 -- 0 0
/dev/dm-2 -- 0 0
/dev/root -- 0 0
[Code]....

I can't active vg because haven't name, but is not lvm, is only ntfs partition Maybe ubuntu puts in lvm and grub? Any idea? If I change with fdisk to ntfs i lose all the information in the partition?

[Code]...

View 4 Replies View Related

OpenSUSE Install :: Unknown Filesystem Type 'reiserfs' Could Not Mount Root Filesystem - Exiting To /bin/sh

Mar 27, 2010

When I try to boot to OpenSUSE I get the following error during boot-up: unknown filesystem type 'reiserfs' could not mount root filesystem - exiting to /bin/sh$

This only started happening quite recently - before this I could boot to Linux quite happily.

View 6 Replies View Related

General :: Detect Filesystem Type (can't Mount Filesystem Image .img)

Mar 11, 2011

I am trying to mount a file image, like this

mount -o loop /tmp/apps.img /media/apps

But I get the following:

mount: you must specify the filesystem type

I try ext3:

mount -o loop /tmp/apps.img /media/apps -t ext3

dmesg says:

error: can't find ext3 filesystem on dev loop6.

I've also tried ext2, vfat etc. How can I detect the filesystem type of apps.img?

View 2 Replies View Related

Debian Configuration :: System Does Filesystem Check On Every Boot After Upgrade

Jul 5, 2015

A few days ago I upgraded my debian sid system, and since then systemd does a filesystem check on every boot which takes over two minutes, disobeying the existing settings I had. How can I set systemd to do a filesystem check only once every a set number of mounts, like I had set up before the upgrade?

View 5 Replies View Related

Debian Configuration :: Copying / Moving Root Filesystem To Another Partition?

Mar 4, 2010

My root filesystems flooded so I'm trying to move it to another (bigger) partition but I'm not sure of the best method. I just tried to use "dd if=/dev/sda1 of=/dev/sda6" to copy it but all that did was give me a brand new partition with no freespace available presumably because the filesystem is smaller than the partition. Is it possible to make the filesystem bigger?

View 8 Replies View Related

Debian Installation :: Mount Root Filesystem Failed: Device Or Resource Busy

Jun 16, 2010

I've upgraded my squeeze box to linux kernel 2.6.32-5. But it shows mounting "here is the uuid of / " on /root failed: Device or resource busy while booting.Here is the menuentry of linux kernel 2.6.32-5.

[code]....

View 9 Replies View Related

Debian Configuration :: Fastest Partition Scheme Filesystem For Flash Media?

Nov 11, 2010

I thought this might interest someone out there:[URL].. I used SD cards with MBR formatted as ext2 for backup. After I read these articles, I reformatted my cards with GUID Partition Table and ext4 format. Now I make my backup in half the time!

View 2 Replies View Related







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