Results 1 to 5 of 5

Thread: help with zip

  1. #1
    Junior Member registered user
    Join Date
    Sep 2003
    Posts
    11

    help with zip

    ok this is not a knoppix subject but rather a basic linux topic. I am a type of newb who doesent get what --help and man tries to say - so maybe u can help me.

    i want to do a simple stuff.

    create a archive of one file to smaller zip-part files.

    Input: file.exe (3mb)
    zip rizzledizzle
    Output: archive1.zip(1mb); archive2.zip(1mb); archive3.zip(0.5mb)

    Hopu u understand what i mean - and pleas tell me the line i have to type to terminal.

    thnx

  2. #2
    Junior Member registered user
    Join Date
    Sep 2003
    Posts
    22
    I believe zip doesn't support volume spanning (at least not UNIX zip). Use rar/unrar instead, it comes with Debian and is supported on Windows too (by WinRAR).

    hw

  3. #3
    Junior Member registered user
    Join Date
    Sep 2003
    Posts
    11
    right now i am at work and here we have one redhat version from ancient history and it has onli tar and zip - so is it possible with tar?
    how?

    thnx

  4. #4
    Junior Member registered user
    Join Date
    Sep 2003
    Posts
    22
    It's possible, yes, but I have never done it.
    You can't use compression (ie tar.gz, tar.bz2, etc) with multivolume tar archives though.

    I have no floppy disk here so this is a wild guess:

    tar Mcvf /floppy/newarchive.tar *

    This - I *think* - would create newarchive.tar on the floppy (if mounted on /floppy) with all files in the current directory, and hopefully pause and ask you for a new medium (disk) when it runs out of space.

    hw

  5. #5
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --Here's something I thought of trying with zip, but I dunno if such an old RH will support it:

    (example)
    Code:
    ' zip -9q rizzledizzle /boot/* '
    
    -rw-r--r--    1 dave     dave      3497680 Sep 17 19:54 rizzledizzle.zip
    ( The number below is 1400 * 1024 )
    Code:
    ' zipsplit -b . -n 1433600 rizzledizzle.zip '
    
    3 zip files will be made (100% efficiency)
    creating: ./rizzled1.zip
    creating: ./rizzled2.zip
    creating: ./rizzled3.zip
    
    -rw-r--r--    1 dave     dave      1433434 Sep 17 19:56 rizzled1.zip
    -rw-r--r--    1 dave     dave      1172797 Sep 17 19:56 rizzled2.zip
    -rw-r--r--    1 dave     dave       891493 Sep 17 19:56 rizzled3.zip
    -rw-r--r--    1 dave     dave      3497680 Sep 17 19:54 rizzledizzle.zip
    --The PROBLEM is, I think zipsplit can't break up a zip into arbitrary sizes - it can only start a new zipfile where the internal filesizes are small enough that an EOF is encountered, and adding another file will overflow the desired size. In other words, it won't work on just 1 big file.

    (Turns out my suspicion is right: )
    Code:
    ' zip -9q rizzledizzle /mnt/drived/dave/Installed/spybotsd12.exe '
    
    drwxr-xr-x    2 dave     dave           80 Sep 17 20:06 .
    drwxr-xr-x   57 dave     dave         3328 Sep 17 19:54 ..
    -rw-r--r--    1 dave     dave      3612718 Sep 17 20:06 rizzledizzle.zip
    
    ' zipsplit -b . -n 1433600 rizzledizzle.zip '
    zipsplit error: Entry too big to split (mnt/drived/dave/Installed/spybotsd12.exe)
    --However, the ' split ' program itself has no such limitation. I split the Knoppix DVD Beta ISO into CDR700-sized chunks, and got them back together with the ' cat ' program, and the result even passed the md5sum test.

    --Thus:
    Code:
    ' split -b 1m rizzledizzle.zip rizdiz '
    
    -rw-r--r--    1 dave     dave      1048576 Sep 17 20:12 rizdizaa
    -rw-r--r--    1 dave     dave      1048576 Sep 17 20:12 rizdizab
    -rw-r--r--    1 dave     dave      1048576 Sep 17 20:12 rizdizac
    -rw-r--r--    1 dave     dave       466990 Sep 17 20:12 rizdizad
    -rw-r--r--    1 dave     dave      3612718 Sep 17 20:06 rizzledizzle.zip
    --To get things back together in the proper order:
    Code:
    ' cat rizdizaa rizdizab rizdizac rizdizad >rizdiz2.zip '
    
    -rw-r--r--    1 dave     dave      3612718 Sep 17 20:14 rizdiz2.zip
    -rw-r--r--    1 dave     dave      1048576 Sep 17 20:12 rizdizaa
    -rw-r--r--    1 dave     dave      1048576 Sep 17 20:12 rizdizab
    -rw-r--r--    1 dave     dave      1048576 Sep 17 20:12 rizdizac
    -rw-r--r--    1 dave     dave       466990 Sep 17 20:12 rizdizad
    -rw-r--r--    1 dave     dave      3612718 Sep 17 20:06 rizzledizzle.zip
    Code:
    ' md5sum r*.zip
    722560afddc6b14fd8248723fa9bcf24  rizdiz2.zip
    722560afddc6b14fd8248723fa9bcf24  rizzledizzle.zip
    --To get around this limitation in the future, consider investing in one or more of the following:

    o 100Mbit Ethernet cards (can be had for ~$5 these days)

    o USB Ethernet cable (Farallon)

    o USB or Parallel port Zip drive (Get the 100Meg if you can find it, and ' modprobe ppa ')

    --If you get Ethernet going, you can have Fun with Netcat(TM).

    Quote Originally Posted by hw-tph
    It's possible, yes, but I have never done it.
    You can't use compression (ie tar.gz, tar.bz2, etc) with multivolume tar archives though.

    I have no floppy disk here so this is a wild guess:

    tar Mcvf /floppy/newarchive.tar *

    This - I *think* - would create newarchive.tar on the floppy (if mounted on /floppy) with all files in the current directory, and hopefully pause and ask you for a new medium (disk) when it runs out of space.

    hw

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray picture

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray

$39.99



Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A

$64.00



Toshiba DT01ACA100 1 TB 3.5

Toshiba DT01ACA100 1 TB 3.5" SATA III 3.5 in Desktop Hard Drive

$24.99



HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD picture

HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD

$41.00



Seagate Barracuda ST1000DM003 1 TB SATA III 3.5 in Desktop Hard Drive picture

Seagate Barracuda ST1000DM003 1 TB SATA III 3.5 in Desktop Hard Drive

$23.99



Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE picture

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE

$68.99



Seagate Exos ST2000NX0253 HDD 2TB SATA 7.2K 2.5

Seagate Exos ST2000NX0253 HDD 2TB SATA 7.2K 2.5" 512b/s

$58.00



Seagate ST3000NM0005 HDD 3TB SATA 6Gb/s 7.2K 3.5

Seagate ST3000NM0005 HDD 3TB SATA 6Gb/s 7.2K 3.5" 512 b/s

$59.00



Tested WD Ultrastar DC HC520 12TB 7.2K RPM SATA 6Gb/s 3.5

Tested WD Ultrastar DC HC520 12TB 7.2K RPM SATA 6Gb/s 3.5" HDD HUH721212ALN600

$239.99



Seagate ST8000NM0075 Enterprise Capacity 3.5 HDD 8TB SAS Hard Drive 8TB EXOS picture

Seagate ST8000NM0075 Enterprise Capacity 3.5 HDD 8TB SAS Hard Drive 8TB EXOS

$184.99