Unix Technical Forum

files as folders..

This is a discussion on files as folders.. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Ihave a problem.. don't we all ;-) In my vfat partitions (HD and cardreaders) all folders showes up as ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 08:28 AM
steelneck
 
Posts: n/a
Default files as folders..

Ihave a problem.. don't we all ;-)

In my vfat partitions (HD and cardreaders) all
folders showes up as files instead of, well, folders.
And this is only in some apps that uses gnome-vfs and
the gnome file-chooser, for example, Nautilus,
GnomeCommander, Mozilla, XMMS, Gedit... but not
in Gedit, there it works??. And it is not so in xterm,
mc, or whatever text-console app, there it
works just fine.

I suspect this can have something to do also with
my previous post (got no answer) about libgphoto2
and Gtkam. I get som "garbage" characters in that
problem.

My locale is (right now, i have tried other):
bash-2.05b$ locale
LANG=sv_SE.iso88591
LC_CTYPE="sv_SE.iso88591"
LC_NUMERIC="sv_SE.iso88591"
LC_TIME="sv_SE.iso88591"
LC_COLLATE="sv_SE.iso88591"
LC_MONETARY="sv_SE.iso88591"
LC_MESSAGES="sv_SE.iso88591"
LC_PAPER="sv_SE.iso88591"
LC_NAME="sv_SE.iso88591"
LC_ADDRESS="sv_SE.iso88591"
LC_TELEPHONE="sv_SE.iso88591"
LC_MEASUREMENT="sv_SE.iso88591"
LC_IDENTIFICATION="sv_SE.iso88591"
LC_ALL=sv_SE.iso88591

I did suspect that "sv_SE.iso88591" is wrong
and that it should be something like "sv_SE.ISO-8859-1"
but no, that did not help. So i made a "locale -a"

bash-2.05b$ locale -a | grep sv
sv_FI
sv_FI@euro
sv_FI.iso88591
sv_FI.iso885915@euro
sv_SE
sv_SE.iso88591

Well it says "sv_SE.iso88591"...

Does anybody have a clue?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 08:28 AM
steelneck
 
Posts: n/a
Default Re: files as folders..

steelneck wrote:
> Ihave a problem.. don't we all ;-)
>

Sorry, forgot.
It is Slackware 9.1 (std Slack kernel).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 08:28 AM
steelneck
 
Posts: n/a
Default Re: files as folders..

steelneck wrote:
> steelneck wrote:
>
>> Ihave a problem.. don't we all ;-)
>>

> Sorry, forgot.
> It is Slackware 9.1 (std Slack kernel).


Update, it all works as root, i am one of those
that behaves, and do not run anything as root
unless it is necessary... Well now i discovered
some of it, but problem remains.

So i make:
bash-2.05b$ locale
LANG=sv_SE.iso88591
LC_CTYPE="sv_SE.iso88591"
LC_NUMERIC="sv_SE.iso88591"
LC_TIME="sv_SE.iso88591"
LC_COLLATE="sv_SE.iso88591"
LC_MONETARY="sv_SE.iso88591"
LC_MESSAGES="sv_SE.iso88591"
LC_PAPER="sv_SE.iso88591"
LC_NAME="sv_SE.iso88591"
LC_ADDRESS="sv_SE.iso88591"
LC_TELEPHONE="sv_SE.iso88591"
LC_MEASUREMENT="sv_SE.iso88591"
LC_IDENTIFICATION="sv_SE.iso88591"
LC_ALL=

And then:

bash-2.05b$ su
Lösenord:
bash-2.05b# locale
LANG=sv_SE.iso88591
LC_CTYPE="sv_SE.iso88591"
LC_NUMERIC="sv_SE.iso88591"
LC_TIME="sv_SE.iso88591"
LC_COLLATE="sv_SE.iso88591"
LC_MONETARY="sv_SE.iso88591"
LC_MESSAGES="sv_SE.iso88591"
LC_PAPER="sv_SE.iso88591"
LC_NAME="sv_SE.iso88591"
LC_ADDRESS="sv_SE.iso88591"
LC_TELEPHONE="sv_SE.iso88591"
LC_MEASUREMENT="sv_SE.iso88591"
LC_IDENTIFICATION="sv_SE.iso88591"
LC_ALL=

