OpenSUSE :: Mount Encrypted Partition With Bash Script?

Oct 14, 2010

I currently have a simple bash script set up via cron to backup my data (rsync) to an internal hard drive at regular intervals. I leave this "backup" hard drive unmounted, and it is mounted and unmounted as needed with the bash script. If I were to encrypt this "backup" drive (via Luks, or some other means), is there a way to get my backup script to work without me having to be there to enter a password?

View 4 Replies


ADVERTISEMENT

Fedora :: Cannot Mount Encrypted Partition?

Apr 11, 2011

I used Ubuntu for years now, but since the latest decisions got public I deceided to try something new: Fedora. I installed the system as a dualboot,Ubuntu and my old data. Because Fedora got installed inbetween of two partitions,ad to do the partitioning manually. I just made one partition /dev/sda4. During the installation process I got asked about the password for my /dev/sda1 partition. Of course, I entered it. So far so good.Now, everytime when I boot, the boot process stops and asks me for the password of the /dev/sda1 partition. However, the boot process does not go on, unless i press STRG+C.After the log in, I can also not access my data, by entering the password (GUI).The only way I can acces the data on that partition is:

Code:
su -
cryptsetup luksOpen /dev/DEVICENAME luks-fedora

[code]...

View 4 Replies View Related

Fedora Installation :: How To Mount Encrypted LVM Partition

Jan 31, 2011

I encrypted my /home partition in my last installation F13. For some reason, I have to reinstall F13. After I login, I can not access /home. I followed some instructions like

modprobe dm-crypt
modprobe dm-mod
cryptsetup luksOpen /dev/vg_vit/lv_home vg_vit-lv_home

[code]...

View 3 Replies View Related

Ubuntu :: Can't Boot - Need To Mount Encrypted Partition?

May 2, 2010

Times like this Ubuntu makes me want to pull my hair out. When I enter my pass on the login screen, it brings up a "Could not update ICEauthority file" error and then goes to a black screen. I've tried to fix this problem for the past 2-3 hours (searching google, these forums, etc) and at this point, I just want the data off my drive so I can restart with a fresh install of Ubuntu. I used the "gsku nautilus" command to mount the disk from a Ubuntu Drive boot, but it's not letting me have access to the encrypted drive. Does anyone know of a work around for this?

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

Ubuntu :: Auto-mount Luks Encrypted Partition At Boot?

May 27, 2010

I'm having a problem auto-mounting a new luks partition. I have crypttab and fstab entries. I already have my primary encrypted partition (root) mounting at boot (from the install), but after creating this one manually, it does not open on boot. It auto-mounts when I run the following command manually after boot: sudo luksOpen /dev/disk/by-uuid/<uuid> mycrypt

/etc/crypttab entry:
personalcrypt /dev/disk/by-uuid/a1af5b7b-db58-4690-b586-b74407795e2c none luks
/etc/fstab entry:

[code]...

View 1 Replies View Related

Software :: Configure Pam_mount To Automatically Mount An Encrypted Partition ?

Apr 3, 2010

I'm trying to configure pam_mount to automatically mount an encrypted partition (luks) and formatted to NTFS. I typed the command in the configuration file:

Quote:

<volume user="user" fstype="crypt" path="/dev/sda6" mountpoint="~/dane2" options="defaults,umask=000" />

But the partition is mounted read-only. There is some way to mount the partition rw mode?

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

Ubuntu :: Mount Encrypted Ubuntu Partition Onto Gentoo

Mar 8, 2010

ive recently switched to Gentoo as my primary OS - the only problem im having so far is getting my ubuntu partition to mount, aparantly it is encrypted, although i cannot remember ever doing this. It is an ext4 filesystem. When I do

[code]...

It mounts, but when I cd to /media/Ubuntu/home/dean all I see is a blank README.txt and Access-Your-Prive-Data.desktop files. Is it possible for me to mount my ubuntu partition to be read / written to in gentoo? If not, how do I go about removing the encryption? (I still have access to the ubuntu install)

View 1 Replies View Related

OpenSUSE Install :: Pass Through Login Details To Mount Encrypted Volumes

Jul 17, 2010

I'm looking for a way of mounting an encrypted volume - home folder or a separate mount point, using only the standard login authentication (ie KDM or ssh). I thought the pam_mount module provided this, but I still get prompted for a password on the console at boot time. This is inconvenient as both my main desktops are headless HTPCs. I want the login credentials to be passed through, at log in time. I'm guessing this is possible, but to be honest, encryption is one thing in Linux that still completely confuses me.

View 1 Replies View Related

OpenSUSE Install :: Encrypted Home Partition Automount?

Jul 24, 2011

