-
open an old Knoppix.img with Knoppix 7
As I can't have a persistent crypted container file for my config + own files on the disk I want with Knoppix 7, waiting I'd like to manage with my old Knoppix.img file
I tried to use 'sudo mount -t ext2 -o loop,encryption=AES256 /media/sdc1/knoppix.img ./Desktop/knoppix' as I do on a lot of different Linux distrib, but on Knoppix 7 it doesn't work: I get a message about wrong fs or other trouble (while I am sure the knoppix.img is ok). Of course I did first 'sudo modprobe cryptoloop'.
any idea? (again I looked for the solution here and in the FAQ without succes)
thanks!
PS I modify very little the Knoppix/Linux/programs files, so I plan a script that will copy from my crypted container all the needed files. I did the script test already, it works well and it's very fast, so - except I don't know how to put it in the crypted container - it may be an issue for me.
-
Member
Hi user89,
you are in wrog: your knoppix.img is not a crypted container.
You have to create a new aes crypted container to put your personal data in it
After that, you can mount this data store using a simple script when you need.
but I give notes that it is possible to have a persistent crypted container for your config + own files called knoppix-data.aes to run knoppix in llive mode with persistence
well let me know what solution you need
-
> your knoppix.img is not a crypted container.
my old knoppix.img is crypted (Knoppix 5), I need a passphrase to open it
> You have to create a new aes crypted container to put your personal data in it
how can I create such a container with Knoppix 7? (the "create persistent file" that was in the Knoppix 5 menu is not here anymore)
no way to keep the same container from Knoppix 5? (at least just to open/read it)
> but I give notes that it is possible to have a persistent crypted container for your config + own files called
> knoppix-data.aes to run knoppix in llive mode with persistence
on the boot device only, right?
I need such a file NOT on the boot device and bigger than 4Gb
-
Member
Create a file .aes
ok I had not read your requests posted in other threads
1: create a new dir
Code:
mkdir /mnt-system/work
2: create a text file in /mnt-system/work called store.pw with written inside the new desired password (max 14 char lenght !!!)
3: open a root scell
Code:
dd if=/dev/urandom of=/mnt-system/work/store.aes bs=1M count=2048 #2GB
losetup -p 0 -e aes -k 256 /dev/loop6 /mnt-system/work/store.aes </mnt-system/work/store.pw
mkfs -t ext2 -L MyData /dev/loop6 # MyData is the label you will see after mounting
mount -t ext2 -o rw /dev/loop6 /mnt-system/work
rm /mnt-system/work/store.pw
4: mount your old knoppix.img file from knoppix5
Code:
mount -t ext2 /media/sdc1/knoppix.img /mnt-user -o encryption=aes,keybits=256,loop
and you will ask to enter your password
5: copy your important data. If you want copy all at once you can use
Code:
rsync -ax /mnt-user/ /mnt-system/work
6: close all
Code:
umount /mnt-system/work && losetup -d /dev/loop6
umount /mnt-user
7: if you rename store.aes to knoppix-data.aes and put it in /mnt-system you can use it like persistence, and at boot you need to enter the password to use your own data
8: if you need a file more 4GB you will put in other place and NOT in FAT32 partition
take a look to my old threads: http://knoppix.net/forum/threads/29666-KNOPPIX-6.7.1-on-USB-with-very-large-persistent-data-image
Hope that help you and not make a mistake ![Very Happy](images/smilies/icon_biggrin.gif)
bye
Last edited by Blacksimon; 07-03-2012 at 04:24 PM.
-
thanks! but
mount -t ext2 /media/sdc1/knoppix.img /mnt-user -o encryption=aes,keybits=256,loop
gives the same result after I give my password:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
And here the result of dmesg :
EXT2-fs (loop0): error: can't find an ext2 filesystem on dev loop0.
I checked again the Knoppix.img with the Knoppix 5 CD and on a PC with Ubuntu, it works, the container opens with the password... So what's wrong with Knoppix 7?
-
Member
but are you sure it is a ext2 fs and not a ext3 ??
or tape a wrong password ?
-
sure of the ext2 and the password as I can open the file on other OS with the same command
-
Member
ok
try to mount in other way
Code:
echo yourpassword | losetup -e aes -p 0 /dev/loop6 /media/sdc1/knoppix.img
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
Blacksimon
ok
try to mount in other way
Code:
echo yourpassword | losetup -e aes -p 0 /dev/loop6 /media/sdc1/knoppix.img
it's ok, I already tried it but... but... next when I want to mount /dev/loop6 I get the same error:
mount: wrong fs type, bad option, bad superblock on /dev/loop6, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
I really don't understand why Knoppix 5 and Ubuntu agree to open this container, and not Knoppix 7... anybody tried to do the same?
-
I tried again "sudo mount -t ext2 -o loop,encryption=AES256 /media/sdc1/knoppix.img ~/Desktop/knoppix" after a reboot. Now I get :
ioctl: LOOP_SET_STATUS: No such file or directory
I don't understand :/ And "sudo mount -t ext2 /media/sdc1/knoppix.img /mnt-user -o encryption=aes,keybits=256,loop" still gives the same old result "mount: wrong fs type, bad option, bad superblock on /dev/loop3, missing codepage or helper program, or other error. In some cases useful info is found in syslog - try dmesg | tail or so"
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301 picture](/store/img/g/J0AAAOSwSiVlu-xI/s-l225/ARUBA-J9772A-2530-48G-PoE-48-PORT-ETHERNET-SWITCH-.jpg)
ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301
$140.23
![Cisco SG300-52-Port Gigabit Managed Rack Mountable Network Switch picture](/store/img/g/sOIAAOSwtV1mUVhk/s-l225/Cisco-SG300-52-Port-Gigabit-Managed-Rack-Mountable.jpg)
Cisco SG300-52-Port Gigabit Managed Rack Mountable Network Switch
$44.95
![Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture](/store/img/g/kjQAAOSwNkhj0o7Y/s-l225/Fortinet-FortiSwitch-FS-124D-POE-24-Port-Gigabit-E.jpg)
Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED
$99.97
![HPE ARUBA 2530-24G J9773A PoE+ 24-PORT GIGABIT ETHERNET SWITCH J9773-60201 picture](/store/img/g/RNgAAOSwrTtlQZet/s-l225/HPE-ARUBA-2530-24G-J9773A-PoE-24-PORT-GIGABIT-ETHE.jpg)
HPE ARUBA 2530-24G J9773A PoE+ 24-PORT GIGABIT ETHERNET SWITCH J9773-60201
$93.24
![NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter picture](/store/img/g/GtAAAOSw441l3Jx1/s-l225/NETGEAR-GS108-ProSafe-8-Port-GbE-Unmanaged-Switch-.jpg)
NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter
$14.99
![NETGEAR GS305300PAS 5 Port Gigabit Ethernet Unmanaged Switch picture](/store/img/g/d0AAAOSwNv9mRbnq/s-l225/NETGEAR-GS305300PAS-5-Port-Gigabit-Ethernet-Unmana.jpg)
NETGEAR GS305300PAS 5 Port Gigabit Ethernet Unmanaged Switch
$22.99
![TP-Link TL-SG108 8-Port 10/100/1000 Mbps Gigabit Ethernet Desktop Switch FREE SH picture](/store/img/g/eHwAAOSwSOxlsrl8/s-l225/TP-Link-TL-SG108-8-Port-10-100-1000-Mbps-Gigabit-E.jpg)
TP-Link TL-SG108 8-Port 10/100/1000 Mbps Gigabit Ethernet Desktop Switch FREE SH
$14.99
![NETGEAR GS305-5 Port Gigabit Ethernet Switch, Mountable picture](/store/img/g/NbcAAOSwsOhmcRLQ/s-l225/NETGEAR-GS305-5-Port-Gigabit-Ethernet-Switch-Mount.jpg)
NETGEAR GS305-5 Port Gigabit Ethernet Switch, Mountable
$15.00
![Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig Copper UPOE Network Switch picture](/store/img/g/UdkAAOSwDmpmMtqf/s-l225/Cisco-Catalyst-C9300-24UX-A-24-Port-10G-mGig-Coppe.jpg)
Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig Copper UPOE Network Switch
$499.00
![Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch picture](/store/img/g/BUMAAOSwtOFjdfzi/s-l225/Loocam-Gigabit-PoE-Switch-8-Port-96W-2-Uplink-Port.jpg)
Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch
$49.99