They are identical, so this leads me to some
permission problem, but where. I have a hard
time to belive that Slack "users" are forbidden
to change language by default permissions, well
maybe there are some reason so that root only
can do it for the system as a hwole, but how?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 08:28 AM
Juergen Frieling
 
Posts: n/a
Default Re: files as folders..

Hallo steelneck

No big help here but you should do 'su -'. With

> bash-2.05b$ su


your environment isn't changed and so

> They are identical,


isn't a surprise ;-)


Juergen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 08:28 AM
Franz M. Sauerzopf
 
Posts: n/a
Default Re: files as folders..

In <2MKYb.83211$dP1.224176@newsc.telia.net>, steelneck wrote:

> steelneck wrote:
>> steelneck wrote:
>>
>>> Ihave a problem.. ...

> Update, it all works as root, ....


I don't think it's the locales, but your /etc/fstab.
Here it has a line:
/dev/hda1 /mnt/wndws vfat users,umask=022 1 0

Maybe the umask is the problem?
Good luck

Franz


--
Franz M. Sauerzopf
Atominstitut, TU Wien

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 08:28 AM
steelneck
 
Posts: n/a
Default Re: files as folders..

Juergen Frieling wrote:
> Hallo steelneck
>
> No big help here but you should do 'su -'. With
>
>


No difference.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 08:28 AM
steelneck
 
Posts: n/a
Default Re: files as folders..

Franz M. Sauerzopf wrote:
> In <2MKYb.83211$dP1.224176@newsc.telia.net>, steelneck wrote:
>
>
>>steelneck wrote:
>>
>>>steelneck wrote:
>>>
>>>
>>>>Ihave a problem.. ...

>>
>>Update, it all works as root, ....

>
>
> I don't think it's the locales, but your /etc/fstab.
> Here it has a line:
> /dev/hda1 /mnt/wndws vfat users,umask=022 1 0
>


No my fstab for old wintendo is
/dev/hde1 /mnt/windows vfat defaults 0 0

In my old Mandrake i have something like your examle
with umask, but there it works (it is also supermount).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 08:28 AM
Eef Hartman
 
Posts: n/a
Default Re: files as folders..

steelneck <jemamo@telia.com> wrote:
> No my fstab for old wintendo is
> /dev/hde1 /mnt/windows vfat defaults 0 0


Since Slackware 9.0 "defaults" for vfat partions will give something
like "rwxr--r--", as fas as I know, and as ROOT mounted it (so is the
owner), you won't be able to go to any subdir as "normal user" as the
dirs do not have any "x" bits set for "other then the owner".
So you _must_ use an umask when you mount a vfat partition at bootup.
Or use the "user" cq "users" options, then the mounter is also the
owner of the files, so _does_ have the x bit set on the subdirs.
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 08:28 AM
steelneck
 
Posts: n/a
Default Re: files as folders..

Eef Hartman wrote:
> steelneck <jemamo@telia.com> wrote:
>
>>No my fstab for old wintendo is
>>/dev/hde1 /mnt/windows vfat defaults 0 0

>
>
> Since Slackware 9.0 "defaults" for vfat partions will give something
> like "rwxr--r--", as fas as I know, and as ROOT mounted it (so is the
> owner), you won't be able to go to any subdir as "normal user" as the
> dirs do not have any "x" bits set for "other then the owner".
> So you _must_ use an umask when you mount a vfat partition at bootup.
> Or use the "user" cq "users" options, then the mounter is also the
> owner of the files, so _does_ have the x bit set on the subdirs.



Many, many thanks Harman!

Easy solution, i was making it harder than it was.
I just changed the fstab line to:

/dev/hde1 /mnt/windows vfat defaults,umask=022 0 0

Now i can concentrate on my problems with libgphoto2 and
Gtkam, there it is some UTF8 iso problems, it was this
that lead me in the wrong direction, brain-lock.

Hopefully this thread will show up for others with
similar problems.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com