LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2005, 12:31 PM   #1
suselapper
LQ Newbie
 
Registered: Nov 2004
Posts: 22

Rep: Reputation: 15
files called 'aux.*' on FAT filesystems?


Strange issue: I have a FAT filesystem on my dual boot laptop and find that under SuSE 9.3 I am unable to create any files called aux.* (e.g. aux, aux.txt, aux.tst).

No such problems on the linux filesystems, nor with slightly differently named files (naux.tst, auxn.tst, etc.).

Also, this is anywhere on the filesystem, independent of (sub) directory.

Any ideas?

Thanks
 
Old 11-09-2005, 12:42 PM   #2
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
please post the output of :

mount
id -u
 
Old 11-09-2005, 01:59 PM   #3
suselapper
LQ Newbie
 
Registered: Nov 2004
Posts: 22

Original Poster
Rep: Reputation: 15
further info

As requested:

/windows/C> mount

/dev/hda8 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda7 on /boot type ext3 (rw,acl,user_xattr)
/dev/hda9 on /home type ext3 (rw,acl,user_xattr)
/dev/hda2 on /windows/C type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0022,utf8=true)
/dev/hda5 on /windows/D type vfat (rw,nosuid,nodev,uid=1000,gid=100,umask=0022,utf8=true)
usbfs on /proc/bus/usb type usbfs (rw)

/windows/C> id -u

1000



The partition with the problem is /dev/hda5.
 
Old 11-09-2005, 04:13 PM   #4
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
Quote:
/dev/hda5 on /windows/D type vfat (rw,nosuid,nodev,uid=1000,gid=100,umask=0022,utf8=true)
I can't see anything wrong here.

what happens when you type

touch /windows/D/name_irrelevant

??
 
Old 11-09-2005, 04:21 PM   #5
suselapper
LQ Newbie
 
Registered: Nov 2004
Posts: 22

Original Poster
Rep: Reputation: 15
touching stuff...

In response to your question:

/windows/C> touch /windows/D/name_irrelevant
/windows/C> touch /windows/D/aux
touch: setting times of `/windows/D/aux': No such file or directory
/windows/C> touch /windows/D/naux
/windows/C> touch /windows/D/aux.tst
touch: setting times of `/windows/D/aux.tst': No such file or directory

With as result:

/windows/D> ls -1ltr
total 19200
[SNIP]
drwxr-xr-x 9 user1 users 16384 2005-11-06 14:55 Downloads
-rwxr-xr-x 1 user1 users 0 2005-11-09 16:17 name_irrelevant
-rwxr-xr-x 1 user1 users 0 2005-11-09 16:17 naux

NOTE: it is not specific to the touch command. Any file access generating these files is impossible, giving various errors depending on the program from which it occurs.
 
Old 11-09-2005, 04:54 PM   #6
Back_to_Linux
Member
 
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
hi,
very problematic.. i fall on yourpost, i tried, and same things, probleme with time synchronisation or Invalid Arurment, ...
maybe these is options for the command (like ps -aux=ps aux).
But it's very interresting and i'll go tosearch why it's happen.
I'll come back and we discusse on it.
 
Old 11-09-2005, 04:58 PM   #7
suselapper
LQ Newbie
 
Registered: Nov 2004
Posts: 22

Original Poster
Rep: Reputation: 15
very strange indeed

It does seem a very confusing and strange problem. I ended up recoded my program to give the files involved a different name, but it still puzzles me.

Funny that it is not specific to my system

It must be some very low level issue...

I already tried to switch between BASH and TCSH, using different software to create the files, but nothing makes a difference it seems.

I am very curious to see the explanation to this problem.
 
Old 11-09-2005, 04:59 PM   #8
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
well i was wrong !

name is not irrelevant : aux.* is making a difference.

at the moment i'm running cygwin on w2k. trying to create aux.txt:

4:08(/tmp)1257% touch aux.txt
touch: setting times of `aux.txt': Permission denied

and looking at cygwin_help
Quote:
DOS devices: Windows filenames invalid under Windows are also invalid under Cygwin. This means that base filenames such as AUX, COM1, LPT1 or PRN cannot be used in a regular Cygwin Windows or POSIX path, even with an extension (prn.txt)
...and such restrictions appear to apply to your setup also...i'll try it later on a dual boot at home...
 
Old 11-09-2005, 05:04 PM   #9
suselapper
LQ Newbie
 
Registered: Nov 2004
Posts: 22

Original Poster
Rep: Reputation: 15
amazing

ah... that seems to be it! I was not really sure this would be resolved...

I tried it also with some of the other 'names' that you listed (from the cygwin help file) and they seem to display the same behavior!

I suppose it is good to not be able to generate a file that could subsequently crash windows when dual booting into that OS

Thanks!
 
Old 11-09-2005, 05:10 PM   #10
Back_to_Linux
Member
 
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
i found this :
INTRODUCTION

Because AUX, CON, NUL, and PRN are reserved names in Microsoft Windows, Microsoft does not recommend that you use these names as site codes when you install Microsoft Systems Management Server.
at http://support.microsoft.com/default...b;en-us;279868
 
Old 11-11-2005, 12:47 PM   #11
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
I should have seen this before

looking at a 2.4.31 source tree:

in /usr/src/linux/fs/vfat/namei.c

there appears to be code that restricts naming, e.g.,

/* MS-DOS "device special files" */

static const char *reserved3_names[] = {
"con ", "prn ", "nul ", "aux ", NULL
};

static const char *reserved4_names[] = {
"com1 ", "com2 ", "com3 ", "com4 ", "com5 ",
"com6 ", "com7 ", "com8 ", "com9 ",
"lpt1 ", "lpt2 ", "lpt3 ", "lpt4 ", "lpt5 ",
"lpt6 ", "lpt7 ", "lpt8 ", "lpt9 ",
NULL };


/* Characters that are undesirable in an MS-DOS file name */
(and so on)

it makes sense that the kernel developers would keep one from destroying / damaging their other file systems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which config files are responsible for mounting and detecting filesystems.. deepclutch Linux - General 13 12-03-2005 04:25 PM
how to undelete files on floppy (fat) otoomet Linux - General 0 11-17-2004 03:14 AM
Filesystems: Ext3 or ReiserFS for music files? sasha Linux - Software 4 08-01-2004 04:18 PM
mounting hd (fat) with existing files on it apax Linux - Newbie 2 11-05-2003 12:06 PM
Can't see files in mounted fat partitions mcfly420 Slackware 4 05-29-2003 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration