Alain Knaff | 29 Jun 01:04
Picon

GNU mtools 4.0.17 released

Hello,

I am pleased to announce the release of GNU mtools version 4.0.17.

GNU mtools is available for download from
ftp://ftp.gnu.org/gnu/mtools and the mirror sites worldwide (see
http://www.gnu.org/order/ftp.html for the list of those).

The signed sources can be obtained from ftp.gnu.org and its world-wide
mirrors:

  ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.17.tar.gz    (510K)
  ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.17.tar.bz2   (403K)
  ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.17.tar.lz    (341K)

The same directory also contains pre-compiled Debian and RPM packages.

Mtools is a collection of utilities to access MS-DOS disks from GNU
and Unix without mounting them, to change FAT-specific file attributes
(hidden, archive, system), and to format FAT media.

Mtools supports W32 style long file names, FAT32, OS/2 Xdf disks and
2m disks (store up to 1992k on a high density 3 1/2 disk). Mtools also
includes mpartition, a simple partitioning programing. It is also a
convenient tool to work with disk image files (thanks to the -i flag).

Since version 4.0.0 mtools now has full support for Unicode filenames.

For more information on mtools, including links to file downloads,
please see the mtools web page: http://www.gnu.org/software/mtools
(Continue reading)

Jörg Jenderek | 16 May 00:14
Picon

mtools version 4.0.16 minfo strange disk type=" S" for some old floppies

Normally minfo produces infomation like disk type="FAT32   " for new big 
haddiscs, disk type="FAT16   " for small harddiscs and disk 
type="FAT12   " for floppy discs. But i found 4 floppy images 
(CRISBOOT.ima, DRD341BD.IMA, Dos3.3.img, dos-211.dcf) with strange values.

For Digital Research DOS ( version 3.41) bootdisc minfo produces the 
following output:

minfo  b:
device information:
===================
filename="/boot/bootsect.bin"
sectors per track: 18
heads: 2
cylinders: 80

mformat command line: mformat -t 80 -h 2 -s 18 -H 603979776 b:

bootsector information
======================
banner:"DIGITAL "
sector size: 512 bytes
cluster size: 1 sectors
reserved (boot) sectors: 1
fats: 2
max available root directory slots: 224
small size: 2880 sectors
media descriptor byte: 0xf0
sectors per fat: 9
sectors per track: 18
(Continue reading)

Jörg Jenderek | 7 May 14:02
Picon

mtools version 4.0.16 minor errors for small sector size (32B)

There seems not to exist a mtools command equivalent for the DOS program
SYS.COM. 

