Showing posts with label cab. Show all posts
Showing posts with label cab. Show all posts

2014-03-13

Tiny Core Linux extract file


RPM:
rpm2cpio filename.rpm | cpio -vid
  -- OR --
rpm -i filename.rpm

deb:
ar p filename.deb data.tar.gz | tar xz
  -- OR --
ar vx filename.deb
tar -xzvf data.tar.gz

tcz:
  unsquashfs myStartup.tcz
  mksquashfs squashfs-root myStartup.tcz
--OR--
    sudo mount -o loop extension.tcz /tmp/image
    tcz-pack (package-tools.tcz)

lzma:
    tar --lzma -xvf file.tar.lama
  xz -d file.tar.lzma

cab:

ISO: 
sudo mount -t iso9660 -o loop

ISO: udf,iso13346
sudo mount -t udf,iso13346 -o loop

vdi: (qemu.tcz) - use qemu connect the VDI to /dev/nbd?
   rmmod nbd
   modprobe nbd max_part=16
   qemu-nbd [-r] -c /dev/nbd0 <vdi-file>
   mount /dev/nbd0p1 /mnt
   umount /mnt
   qemu-nbd -d /dev/nbd0

initrd.gz/core.gz:  http://wiki.tinycorelinux.net/wiki:remastering
    zcat tinycore.gz | sudo cpio -i -H newc -d
    sudo find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz

initrd.img:
    mount -t sysfs /inventAnonExistentFilename.whatever targetDirectory/