2010-03-30 05:55:51 lsattr displaying: Inappropriate ioctl for device
Yathindran P (INDIA)
Message: 87849
Hey,
I am trying to list the file attributes bu using lsattr in a FAT32 USB mounted in ucLinux. When i give lsattr it says "Inappropriate ioctl for device" .. similar message is shown for chattr too! ..
root:/mnt/usb> lsattr
lsattr: reading ./filea: Inappropriate ioctl for device
lsattr: reading ./fileb: Inappropriate ioctl for device
lsattr: reading ./filec: Inappropriate ioctl for device
root:/mnt/usb>
can u guys pls throw some light on this!!
Thanx
Yathi
QuoteReplyEditDelete
2010-03-30 15:01:42 Re: lsattr displaying: Inappropriate ioctl for device
Mike Frysinger (UNITED STATES)
Message: 87857
lsattr is for listing *ext2/3/4* attributes. it makes no sense on any other filesystem.
QuoteReplyEditDelete
2010-03-31 00:54:24 Re: lsattr displaying: Inappropriate ioctl for device
Yathindran P (INDIA)
Message: 87884
oh! Thanks Mike!! but is there any way to list FAT32 or NTFS File attributes or access them in UCLinux ??
Regards,
Yathi
QuoteReplyEditDelete
2010-03-31 01:15:50 Re: lsattr displaying: Inappropriate ioctl for device
Mike Frysinger (UNITED STATES)
Message: 87885
use mtools
QuoteReplyEditDelete
2010-04-05 01:41:18 Re: lsattr displaying: Inappropriate ioctl for device
Yathindran P (INDIA)
Message: 88085
hey Mike, Thanks but when i tried to compile mtools for uClinux i get the the following wrror. Am not able to cross this obstacle!
This is what i tried
CC=bfin-linux-uclibc-gcc ./configure --host=bfin-linux-uclibc --prefix=/home/yathi/mtools-4.0.13/out
and i got this
checking whether setpgrp takes no argument... configure: error: cannot check setpgrp when cross compiling
Would be great if u can help me with this!
Thanks
Yathi
QuoteReplyEditDelete
2010-04-05 02:16:01 Re: lsattr displaying: Inappropriate ioctl for device
Mike Frysinger (UNITED STATES)
Message: 88086
so export ac_cv_func_setpgrp_void=yes first