Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dosfs cp weirdness

2 views
Skip to first unread message

fred

unread,
Dec 20, 2009, 10:53:04 PM12/20/09
to
Under unixware 714 MP4 I have a usb mounted dosfs drive (/mnt/lacie/).
When I cp or mv files with more than one extension it appears to copy 2
copies of the file, one with the original name of the file and one with
a dos 8.3 name invented by the system. I thought at first it was just
2 names pointing to the same data but they can independently deleted.
It gets weirder - notice the timestamp on the 8.3 file after the second
copy. The file name changes but the timestamp doesn't!

# ls /mnt/lacie/LMT
# cp 00000013.tar.Z* /mnt/lacie/LMT
# ls /mnt/lacie/LMT
00000013.tar.Zaa 000000~1.ZAA
# touch x.y.z.p
# mv -f x.y.z.p /mnt/lacie/LMT
# ls /mnt/lacie/LMT
00000013.tar.Zaa 000000~1.ZAA XYZ~1.P x.y.z.p
# rm /mnt/lacie/LMT/000000~1.ZAA
# ls /mnt/lacie/LMT
00000013.tar.Zaa XYZ~1.P x.y.z.p
# ls -l /mnt/lacie/LMT
total 566
-rwxrwxrwx 1 root root 9272296 Dec 21 11:23
00000013.tar.Zaa
-rwxrwxrwx 1 root root 0 Dec 21 11:25 XYZ~1.P
-rwxrwxrwx 1 root root 0 Dec 21 11:24 x.y.z.p
# touch x.y.z.p
# mv -f x.y.z.p /mnt/lacie/LMT
# ls -l /mnt/lacie/LMT
total 566
-rwxrwxrwx 1 root root 9272296 Dec 21 11:23
00000013.tar.Zaa
-rwxrwxrwx 1 root root 0 Dec 21 11:25 XYZ~2.P
-rwxrwxrwx 1 root root 0 Dec 21 14:12 x.y.z.p
#


Anybody know a solution to this or is it a bug? Otherwise the script
I'm working on will need a mecahnism for deleting such entries.
--

David Fosdike
IT Consultant
Adelaide, Australia.

david.fosdike at the google mail service (you know the one!)

Nico Kadel-Garcia

unread,
Dec 22, 2009, 12:28:21 AM12/22/09
to
Which UNIXware are you running? And what are the mount options in use?
Is the USB drive NTFS, or FAT32? (I've not tried UNIXware myself, I've
worked in OpenServer world.)

And why are you running UNIXware? Can you put it on a Linux system and
make it shareable via Samba? Seriously, SCO is bankrupt and in
receivership, and seems to lack funds for upgrading their existing
products. And their previous president, before he was fired by the
bankruptcy receiver, had planned to drop the server market and go to
mobile devices. They probably should not be considered for server
applications if you can avoid it.

fred

unread,
Dec 22, 2009, 5:02:12 PM12/22/09
to
Nico Kadel-Garcia wrote:

Which UNIXware are you running? Like I said 7.1.4 MP4 (the latest)

mount options in use? mount -F dosfs /dev/dsk/c3b0t0d0p0 /mnt/lacie
dosfs is the only windows mountable disk FS see:
http://uw714doc.sco.com/en/FS_manager/fsC.fstypes.html
Unixware cannot detect NTFS.

And why are you running UNIXware? I'm not - my client is. It's a
legacy system I am setting up DR for. Personally I would not touch
unixware for technical reason. I have just spent 50 hours writing
scripts to get round the inadequacy of the system which I could have
done with a single command in Linux!

Can you put it on a Linux system and make it shareable via Samba? If
only...

SCO is actually in Chapter 11 Bankruptcy protection and planning to
trade out. Although they continue to make losses their net worth is
growing! My client is well aware of the frailty of the system and is
planning to move once their application is ported to Linux.


--

John Boland

unread,
Dec 23, 2009, 3:44:52 AM12/23/09
to
On 21 Dec, 04:53, "fred" <f...@t.org.za> wrote:
> Under unixware 714 MP4 I have a usb mounted dosfs drive (/mnt/lacie/).
> When I cp or mv files with more than one extension it appears to copy 2
> copies of the file, one with the original name of the file and one with
> a dos 8.3 name invented by the system.  I thought at first it was just
> 2 names pointing to the same data but they can independently deleted.
> It gets weirder - notice the timestamp on the 8.3 file after the second
> copy.  The file name changes but the timestamp doesn't!
[snip]

> Anybody know a solution to this or is it a bug? Otherwise the script
> I'm working on will need a mecahnism for deleting such entries.

Morning David,

I would suggest that you try the mtools package to do your
dos file manipulation on UnixWare 7.1.4. See details below.

Regards,

John

MTools DOS utilities for UnixWare 7
=====================================

REQUIREMENTS: UnixWare 7.1.4 with Maintenance Pack 3 or later

DOWNLOAD: ftp://ftp2.sco.com/pub/skunkware/uw7/Packages/mtools-3.9.11.pkg

INSTALLATION: Download the pkgadd datastream mtools-3.9.11.pkg
As root:
# cd <location of download>
# pkgadd -d `pwd`/mtools-3.9.11.pkg all

USAGE: MTools version 3.9.11 utilities can be found in /usr/bin
The MTools utilities can be used to read, write, format, list,
copy, move, and otherwise access MS-DOS files from your
SCO UnixWare 7 system.

Manual pages for the MTools utilities are included. To view
these
manual pages execute, for example, the command:
# man mtools

Additional information on MTools can be found at
http://mtools.linux.lu/

Nico Kadel-Garcia

unread,
Dec 23, 2009, 12:53:10 PM12/23/09
to
On Dec 23, 3:44 am, John Boland <bonix...@gmail.com> wrote:
> On 21 Dec, 04:53, "fred" <f...@t.org.za> wrote:
>
> > Under unixware 714 MP4 I have a usb mounted dosfs drive (/mnt/lacie/).
> > When I cp or mv files with more than one extension it appears to copy 2
> > copies of the file, one with the original name of the file and one with
> > a dos 8.3 name invented by the system.  I thought at first it was just
> > 2 names pointing to the same data but they can independently deleted.
> > It gets weirder - notice the timestamp on the 8.3 file after the second
> > copy.  The file name changes but the timestamp doesn't!
> [snip]
> > Anybody know a solution to this or is it a bug? Otherwise the script
> > I'm working on will need a mecahnism for deleting such entries.
>
> Morning David,
>
> I would suggest that you try the mtools package to do your
> dos file manipulation on UnixWare 7.1.4. See details below.
>
> Regards,
>
> John

I can vouch for this from various UNIX and Linux environments for many
years. It's much, much faster than attempting to mount and manipulate
DOS filesystems.

fred

unread,
Dec 23, 2009, 2:51:06 PM12/23/09
to
John Boland wrote:

Thanks - I'll have a lookt at that.

--

fred

unread,
Dec 29, 2009, 5:15:49 AM12/29/09
to
fred wrote:

I eventually overcame the problem using GNU tar and multi-file output
with a little bit of scripting which got me away from the need for
long, convoluted file names. GNU save the day!

David

PS I also installed bash at the same time - instant command recall - my
productivity doubled!

--

0 new messages