First off I'm new to the openSUSE community and would just like to say So, to the issue at hand. I recently switched to openSUSE 11.4 from Debian. I noticed the setup didn't have an option encrypt the home folder like it does in Debian, so not being aware of any other way to encrypt it, I created a new partition, backed up my current home directory, created a new partition and mounted it as home before copying in the contents of the backup to the encrypted home partition I created. Now of course it is askingme to put the crypto password in at each boot, which isn't ideal because it's a family machine and no-one would remember the password but me. Is there any way of being able to automount the encrypted partition without having to put the key in every time? Or better yet an encrypted home folder that doesn't require the key to be put in on each login (as in Debian) without even using a dedicated partition.

View 4 Replies View Related

OpenSUSE Install :: Error -3033 When Installing 11.3 64 With An Encrypted Partition

Jan 30, 2011

I got this error when installing 11.3 64 with the home partition encrypted.

"Failure occurred during the following action: Setting up encrypted dm device on /dev/sda7 System error code was: -3033"

Can I encrypt /home after the install? Should I?

View 1 Replies View Related

OpenSUSE Install :: Seamless Mount Of Encrypted Disks And New Session Creation After Each Screen Lock?

Sep 8, 2011

I installed openSUSE 11.4 on HP elitebook 2560p few days ago (using KDE live CD). In general system is working fine, but steel I cannot resolve couple of really annoying issues: 1. I've created encrypted partitions for swap and home during OS installation. As result the system keep asking for passwords for each of encrypted partitions before show login screen. That leads to situation when I have to type 3 passwords during each boot/reboot. I was using the same configuration (swap and home were encrypted) on Ubuntu 11.04 and there both encrypted partitions were mount automatically with no password typing after login to the system. Could you please tell how I can configure the same behavior on openSUSE 11.4 ?

2. I've enabled auto screen lock after 5 mins being inactive. As result when I going back to laptop and to unlock the screen the system shows login screen (default login screen with user selection). But when user and password filled in I click login it creates entire new KDE session. Therefore all staff that was open before screen lock is gone. However old session is still in the system (it appears in output from 'w' command).

View 6 Replies View Related

OpenSUSE :: Input/output Error For Files In Encrypted Ext4 Partition?

Sep 12, 2010

I've got input/output error from files in encrypted ext4 partition (external hdd), and I cannot delete them. What can I do to fix this? I don't need to recover them, I just need to delete them

View 4 Replies View Related

OpenSUSE Install :: Can't Access Encrypted Partition With The YaST Practitioner Tool

Feb 13, 2010

I encrypted my home partition with the YaST Partitioner tool, but now I can't access it anymore. After I encrypted it I rebooted the machine and thought that it would prompt me a password field to access the partition, but now I can't access it at all. I tried "mount -t ext4 /dev/sda7 /home" which gives me that error after I entered the password: "mount: wrong fs type, bad option, bad superblock on /dev/sda7, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so"

The info I get from "dmesg | tail" is: "EXT4-fs (sda7): VFS: Can't find ext4 filesystem" Before I encrypted it I converted the /home partition from ext3 to ext4 without any problems and it worked properly. After playing around with it I also discovered that /dev/sda7 got wiped out of /etc/fstab, but I entered it again.

View 9 Replies View Related

Software :: Mount Error: Can't Mount An Encrypted Volume With An Overlaying Ext3 FS

Jun 6, 2010

I created a encrypted volume on top of software raid1. These are my steps:

1. Create logical partition on sda

2. Create logical partition on sdb (same size)

3. Change type to partition to 'fd' for both partitions

4. Check that the both partitions are same size and type
fdisk -l /dev/sda && fdisk -l /dev/sdb

5. partprobe

6. Make sure there are no remains from previous RAID installations on /dev/sdb by running:
mdadm --zero-superblock /dev/sda6
mdadm --zero-superblock /dev/sdb6

7. mdadm --create /dev/md4 --level=1 --raid-disks=2 /dev/sda6 /dev/sdb6

8. watch cat /proc/mdstat

9. update mdadm.conf
mdadm --examine --scan | grep mdx >> /etc/mdadm.conf

10. Load twofish module
[root@localhost ~]# modprobe twofish

11. # cryptsetup -y -c twofish-cbc-essiv:sha256 create ftdata /dev/md4
Enter passphrase:
Verify passphrase:

12. mkfs.ext3 -b 4096 -R stride=8 /dev/mapper/ftdata

13. mkdir /ftdata

14. Mount the encrypted volume: mount -O noatime /dev/mapper/ftdata /ftdata

It mounts successfully this first time. When I cd /ftdata, I can see the lost+found dir

Now, I unmount the volume
cd ~

Code:
umount /ftdata
cryptsetup remove ftdata

And now, if I try to setup my encrypted volume like this:

Code:
[root@localhost ~]# cryptsetup create ftdata /dev/md4
Enter passphrase:
mount -O noatime /dev/mapper/ftdata /ftdata
I get this error:
mount: you must specify the filesystem type

[Code].....

View 1 Replies View Related

CentOS 5 :: Mount Error: Can't Mount An Encrypted Volume With An Overlaying Ext3 FS

Jun 6, 2010

I created a encrypted volume on top of software raid1. These are my steps:

1. Create logical partition on sda

2. Create logical partition on sdb (same size)

3. Change type to partition to 'fd' for both partitions

4. Check that the both partitions are same size and type fdisk -l /dev/sda && fdisk -l /dev/sdb

5. partprobe

6. Make sure there are no remains from previous RAID installations on /dev/sdb by running: mdadm --zero-superblock /dev/sda6 mdadm --zero-superblock /dev/sdb6

7. mdadm --create /dev/md4 --level=1 --raid-disks=2 /dev/sda6 /dev/sdb6

8. watch cat /proc/mdstat

9. update mdadm.conf mdadm --examine --scan | grep mdx >> /etc/mdadm.conf

10. Load twofish module [root@localhost ~]# modprobe twofish

11. # cryptsetup -y -c twofish-cbc-essiv:sha256 create ftdata /dev/md4 Enter passphrase: Verify passphrase:

12. mkfs.ext3 -b 4096 -R stride=8 /dev/mapper/ftdata

13. mkdir /ftdata

14. Mount the encrypted volume:
mount -O noatime /dev/mapper/ftdata /ftdata

It mounts successfully this first time. When I cd /ftdata, I can see the lost+found dir

[Code]....

So why is it that I can't mount my encrypted volume after the first time? I am giving the correct password when it asks to.

View 3 Replies View Related

OpenSUSE :: Mount An Image From A NTFS Partition?

Feb 5, 2010

I try to mount an image from a NTFS partition. Below is not working.

sudo mount /windows/D/img/XPLANE9.mdf /media/XPLANE9/ -t iso9660 -o ro,loop=/dev/loop0

View 2 Replies View Related

OpenSUSE Install :: Can Ext 3 Home Partition Mount On 11.2

Dec 28, 2009

I was looking to do a fresh install of 11.2 and use my home partition from 11.1. During the Gnome Live version I wanted to see how suse would configure my computer. It recognized everything fine, except it didn't show my current home partition which is ext 3. Because Opensuse 11.2 has switched to ext 4 as default for root and home? I was hoping to use my old home with 11.2. Is there any way to make the switch without losing my settings? During the live install the partitioner didn't use my current home partition, it was going to make a new one.

So I opened up the partitioner in yast to see why it didn't use my current home and it shows no mount point for my home ext 3. Would changing the mount point on my ext 3 partition to home make the 11.2 installer recognize this as my home to use? Or will I have to copy my current home. Paste it elsewhere. Delete old home. Use unallocated space as ext 4. Paste old home on new ext4 to have the 11.2 installer recognize this as my home. So, current home is ext 3. 11.2 installer wants to make a new home on ext4. How do I use my current home settings? I haven't installed yet just tried a live run.

View 4 Replies View Related

OpenSUSE Install :: Raid 0 Partition Don't Mount?

Jun 9, 2011

After an install of suse 11.4, one of my drives raid 0 (ichr9 intel) does not mount and is not recognized as being formatted in NTSF, while the other unit raid 0 (ichr9) is recognized without problems?

View 4 Replies View Related

OpenSUSE :: Mount Vfat Partition Automatically After Boot?

Oct 23, 2010

How to mount vfat partition automatically after boot? After login it it will mount all vfat partition and the icon of those parition will be at desktop. How can it be done. udisks is installed. If i click a vfat partition from pcmanfm it prompts for password to mount.I don't want to click. It will be automatically mounted and i will get the icon of that mounted vfat partition at desktop

View 7 Replies View Related

OpenSUSE Install :: /Home Partition Will Not Mount During Startup

Dec 28, 2009

This is strange. I moved OS 11.1 from an old 150 GB PATA drive over to a 500 GB SATA using Parted Magic. The old and new partitions were

Code:
OLD:
/dev/sda1 - 19.99 GB, mounted as / (root partition)
/dev/sda2 - 97.82 GB, mounted as /home
/dev/sdb1 - 29.52 GB, Windows XP
NEW:
/dev/sda1 - 29.30 GB, mounted as /
/dev/sda2 -292.97 GB, mounted as /home
/dev/sda3 - 45.82 GB, Windows XP

I used the "Clonezilla" tool on the Parted Magic live CD to move and resize the partitions. To my delight, everything appeared to transfer just fine. I can boot into OpenSUSE 11.1 (though not into Windows, but that's not really important; I'll figure that out later), but my /home partition won't mount. I'm set to autologin, and I get the expected error: "can't access /home/stephen" (or something like that). Here's the weird thing. I can ALT-F3, get a terminal and manually "mount /dev/sda2 /home", go back to ATL-F7 and log right in, so I know the disk is fine. (I've already 'fsck'd everything, by the way, and they're clean.)

