Server Fault is a question and answer site for system and network administrators. 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 would use xattr in python, but found the xattr's keys() is empty, does that indicate the libattr feature wasn't enabled? I've learned the libattr feature is disabled in ext3/ext4 by default, but how to enable it? Expect your help! Thank you~

>>> import xattr
>>> x = xattr.xattr('tiger_8a428_userdvd.dmg')
>>> x
<xattr file='tiger_8a428_userdvd.dmg'>
>>> x.keys()
share|improve this question
up vote 2 down vote accepted

Add user_xattr to the mount options for the filesystem in /etc/fstab.

Something like:

UUID=b1ab1ab1-ab1a-b1ab-1ab1-ab1ab1ab1ab1  /  ext3  user_xattr,relatime,errors=remount-ro 0  1
share|improve this answer
thank u very much~ – zkz Aug 11 '10 at 4:49

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.