Results 1 to 2 of 2

Thread: how to bunzip2 a sparse file

  1. #1
    Join Date
    Dec 2010
    Beans
    2

    how to bunzip2 a sparse file

    I have a bzip2 compressed disk image, and I would like to uncompress it again onto my disk without using up lots of space, in fact there isnt enough space on my disk if I were to uncompress it as is. However it was a sparse file with lots of space in its original form, so I know it will fit if I can uncompress it directly as sparse. Is there some combination of bzip2,cat,cp,dd or friends I can use to pipe the output from bzip2 directly to a sparse file again?

    Thanks a lot for your suggestions!

  2. #2
    Join Date
    Feb 2011
    Beans
    2

    Re: how to bunzip2 a sparse file

    Hi, you can use tar --sparse (or -S)

    -S , --sparse
    handle sparse files efficiently

    create file:
    tar cvSfj file.tar.bz2 sparsefile

    and then uncompress:
    tar xSf file.tar.bz2

Tags for this Thread

Bookmarks

Posting Permissions

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