LinuxQuestions.org
Visit Jeremy's Blog.
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 10-22-2003, 10:37 PM   #1
fatman
Member
 
Registered: Mar 2003
Location: PA
Distribution: Ubuntu (x2)
Posts: 158

Rep: Reputation: 30
Reading windows files


I am running a dual boot WinXP/red hat 9 laptop

Thanks to wonderful, reliable XP, I am worried about the stability of my windows parititon tommorrow in class (i need to have acess to the notes i took tonight). My red hat partition has been flawless.

How do i bring up files on the windows partition in red hat? (I dont need to install wine for that, do I?)

I need to read microsft words files in openoffice.
 
Old 10-22-2003, 10:45 PM   #2
speter
Member
 
Registered: Sep 2003
Location: Edison, NJ
Distribution: Fedora, Mac OS X
Posts: 313

Rep: Reputation: 30
No, you don't need WINE to access the files. Reading MS Wierd files with OOo should work just fine.

If you had Windows installed when you put RH 9 on, it should have recognized that partition. (I'm not at my dual-boot right now, so I can't actually check.) I think it appears as /mnt/win_c. Somebody else can pipe in if I'm wrong.

Steve
 
Old 10-22-2003, 10:50 PM   #3
eltongeoff
Member
 
Registered: Mar 2003
Posts: 76

Rep: Reputation: 15
im assuming it's the windows drive is ntfs. wut u'll need to do is create a mount point (a dir) via mkdir /mnt/winnt for example.

then mount via the mount command

mount -t ntfs /mnt/hdxx /mnt/winnt

where hdx is wutever your windows drive is (hda1, hda3, hdb1, or wutever......)

to make this mount automatically u'll need to add an entry to your /etc/fstab file
 
Old 10-22-2003, 11:00 PM   #4
fatman
Member
 
Registered: Mar 2003
Location: PA
Distribution: Ubuntu (x2)
Posts: 158

Original Poster
Rep: Reputation: 30
Thanks, I REALLY appreciate the quick reply.
 
Old 10-22-2003, 11:02 PM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
you will need this. get the one for your distro and kernel version:

http://linux-ntfs.sourceforge.net/info/redhat.html#down
 
Old 10-22-2003, 11:13 PM   #6
Seamaiden
LQ Newbie
 
Registered: Oct 2003
Location: North Orange Co., CA
Distribution: RH9
Posts: 24

Rep: Reputation: 15
This is interesting, I have my drive partitioned into three--RH9, Win2K, and a Shared partition readable in both OSs. I do have wine installed, and in order to run certain Windows proggies I'm using a crossover program. Are you folks saying that I can access everything that's in my Win2K partition via RH9 simply by mounting that drive?
 
Old 10-22-2003, 11:25 PM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
accessible as in readable. Of course, you can't run windows programs just by mounting the partition.
 
Old 10-22-2003, 11:28 PM   #8
Seamaiden
LQ Newbie
 
Registered: Oct 2003
Location: North Orange Co., CA
Distribution: RH9
Posts: 24

Rep: Reputation: 15
Thusly, the beauty of wine?

You may smack me with a small stick if this question is too ignant.
 
Old 10-22-2003, 11:42 PM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
yup, the beauty of wine is that you can run windows programs. But if all that you want is to be able to read your MSOffice files or play your media files, you don't need wine (most of the time; openoffice does a very good job but some files do cause problems - less so in OO1.1 but still...).
 
Old 10-23-2003, 12:47 AM   #10
Seamaiden
LQ Newbie
 
Registered: Oct 2003
Location: North Orange Co., CA
Distribution: RH9
Posts: 24

Rep: Reputation: 15
As I'm discovering..
 
Old 10-25-2003, 01:57 PM   #11
fatman
Member
 
Registered: Mar 2003
Location: PA
Distribution: Ubuntu (x2)
Posts: 158

Original Poster
Rep: Reputation: 30
Gettin' there....

Everything works fine as root.
Now I have no access to the partition as a non-root user.

i installmed the rpms, it went ok.
i used the command "mount -t ntfs /dev/hda1 /mnt/win" to mount, which left the drive readable, but only by root

i tried a chmod 755 and it wouldnt let me change permissions because it is a read only drive, then i opened the files property gui and tried to change permissions using the check boxes and got the same message.

What did I doo wrong?
 
Old 10-25-2003, 07:05 PM   #12
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
the best thing to do is to have an entry in your /etc/fstab. This is the file that specifies which file systems are to be mounted where with what options. For your ntfs partition, it should be

/dev/hda1 /mnt/win ntfs auto,ro,umask=0 0 0

This should work. 'auto' specifies that the partitions is to be mounted automatically at boot or when you do mount -a. 'ro' stands for read-only and 'umask=0' effects that all users have access to it. Take a look at
man mount
man fstab
for more details. There are many more options that you could use and might find useful.
 
  


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
noob question about reading files from windows bonniehandi Linux - Newbie 1 11-18-2005 11:11 PM
Reading files in C++, using *. poeta_boy Programming 4 07-08-2004 01:01 AM
Reading Files clowns119 Programming 12 09-23-2003 06:06 PM
reading windows files on linux bugsbunny Linux - Newbie 1 01-29-2003 12:28 PM
Reading Windows files in Linux NiagraBob Linux - Newbie 4 11-18-2002 08:37 PM


All times are GMT -5. The time now is 09:26 AM.

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