I've used Yast's partitioner about a dozen times, trying "device by ID" and other settings. I always get the same thing when I reboot. On this last reboot, when it refused to log into /home, I ALT-F3'd, logged in as root, did a "cat" on "/etc/fstab" and entered the device-by-id line exactly as I saw it there and it mounted the /home directory just fine! ALT-F7, logged into KDE. I'm typing this in KDE now. Works fine. I so rarely need to reboot this machine that I can manually mount the /home partition, if need be, but (obviously) I'd like it to be mounted automatically during the boot.

Here's my /etc/fstab:
Code:
/dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA534RV0DJ4LA-part1 / ext3
acl,user_xattr 1 1
/dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA534RV0DJ4LA-part2 /home ext3 acl,user_xattr user,acl,1 2
/dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA534RV0DJ4LA-part3 /windows/C
ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 .....

I don't see anything obviously wrong here. The fact that I can take that second line and do a manual "mount" shows me that the device ID is at least correct. Just to be clear, here's what I entered in virtual terminal 3 as root to get my home partition to mount:
Code:
mount /dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA534RV0DJ4LA-part2 /home
and it worked fine. Exact same line.

View 9 Replies View Related

OpenSUSE Install :: Mount And Write Into Ntfs Partition?

May 31, 2010

I've dual boot: opensuse 11.2 and Windows XP. Howto mount and write to ntfs partition using /etc/fstab?

View 3 Replies View Related

OpenSUSE Install :: Error 17: Cannot Mount Selected Partition

Jul 9, 2010

I installed Mac OS X 10.6, Windows 7 Ultimate, and made 4 partitions.OSX and 7 installed fine, but when I tried to install SUSE, it stopped at 92%.I get this error:

Code:

grub>setup --stage2=/boot/grub/stage2 --force-lba (hd0,3) (hd0,3)
Error 17: Cannot mount selected partition
grub> quit

View 2 Replies View Related

Security :: Bash And Python Scripts - Encrypt Them But Still Be Able To Execute Them Encrypted?

Aug 24, 2010

I have some bash and python scripts. Is there any way to encrypt them but still be able to execute them encrypted?

View 7 Replies View Related

OpenSUSE Install :: Mount A UFS2 Partition As Read And Write

Jun 23, 2010

I need some assistance mount a UFS2 partition as read and write. if its not possible, then I may have to copy a few hundred GBs of data. Currently using the command: Code: mount -r -t ufs -o ufstype=UFS2 /dev/sdb /Data Thats just read only.

View 7 Replies View Related

Fedora :: Mount An Encrypted Lvm On A Live Cd?

Mar 4, 2010

I want to mount my laptops encrypted root partition so I can do some maintenance on it - xfs filesystem. Is there a way to do this?

View 8 Replies View Related

Fedora Installation :: F15 Can't Mount Encrypted LVM?

May 24, 2011

I just replaced my Fedora 14 installation in which I have an encrypted LVM which contains /home and /tmp (no, I didn't back up ), when I boot I enter my password, and get dropped to the maintainance login a few minutes later. I'm wondering how I can mount my /home from the Live system so I can just back up over the network.

I haven't worked with LVM very often so I'm out of my depths on this.

This is my partition layout as reported by the installer: screenshot

Edit: upon boot the system tells me that /dev/mapper/logvol01 and /dev/mapper/logvol00 don't exist

Edit2: Nevermind, Disk Utility is smarter than I am.

View 3 Replies View Related

OpenSUSE :: Mount A Remote Windows Partition Onto Local Host Through Rdesktop?

Mar 26, 2011

basically i am able to connect to my other windows machine using rdesktop I want to be able to mount the window machine's partition (particularly my media folder cusermyaccountVideo) i know rdesktop ipaddr -r disk: blah blah blah mounts the partition onto the local machine however, i cant figure out what the specific commands are i tried followings but with no luck

Code:
rdesktop ipaddr -u username -p password -r :c=mntmntpoint
rdesktop ipaddr -u username -p password -r :c=mntmntpoint
rdesktop ipaddr -u username -p password -r :cmyaccountVideo=mntmntpoint

all these commands didnt work do anyone know how to do this? i thikn there must be a way

PS: no luck with smbfs as my machines arent on the same lan network (not sure if samba can connect remotely)

View 7 Replies View Related

General :: Mount Read Only Ext4 Partition From Opensuse In / Etc / Fstab Under Ubuntu?

Jun 4, 2010

I have dual boot: Ubuntu 10.04 and Opensuse 11.2.Howto mount Read Only ext4 partition from Opensuse in /etc/fstab under Ubuntu?

View 3 Replies View Related







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