LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-18-2003, 08:43 PM   #1
endezeichen
Member
 
Registered: Nov 2003
Posts: 48

Rep: Reputation: 15
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")
 
Old 11-18-2003, 09:24 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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
 
Old 11-18-2003, 09:32 PM   #3
reiss
Member
 
Registered: Nov 2003
Location: Sydney
Distribution: Debian
Posts: 30

Rep: Reputation: 15
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
 
Old 11-19-2003, 01:30 AM   #4
bencl5
Member
 
Registered: Nov 2003
Distribution: I use gentoo, redhat, and lorma for kicks.
Posts: 44

Rep: Reputation: 15
do you have to chmod a+rw /mnt/shared to mount vfat? or is that strictly for ntfs.
 
Old 11-19-2003, 02:39 AM   #5
reiss
Member
 
Registered: Nov 2003
Location: Sydney
Distribution: Debian
Posts: 30

Rep: Reputation: 15
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
 
  


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
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
moving files between windows partitions, in knoppix Antilocust Linux - Software 6 07-24-2005 05:48 AM
Moving files to Linux need help with problem MAVreix Linux - Software 1 04-20-2005 01:53 AM
moving files from windows to linux...urgent samyakm Linux - Newbie 5 01-02-2005 02:56 AM
Moving files to Windows partition... frkstein Linux - General 6 08-11-2002 01:01 AM


All times are GMT -5. The time now is 04:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration