LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   moving files between windows and linux (https://www.linuxquestions.org/questions/linux-software-2/moving-files-between-windows-and-linux-117616/)

endezeichen 11-18-2003 08:43 PM

moving files between windows and linux
 
When I installed Linux I installed from my hard drive. It told me to make a FAT partition so Linux would be able to read the files. Does this mean I can place files from windows on that partition to xfer them to linux? How? (partition is letter "z")

Mathieu 11-18-2003 09:24 PM

When you are in Windows, copy your files on the FAT partition (in this case z: )
When you are in Linux, you will need to mount that partition.
If it is not already mounted when the system boots, you will need to create it.
Open the /etc/fstab file and you may see that partition is already configured.

If not, in order to set up auto-mounting, you will need to login as root. At the command line, type: su -

You need to create a directory. Type: mkdir /mnt/shared

To see your partition table in Linux, type: fdisk -l

Then, you can mount your windows (shared) partition by typing:
Note: Replace the X with the partition number obtain from the partition table.
Code:

mount -t vfat /dev/hdaX /mnt/shared
To un-mount the partition, type:
Code:

umount /mnt/shared
You can also mount the partition automatically by adding it to the /etc/fstab file.
The line should look something like this:
Code:

/dev/hdaX              /mnt/shared          vfat    defaults,users,umask=0111        0 0

reiss 11-18-2003 09:32 PM

Yes it does. Basically the partition letter means nothing under linux, all partitions are 'mounted' to a directory of your filesystem. To do this you would type (as root) something like:

mount /dev/hda1 /mnt/windows

the /dev/hda1 part is the partition you want to mount, and the /mnt/windows is just some empty directory you want to mount it to, this can be anything you want, just make the directory somewhere.

as for the first part, your hdd are refered to as hda, hdb, hdc etc and the partitions are numbered. so in this example hda1 is the first partition of the first disk drive.

type 'man mount' for more details.

if you want it to be mounted at boot time you need to add a line to /etc/fstab

'man fstab' to see the format for that

bencl5 11-19-2003 01:30 AM

do you have to chmod a+rw /mnt/shared to mount vfat? or is that strictly for ntfs. ;)

reiss 11-19-2003 02:39 AM

Quote:

Originally posted by bencl5
do you have to chmod a+rw /mnt/shared to mount vfat? or is that strictly for ntfs. ;)
No, if you want users to be able to read & write, you mount with: user,rw,uid=1000


All times are GMT -5. The time now is 08:23 AM.