You are not logged in.

#1 2005-04-26 18:52:21

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Device-mapper

Is device-mapper available in archlinux?


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#2 2005-04-26 19:01:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Device-mapper

Did you search the forums and AUR?

I would suggest taking those steps first and foremost - if you cannot find a PKGBUILD, then request it in the AUR Requests forum.

Offline

#3 2005-04-26 19:29:23

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Device-mapper

Searched forums...


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#4 2005-04-26 22:21:12

juergen
Developer
From: Frankfurt/Germany
Registered: 2005-04-11
Posts: 48
Website

Re: Device-mapper

lilsirecho wrote:

Is device-mapper available in archlinux?

Yes, i use it together with cryptsetup to encrypt my filesystems:

Name           : device-mapper
Version        : 1.01.01-1
Groups         : None
Packager       : Arch Linux (http://www.archlinux.org)
URL            : http://www.sistina.com/products_lvm.htm
License        :
Architecture   : i686
Size           : 82630
Build Date     : Thu Apr  7 19:05:27 2005 UTC
Install Date   : Mon Apr 11 18:10:31 2005 UTC
Install Script : No
Reason:        : installed as a dependency for another package
Provides       : None
Depends On     : glibc
Required By    : cryptsetup
Conflicts With : None
Description    : Device mapper ioctl library.


Name           : cryptsetup
Version        : 0.1-2
Groups         : None
Packager       : Arch Linux (http://www.archlinux.org)
URL            : http://www.saout.de/misc/dm-crypt/
License        :
Architecture   : i686
Size           : 51128
Build Date     : Wed Apr 13 23:45:40 2005 UTC
Install Date   : Thu Apr 14 22:19:22 2005 UTC
Install Script : No
Reason:        : explicitly installed
Provides       : None
Depends On     : device-mapper libgcrypt popt
Required By    : None
Conflicts With : None
Description    : A userspace setup tool for transparent encryption of block
                 devices using the Linux 2.6 cryptoapi

Offline

#5 2005-04-26 23:58:28

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Device-mapper

juergen;
Many thanks for your well-covered device-mapper install.

My purpose for the device is to aid in mapping via Linux2.6 a block device setup permitting a DVD sized LIVEDVD which is not limited to 2GB filesize.

This procedure is outlined in KNOPPIX DVD forum and purports to allow 16GB of compressed data to be provided on  LiveDVD by using four "cloop" loops in mke2fs block format which are then "mapped" in concatenation to form the 16GB DVD.

Thus 8GB of cloop, each 2GB in compression and four of them, are "mapped" as a single DVD burn.

I am not an expert on this item, just learning and making messes with my attempts.

I assume to be able to perform the needed steps as outlined in the KNOPPIX FORUM DVD that I need to have "cloop" in arch and maybe cloop-tools as well.  Some indication that zisofs and zisofs-tools are also needed to do the mke2fs block format.

I see where zisofs is enabled in arch but not sure about the zisofs-tools.

I have a ways to go to give the idea a try and appreciate the response. big_smile


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#6 2005-04-27 00:11:36

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Device-mapper

Juergen;
The following text describes the methodology of the 16GB DVD:

If you use Linux 2.6 with driver mapper support you can go around 2Gb limit a little bit differently - split your uncompressed image into chunks (on a block boundary) which would compressed into under 2Gb sized images, use separate cloop devices for each of them and then use 'linear' target to put them all together. Try something like this (assuming 65536 block size and 16Gb uncompressed image):

split -b 4294967296 KNOPPIX-UNCOMPRESSED.iso KNOPPIX.iso.
create_compressed_fs KNOPPIX.iso.aa 65536 > KNOPPIX0-gz.iso
create_compressed_fs KNOPPIX.iso.ab 65536 > KNOPPIX1-gz.iso
create_compressed_fs KNOPPIX.iso.ac 65536 > KNOPPIX2-gz.iso
create_compressed_fs KNOPPIX.iso.ad 65536 > KNOPPIX3-gz.iso

modprobe cloop
losetup /dev/loop0 KNOPPIX0-gz.iso
losetup /dev/loop1 KNOPPIX1-gz.iso
losetup /dev/loop2 KNOPPIX2-gz.iso
losetup /dev/loop3.KNOPPIX3-gz.iso

dmsetup create knoppix <<EOF
0 8388608 linear /dev/loop0 0
8388608 8388608 linear /dev/loop1 0
16777216 8388608 linear /dev/loop2 0
25165824 8388608 linear /dev/loop3 0

mount -r -t iso9660 /dev/mapper/knoppix /KNOPPIX

So, here - you'll have your under 2Gb file sizes on iso9660 and a nice 16Gb uncompressed file system. Smile
The only problems are that Linux 2.4 does not have device mapper and you need to adjust your mounting schema for /KNOPPIX during boot.

Hope it helps,
Cheers,


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#7 2005-04-27 01:37:18

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Device-mapper

juergen;
I have downloaded the cryptosetup and device-mapper apps with pacman.

I would need cloop as well to complete this trial balloon.

I do not plan to download 8GB of apps but expect to be able to utilize the cloop file in KNOPPIX LiveCD four times and map them together.  Alternatively, it may be possible to use other cloop files from the same Linux kernel, say, files from KNOPPIX v3.8 along with files from KNOPPIX v3.8.1.  Both are kernel 2.6.11.

Perhaps I can utilize KNOPPIX v3.8 to provide the cloop needed and mount my hdd to perform the device-mapper, etc.

Pleased that the information you provided was appropriate big_smile

There are other methods described in the DVD forum which include the ext2fs use.

I am unfamiliar with the numerical entries provided with the data I gave in a previous post.  I assune they mean something in cryptoland!!


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

Board footer

Powered by FluxBB