Copy between dos and ext2 partitions

Copy between dos and ext2 partitions

Post by Familia Rojas Eno » Mon, 18 Jan 1999 04:00:00



Hi,

I have recently installed Red Hat Linux 5.2 by the
first time, so I am totally new to Linux.

I have my hard drive (of 2 GB of size) sharing Windows
95 and Linux, so I installed my Windows (vfat) partition
as '/dos'. However, when I tried to copy a file (e.g.,
autoexec.bat) from '/dos' to some Linux directory, I found
that the size of the file had been reduced.

This problem ocurres with some but not all files (e.g. the
transfer does not fail with arj.exe, arjsort.exe, and other
'exe' or 'dll' files).

I also changed my Windows partition to msdos type (inside
Linux), but the problem persists. However, it does not occur
with my floppy drive, which is 'vfat' too.

Below is a table showing the size of some files with the problem:

File                        Size in '/dos' (bytes)    Size in '/usr/src'
(bytes)

autoexec.bat                   419                                408
univ.doc                       10.752                                6
project3.doc                23.040                                6
music1.mid                   24.663                              868

Does someone know what the problem is, or how to solve it?

Thanks in advance,

Cristian Rojas

 
 
 

Copy between dos and ext2 partitions

Post by Cristian Rojas Eno » Tue, 19 Jan 1999 04:00:00


Hi,

I have recently installed Red Hat Linux 5.2 by the
first time, so I am totally new to Linux.

I have my hard drive (of 2 GB of size) sharing Windows
95 and Linux, so I installed my Windows (vfat) partition
as '/dos'. However, when I tried to copy a file (e.g.,
autoexec.bat) from '/dos' to some Linux directory, I found
that the size of the file had been reduced.

This problem ocurres with some but not all files (e.g. the
transfer does not fail with arj.exe, arjsort.exe, and other
'exe' or 'dll' files).

I also changed my Windows partition to msdos type (inside
Linux), but the problem persists. However, it does not occur
with my floppy drive, which is 'vfat' too.

Below is a table showing the size of some files with the problem:

File                        Size in '/dos' (bytes)    Size in '/usr/src'
(bytes)

autoexec.bat                   419                                408
univ.doc                       10.752                                6
project3.doc                23.040                                6
music1.mid                   24.663                              868

Does someone know what the problem is, or how to solve it?

Thanks in advance,

Cristian Rojas

 
 
 

Copy between dos and ext2 partitions

Post by Neil Ricke » Tue, 19 Jan 1999 04:00:00



Quote:>I have my hard drive (of 2 GB of size) sharing Windows
>95 and Linux, so I installed my Windows (vfat) partition
>as '/dos'. However, when I tried to copy a file (e.g.,
>autoexec.bat) from '/dos' to some Linux directory, I found
>that the size of the file had been reduced.

Do you have 'conv=auto' or 'conv=text' in the '/etc/fstab' entry for
the file system?  This would cause the line termination character to
be changed when you copy to or from an msdos file system.  Since
MSDOS uses a 2-char line termination, and unix uses a 1-char line
termination, this has the effect of changing the size of files.