I used the program TDSK ( see http://www.freedos.org/software/?prog=tdsk )
to create a small RAM disk driver by a command like:
	TDSK.EXE             160    32    8     1       /F:1  
 It produce an output like:
            .--------------------------+-------------------------¬
            | TURBODSK 2.3 - Drive G:  | Sector size:         32 |
            }--------------------------{ Root entries:         8 |
            | Size:       160 Kbytes   | Sectors/cluster:      1 |
            | Memory:   Extended (XMS) |  4810 clusters (FAT16)  |
            `--------------------------`-------------------------'
Then i copy 4 files to ramdisc and create an image (TDSK-5120x32b.img ) of 
this disc.

Then with mtools ( version 4.0.16) i got for mshowfat 'J:*'
refreshing directory
refreshing directory
refreshing directory
J:/readme.txt <2-186>
refreshing directory
refreshing directory
J:/descript.ion <187-199>
J:/save_x_.bin <200-219>
refreshing directory
refreshing directory
J:/save_x2.bin <220-235>

But the output of minfo contains some garbage
(Continue reading)

Alain Knaff | 16 Apr 20:08
Picon

GNU mtools 4.0.16 released

Hello,

I am pleased to announce the release of GNU mtools version 4.0.16.

GNU mtools is available for download from
ftp://ftp.gnu.org/gnu/mtools and the mirror sites worldwide (see
http://www.gnu.org/order/ftp.html for the list of those).

The signed sources can be obtained from ftp.gnu.org and its world-wide
mirrors:

  ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.16.tar.gz    (506K)
  ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.16.tar.bz2   (399K)
  ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.16.tar.lz    (339K)

The same directory also contains pre-compiled Debian and RPM packages.

Mtools is a collection of utilities to access MS-DOS disks from GNU
and Unix without mounting them, to change FAT-specific file attributes
(hidden, archive, system), and to format FAT media.

Mtools supports W32 style long file names, FAT32, OS/2 Xdf disks and
2m disks (store up to 1992k on a high density 3 1/2 disk). Mtools also
includes mpartition, a simple partitioning programing. It is also a
convenient tool to work with disk image files (thanks to the -i flag).

Since version 4.0.0 mtools now has full support for Unicode filenames.

For more information on mtools, including links to file downloads,
please see the mtools web page: http://www.gnu.org/software/mtools
(Continue reading)

Jörg Jenderek | 2 Apr 16:13
Picon

mtools command equivalent for the DOS program SYS.COM?

There seems not to exist a mtools command equivalent for the DOS program
SYS.COM. 
Of course this work can be done by the dd program, but it is non 
comfortable and susceptible to faults. 

So it would be nice if the maintainers of the mtools could implement such a
command like "msys [SOURCE] DRIVE:".

This seems not so time consuming because the code to transfer a bootloader 
code (maybe given by -b switch) to the boot sector of a drive could be be 
taken from the "mformat" source.
It would be nice if such an mtools program and the mformat command have an 
an option to switch between different DOS bootloader styles for "PC-DOS",
"MS-DOS", "MS Win9x DOS", "mkdosfs" like the newer FreeDOS SYS version 
offers.
To emulate the DOS SYS program it also should copy a DOS Kernel (like 
IO.SYS,IBMBIO.COM, KERNEL.SYS depending on DOS types) and a command line 
interpreter (like COMMAND.COM, 4DOS.COM). This code can be based on the 
source from the mcopy and mattrib commands.
--

-- 
Jörg Jenderek	email:	joerg.jen.der.ek (at) gmx.net
Germany		PGP:	B9FE A356 283E 0048 6389  18BF AFF2 B1C9 421A D4D6

icoslau | 8 Mar 17:58
Picon
Favicon

mcopy file over 2.0GB


Hello,

i try use mcopy do transfer from a external usb hd with msdos filesystem one file but these file has 3.2GB.

mcopy pass many minutes copy the file but after 2.0GB lose the file with this message:

"Internal error, offset too big"

mtools, in case, mcopy has a file size limitation?

is another way for mtools copy these file to my linux system?

Tks a lot for tips.

IcosLau
Simon Large | 24 Feb 17:41
Picon

Segfault in mdir

Hi folks,

Just giving mlabel on ARM9 big disks a final test on 4.0.6 - it works by
the way. Out of curiosity I tried mdir, and that works OK when I give it
a disk, but the default seems broken.

# ./mdir s:
 Volume in drive S has no label
 Volume Serial Number is 564A-70C2
Directory for S:/

No files
                      8 193 540 096 bytes free
# ./mdir
Segmentation fault
#

When I try the same thing with 3.9.11 I get
# ./mdir
Can't open /dev/fd0: No such file or directory
Cannot initialize 'A:'
#

Simon
Simon Large | 23 Feb 10:17
Picon

Re: Reading label from a large capacity memory card

Alain Knaff wrote:
> I think I've found it. There was another #ifdef HAVE_LLSEEK in
> llong.h, a couple of lines later. 
> 
> I've now added a check for LSEEK64 to that one too in 4.0.6

Well spotted, I missed that one completely.

4.0.6 is not on the download page yet, but I made that change in 4.0.5
and can confirm that it now works. "Volume has no label".

Thanks for your patience,

Simon
Alain Knaff | 17 Feb 12:03
Picon

Re: Reading label from a large capacity memory card

Simon Large wrote:
> Alain Knaff wrote:
>> Simon Large wrote:
>>>> dd if=/dev/sda1 bs=512 count=1 of=bootsector.bin
>>>>
>>>> Replace /dev/sda1 as appropriate. (/dev/sdb3 for third partition on
>>>> second SCSI-like device, etc.)
>>> Here are the boot sectors for 2 cards that I tried.
>>> The 2GB card works OK and reports "Volume label is SIMON TEST".
>>> The 8GB card reports "Big disks not supported on this architecture".
>>>
>>> Using 3.9.11
>>>
>>> Simon
>> I tried it here (mtools-3.9.11-5.fc10.i386), and got no maxsize
>> problem (I did get a different error about the FAT, but that's
>> because I've only the boot sector).  
>>
>> Just to make sure, if you don't mind, could you send me the 15000
>> first sectors (count=15000) of that disk, that should be enough for a
>> successful mlabel on my side.  
> 
> Attached.

Indeed. I can mdir and mlabel that just fine (shows "no label").

> Sounds like it maybe a config problem on my side. I'm compiling for
> arm-linux here to run on an embedded Atmel ARM9 device.
> 
> Simon
(Continue reading)

bug and fix: can't find a file/dir in a subdir

Hi y'all!  Long time mtools user, first time bugfixer.  ;-)

I've run across a bug that was introduced sometime between
3.9.11-2.fc8 (which I yummed onto my FC box), and 4.0.1, for which I
downloaded the code so I could port it to another platform.   (STOP on
an XTS, if anybody knows/cares what that is.  Google it if you're
curious, email me if you then want more info.)

The symptoms are twofold:

1)  mtools will not find a file or directory in a subdirectory.  For
instance, say you've got a dir hierarchy including
a:/test/test2/test3/test4/test5, with a file called foo.# at each step
(i.e., a:/test/foo, a:/test/test2/foo.2, etc.).  mdir a:/test will
succeed, but mdir a:/test/foo will fail.  Likewise, mcd a:/test
followed by mdir foo will succeed, but then mdir a:test2/foo.2 will
fail, as will mcd a:test2/test3.  Regardless of what prior mcd's
you've done, mcd a:/test/test2 will fail.

2)  When you've already mcd'ed to a directory at least two levels deep
(which you'd have to do one at a time), the next time you try to
access the device, mtools "forgets" where you were, i.e., deletes
~/.mcwd, and pretends you were at the device root.

The cause is at line 591 of vfat.c.  Patch, as output by svn diff:

Index: vfat.c
===================================================================
--- vfat.c	(revision 3741)
+++ vfat.c	(working copy)
(Continue reading)

Elbert Pol | 28 Jan 22:57
Picon

Os2

Hoi,
Tried to port mtools v4 to os/2
But it fails @ the make.
I use gcc 4.3.3
Here is the make output:
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/mtools402/etc\" -DCPU_i386 
-DVENDOR_pc -DOS_os2_emx -D__EMX__ -DEMX -DOS2  -D__ST_MT_ERRNO__ -O3 
-march=pentium -mtune=pentium4 -Wall -fno-strict-aliasing -I.  -I.  -c 
buffer.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/mtools402/etc\" -DCPU_i386 
-DVENDOR_pc -DOS_os2_emx -D__EMX__ -DEMX -DOS2  -D__ST_MT_ERRNO__ -O3 
-march=pentium -mtune=pentium4 -Wall -fno-strict-aliasing -I.  -I.  -c 
charsetConv.c
charsetConv.c: In function 'dos_to_wchar':
charsetConv.c:69: warning: passing argument 2 of 'iconv' from 
incompatible pointer type
charsetConv.c: In function 'safe_iconv':
charsetConv.c:91: warning: passing argument 2 of 'iconv' from 
incompatible pointer type
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/mtools402/etc\" -DCPU_i386 
-DVENDOR_pc -DOS_os2_emx -D__EMX__ -DEMX -DOS2  -D__ST_MT_ERRNO__ -O3 
-march=pentium -mtune=pentium4 -Wall -fno-strict-aliasing -I.  -I.  -c 
codepages.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/mtools402/etc\" -DCPU_i386 
-DVENDOR_pc -DOS_os2_emx -D__EMX__ -DEMX -DOS2  -D__ST_MT_ERRNO__ -O3 
-march=pentium -mtune=pentium4 -Wall -fno-strict-aliasing -I.  -I.  -c 
config.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/mtools402/etc\" -DCPU_i386 
-DVENDOR_pc -DOS_os2_emx -D__EMX__ -DEMX -DOS2  -D__ST_MT_ERRNO__ -O3 
-march=pentium -mtune=pentium4 -Wall -fno-strict-aliasing -I.  -I.  -c 
(Continue reading)


Gmane