Unix and Linux Discussions Tagged with knoppix |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
192 |
200,127 |
Open Source |
|
|
|
2 |
8,855 |
News, Links, Events and Announcements |
|
|
|
182 |
157,765 |
SuSE |
|
|
|
3 |
6,801 |
Debian |
|
|
|
86 |
40,806 |
What is on Your Mind? |
|
|
|
0 |
1,181 |
Software Releases - RSS News |
|
|
|
5 |
3,410 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
17,701 |
Windows & DOS: Issues & Discussions |
|
|
|
2 |
6,963 |
Filesystems, Disks and Memory |
|
|
|
2 |
2,411 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
13,518 |
Shell Programming and Scripting |
|
|
|
11 |
7,928 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
44,935 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
34,869 |
AIX |
|
|
|
2 |
6,238 |
Filesystems, Disks and Memory |
|
|
|
3 |
3,146 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,372 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,825 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
20,577 |
Linux |
|
|
|
1 |
2,539 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
9,394 |
SuSE |
|
|
|
1 |
14,053 |
Windows & DOS: Issues & Discussions |
|
|
|
3 |
3,027 |
Filesystems, Disks and Memory |
|
|
|
1 |
6,400 |
Programming |
|
|
|
3 |
3,623 |
Solaris |
|
|
|
3 |
2,415 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,167 |
UNIX and Linux RSS News |
|
|
|
3 |
4,625 |
Linux |
|
|
|
5 |
3,804 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,580 |
SuSE |
|
|
|
0 |
1,378 |
Software Releases - RSS News |
|
|
|
3 |
3,867 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,425 |
Shell Programming and Scripting |
|
|
|
3 |
14,257 |
Filesystems, Disks and Memory |
|
|
|
10 |
7,021 |
Programming |
|
|
|
3 |
2,767 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
4,561 |
Red Hat |
|
|
|
11 |
33,767 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,406 |
Red Hat |
|
|
|
4 |
6,955 |
UNIX for Dummies Questions & Answers |
VNDCOMPRESS(1) BSD General Commands Manual VNDCOMPRESS(1)
NAME
vndcompress, vnduncompress -- compress/uncompress file system images to/from cloop2 format
SYNOPSIS
vndcompress [-cd] disk/fs-image compressed-image [blocksize]
vnduncompress [-cd] compressed-image disk/fs-image
DESCRIPTION
The vndcompress program compresses an existing file system image into a cloop2 compatible compressed file system image. An optional block-
size can be given. If omitted, the default of 64kB is used.
The vnduncompress command decompress a cloop2-compressed file system image back into a regular image.
The file system images that can be handled are not limited to any specific file system, i.e. it is possible to handle images e.g. in ISO 9660
or UFS/FFS format. File system images in the cloop2 format are intended to be used with the vnd(4) driver in compressed mode as configured
by the -z option of the vnconfig(8) program, and later mounted with the appropriate -t option to mount(8).
OPTIONS
The following options are available:
-c Always compress, even if the program was started as vnduncompress.
-d Always uncompress (decompress), even if the program was started as vndcompress.
EXIT STATUS
The vndcompress and vnduncompress utilities exit with one of the following values:
0 The operation was performed successfully.
1 An error occurred.
EXAMPLES
To compress an existing CD-ROM file system image, run the following commands:
# vndcompress netbsd.iso netbsd.izo
Note that the resulting compressed image cannot be mounted directly via NetBSD's vnd(4) and mount_cd9660(8) commands any longer. Instead,
you will have to use the -z option of vnconfig(8).
The following example decompresses an existing CD-ROM file system image that was compressed in the cloop2 format into a regular file that can
then be mounted:
# vnconfig vnd0 KNOPPIX.iso
# mount -t cd9660 -o ro /dev/vnd0d /mnt
# vnduncompress /mnt/KNOPPIX/KNOPPIX /var/tmp/knoppix.iso
# umount /mnt
# vnconfig -u vnd0
#
# vnconfig vnd1 /var/tmp/knoppix.iso
# mount -t cd9660 -o ro /dev/vnd1d /mnt
# ls /mnt
.rr_moved cdrom floppy lib opt sbin usr
bin dev home mnt proc sys var
boot etc initrd none root tmp vmlinuz
# umount /mnt
# vnconfig -u vnd1
As an alternative, if your vnd(4) was compiled with VND_COMPRESSION, you can use vnconfig(8) to access the cloop-compressed image directly,
e.g.,
# vnconfig vnd0 KNOPPIX.iso
# mount -t cd9660 -o ro /dev/vnd0d /mnt
# vnconfig -z vnd1 /mnt/KNOPPIX/KNOPPIX
# mount -t cd9660 -o ro /dev/vnd1d /mnt2
# ls /mnt2
.rr_moved cdrom floppy lib opt sbin usr
bin dev home mnt proc sys var
boot etc initrd none root tmp vmlinuz
# df /mnt /mnt2
Filesystem Size Used Avail Capacity Mounted on
/dev/vnd0a 692M 692M 0B 100% /mnt
/dev/vnd1a 1.9G 1.9G 0B 100% /mnt2
# umount /mnt2
# vnconfig -u vnd1
# umount /mnt
# vnconfig -u vnd0
Note how the 1.9GB big filesystem on /mnt2 is mounted from the compressed file stored on the 692MB CD mounted on /mnt. To create a com-
pressed file system image of an existing directory and mount it, run:
# makefs -t ffs include.fs /usr/include
# vndcompress include.fs include.fs.cloop2
# vnconfig -z vnd0 include.fs.cloop2
# mount -o ro /dev/vnd0a /mnt
# ls /mnt
To undo the steps, run:
# umount /mnt
# vnconfig -u vnd0
# rm /tmp/include.fs.cloop2
# rm /tmp/include.fs
SEE ALSO
gzip(1), vnd(4), mount(8), mount_cd9660(8), vnconfig(8)
AUTHORS
The vndcompress utility was written by Florian Stoehr <netbsd@wolfnode.de>. The vndcompress manual page was written by Florian Stoehr
<netbsd@wolfnode.de> and Hubert Feyrer <hubertf@NetBSD.org>.
BSD
December 12, 2005 BSD