LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2003, 12:25 PM   #1
andym
Member
 
Registered: Apr 2003
Location: UK
Posts: 52

Rep: Reputation: 15
windows files to linux????


hi,

is there a way to transfer files in windows to linux via one OS operating inside the other on my dual boot machine, as i have windows files that need reading inside linux, but i dont want to burn cd's every time!

thanks

andy
 
Old 05-19-2003, 12:39 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Just mount a vfat partition that can be used for data in both systems.

It is best not to mount your windows drive incase you corrupt any system files. Also if it is NTFS - the linux NTFS support is still not perfect and should really ony be used for reading from an NTFS drive.
 
Old 05-19-2003, 12:41 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Yes, you can. From Linux, you can usually mount the other partition (if you're using RedHat and NTFS you need to download extra modules) .

Let's say you've got Windows (FAT32) partition - /dev/hda1. To mount it, create /mnt/windows (command: 'mkdir /mnt/windows') directory (or similar) and run
mount -t vfat /dev/hda1 /mnt/windows
Now you can access your Windows files in /mnt/windows.
 
Old 05-19-2003, 02:47 PM   #4
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
if you want to automount it provided that /mnt/windows exists, edit your fstab and put this line:

/dev/hdx /mnt/windows umask=222 0 0

this gives you read only access to the drive...

if you want full write acces change to: umask=000

if you want root only to have full write acces change to: umask=022


Last edited by jt1020; 05-20-2003 at 12:16 AM.
 
Old 05-19-2003, 04:46 PM   #5
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Rep: Reputation: 32
The best way I know is to go /mnt/windows/...wherever. If not mounted, you probably can mount it yourself. It should be one of your hard disk entries under /dev. (maybe hda3 or something). It comes mounted on every Linux installation I've seen. You don't even have to copy it to your linux partition to use it!
 
Old 05-25-2003, 03:39 AM   #6
andym
Member
 
Registered: Apr 2003
Location: UK
Posts: 52

Original Poster
Rep: Reputation: 15
so could i mount a partition of windows and copy files from one to the other and vice versa without corrupting anything on either partition?
 
Old 05-25-2003, 04:36 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, just search this site for a huge amount of information on this.
 
Old 05-25-2003, 09:26 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by andym
so could i mount a partition of windows and copy files from one to the other and vice versa without corrupting anything on either partition?
I would only do this with a fat windows fs. If you use NTFS then I would mount it as read only as linux ntfs support is still not quite stable.
 
Old 05-26-2003, 06:52 PM   #9
andym
Member
 
Registered: Apr 2003
Location: UK
Posts: 52

Original Poster
Rep: Reputation: 15
but how do u know which hda is windows on?
 
Old 05-26-2003, 09:29 PM   #10
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Rep: Reputation: 30
If you installed Windows first most likely it is on hda1, which would be your 1st partiton. When you look under Windows explorer or some similar Windows based tool do you see any other letters besides C. If not then Windows is probably only using one partiton.

For another clue of what is using which partiton try typing df or possibly typing mount without any extra parameters. That will show what is currently mounted as what under Linux. I have never had anything bad happen when I used the mount command and guessed wrong about what is where, it would just fail to mount the partition. I tend to think there probably is not much danger in making wrong guess.

Using fdisk would probably also give you that information about all the partitons. I do not use fdisk very often and would need to look up how to use it, so I will skip that option. By the way what version of Windows do you have. If it is Win 95, 98 or ME Windows would be on a FAT 32 or possibly a FAT 16 partiton. If you have Win NT 4.0, WIN 2000 or Win XP Windows could be on a NTFS or FAT partiton.
 
Old 05-27-2003, 12:28 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
"fdisk -l" should give you the drive layouts. Look for one that is using ntfs or fat.
 
Old 05-27-2003, 01:47 PM   #12
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
and

df -h

would do the same job
 
Old 06-05-2003, 10:35 PM   #13
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Rep: Reputation: 32
Quote:
Originally posted by david_ross
I would only do this with a fat windows fs. If you use NTFS then I would mount it as read only as linux ntfs support is still not quite stable.
I haven't had trouble out of NTFS under Mandrake 9, though I damaged it putting Mandrake in. I could still get to it and work with it just fine.
 
Old 06-05-2003, 11:19 PM   #14
Korff
Member
 
Registered: May 2003
Location: Central Florida
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
Since you can dual boot to Windows, do it.

Ok, in Windows now? Open a virtual dos prompt and type fdisk.
It will ask you if you want to enable large disk support. Answer yes.

See any letters other than C? Tell us.
Under file system, does it say fat32 or ntfs?
Note: Windows's fdisk does not recognize Linux partitions. It will see them as empty unpartitioned space. Don't mess with any partitions. Once I deleted a windows partition I didn't need anymore and then all of a sudden Linux didn't boot (no kernel found) so be careful. All you want to do now is chhoice 4 - display partition information.

Which windows OS are you running?

=============================

Here's the "works on most computers that have Windows loaded on the first partition of the primary master IDE drive" method.

Bot into linux.
Log on as root.
go to /mnt and create dir 'win' or 'windows' or whatever you wanna call it.
Open a terminal and type the following:
mount -t vfat /dev/hda1 /mnt/win
navigate to /mnt/win. Do you see all the stuff you have on c: in Windows?
 
Old 06-06-2003, 03:24 AM   #15
mjolnir
Member
 
Registered: Apr 2003
Posts: 815

Rep: Reputation: 99
Lectraplayer, you can write to ntfs with no trouble ?
 
  


Reply



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
Want to look at windows files from linux Delarama Mandriva 2 10-04-2004 03:16 AM
windows files in linux pguru Linux - Newbie 7 06-23-2004 09:55 AM
How Do I Get To My Windows Files From Linux? AFI_Flame Slackware 12 06-01-2004 04:16 PM
Backed up Windows Files on Linux; Can't Recover them to Windows MadFunk Linux - Software 6 08-16-2003 08:16 PM
windows files on linux mangueJOE Linux - Networking 3 07-08-2002 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration