0

I am trying to uncompress tar.bz2 file to ext3 formatted MicroSD card and after copying some files to card I see below errors and tar fails with below errors

    tar: ./usr/lib/gcc/gcc/arm-poky-linux-gnueabi/4.8.2/cc1: Wrote only 8704 of 10240 bytes
        2 tar: ./usr/lib/gcc/gcc/arm-poky-linux-gnueabi/4.8.2/cc1: Cannot utime: Read-only file system
        3 tar: ./usr/lib/gcc/gcc/arm-poky-linux-gnueabi/4.8.2/cc1: Cannot change ownership to uid 0, gid 0: Read-only file system
        4 tar: ./usr/lib/gcc/gcc/arm-poky-linux-gnueabi/4.8.2/cc1: Cannot change mode to rwxr-xr-x: Read-only file system
....
tar: Exiting with failure status due to previous errors

When this error happened MicroSD card has enough capactiy

Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/sdd1      ext3   29G  910M   27G   4% /media/lager_fs

I am able to untar the bz2 to my local filesystem. How can I fix this issue to untar it directly to MicroSD card?

  • From your own post: Read-only file system. The filesystem is either RO to start with an nothing gets written or something causes it to change to RO. – Hennes Feb 18 '16 at 11:47
  • @Hennes Yes it looks like that. Before this error I was able to write to the card but after this error I cannot write unless I unmount remove and insert the card again – Poorna Feb 18 '16 at 12:28
  • Can you write other files to the card? – Hennes Feb 18 '16 at 14:48
  • @Hennes No I cannot write any files after this error – Poorna Feb 18 '16 at 15:58
  • Can you write any files to the card after a clean mount and before trying to bunzup? If not the problem has nothing to do with gzip. – Hennes Feb 19 '16 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.