[Bug 146225] Re: bunzip2 cannot extract files

Jean-Pierre 146225 at bugs.launchpad.net
Sat May 11 07:45:02 UTC 2013


This issue is still present, as it should :

[root at dimension ntfslowprof]# ntfs-3g -o uid=0,gid=500 ../images/cf32M-9.clone disk
[root at dimension ntfslowprof]# exit
exit
[linux at dimension ntfslowprof]$ cd disk/linux
[linux at dimension linux]$ bunzip2 linemode.try.bz2

bunzip2: I/O or other error, bailing out.  Possible reason follows.
bunzip2: Operation not permitted
	Input file = linemode.try.bz2, output file = linemode.try
bunzip2: Deleting output file linemode.try, if it exists.
[...]
[linux at dimension linux]$ strace bunzip2 linemode.try.bz2
[...]
fchmod(4, 0100777)                      = -1 EPERM (Operation not permitted)
write(2, "\nbunzip2: I/O or other error, ba"..., 69
bunzip2: I/O or other error, bailing out.  Possible reason follows.
) = 69

Explanation : when mounting with uid=0,gid=500 the files are created as
owner root, and a user process cannot do a chmod on a file it does not
own. With these mount parameters the check is done by the kernel and the
chmod does not even reach ntfs-3g (so a "silent" optionhas no effect).

When mounting this way, you should get "Warning : using problematic
uid==0 and gid!=0" in your syslog file. You also can only set the mtime
to the current time, and copying a file does not preserve the mtime.

In real life, I do not have this issue, because I mount with option
"permissions".

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ntfs-3g in Ubuntu.
https://bugs.launchpad.net/bugs/146225

Title:
  bunzip2 cannot extract files

Status in “ntfs-3g” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: ntfs-3g

  this is gutsy, ntfs-3g version 1:1.710-1ubuntu4

  If I try to decompress any bz2 files I get this error
  bunzip2: I/O or other error, bailing out.  Possible reason follows.
  bunzip2: Operation not permitted
          Input file = odf-converter_1.0.0-1~getdeb1_i386.deb.bz2, output file = odf-converter_1.0.0-1~getdeb1_i386.deb
  bunzip2: Deleting output file odf-converter_1.0.0-1~getdeb1_i386.deb, if it exists.

  with gunzip I get 2 these errors
  gzip: odf-converter_1.0.0-1~getdeb1_i386.deb: Operation not permitted
  gzip: odf-converter_1.0.0-1~getdeb1_i386.deb: Operation not permitted

  but at least the file is created

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntfs-3g/+bug/146225/+subscriptions




More information about the foundations-bugs mailing list