Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am trying to extract the initrd.lz from the casper folder

lzma -dc -S .lz initrd.lz | cpio -imvd --no-absolute-filenames

and i get this message:

lzma: Decoder error
cpio: premature end of archive

i am using ubuntu 10.10, is there another command to extract lz files? am i missing a parameter?

what can be the issue? thanks

share|improve this question
up vote 15 down vote accepted

You will see this error if you are :

  1. Using a different distribution other than Ubuntu (for example Mint) OR
  2. you have an old version of Ubuntu (eg: Karmic 9.10) OR
  3. you have a disk error OR
  4. you are trying using a software like Reconstructor

If you want to customize your initrd, i recommend to use the latest version 11.10 and then customize it.

share|improve this answer
oh i was using mint11 file with ubuntu 11.10 it works, thanks – aki Dec 2 '11 at 12:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.