LinuxQuestions.org
Review your favorite Linux distribution.
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 08-17-2003, 12:13 PM   #1
neon
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56

Rep: Reputation: 15
Can Linux OS read Windows files?


How do i configure my linux OS to be able to read files from my Windows partition. Both Linux and Windows are on one Hard disk but seperate partitions.

and how do i configure my linux OS to be able to read files from a Windows OS on another computer on my network?
 
Old 08-17-2003, 12:21 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
First, you need to create a directory. For example: /mnt/windows

Then, you can mount your windows partition by typing:
Note: Replace the X with the partition number.
Code:
mount -t vfat /dev/hdaX /mnt/windows
To un-mount the partition, type:
Code:
umount /dev/hdaX
You can also mount the partition automatically by adding it to your /etc/fstab
The line should look something like this:
Code:
/dev/hdaX               /mnt/windows          vfat    defaults        0 0
 
Old 08-17-2003, 12:24 PM   #3
neon
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56

Original Poster
Rep: Reputation: 15
ahah! thanks!
how do i find the partition number?
 
Old 08-17-2003, 12:25 PM   #4
peace
Member
 
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
Hmm.. I was too late with my post. But anyways...

run 'fdisk' and then use the command (in fdisk) 'p' to view your partition table.

Last edited by peace; 08-17-2003 at 12:26 PM.
 
Old 08-17-2003, 12:25 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
And if its NTFS

To Temporarily mount an NTFS filesystem from the command line – su to Root user – then type :

mount –t ntfs –o ro /dev/hda1 /mnt/windows

(remember to substitute in your own partition and mount point in place of my example ones)

Also

To mount a NTFS filesystem automatically on Boot-up, put an entry at the bottom of your /etc/fstab file on a new line - (just substitute in your Partition and Mount point in place of my example ones)

/dev/hda1 /mnt/windows ntfs auto,ro,umask=0222 0 0

( Red Hat currently doesn’t include a NTFS driver because of uncertainties surrounding the legal status of the driver)

So - to READ a NTFS partition from Red Hat, you can either:
  • Download and install an RPM – or
  • Compile your kernel

Your best just getting the relevant RPM - Check out this site for an RPM

http://linux-ntfs.sourceforge.net/info/redhat.html

Last edited by Skyline; 08-17-2003 at 12:26 PM.
 
Old 08-17-2003, 12:28 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To list all partitions, type:
Code:
fdisk -l
 
Old 08-17-2003, 12:30 PM   #7
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To answer the second part of your question.

To mount a network share on a windows system.
You can use the smbmount command.
Code:
smbmount -t smbfs -o username=myUserName,password=myPassword //winBox/test /mnt/test
To un-mount, type:
Code:
smbumount /mnt/test

Last edited by Mathieu; 08-17-2003 at 12:31 PM.
 
Old 08-17-2003, 12:30 PM   #8
neon
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56

Original Poster
Rep: Reputation: 15
hey! i think that was probably the fastest reply i've ever got from any website!!
thanks!
 
Old 08-17-2003, 12:31 PM   #9
neon
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56

Original Poster
Rep: Reputation: 15
how about reading/writing files on a Windows computer on my network?
 
Old 08-17-2003, 12:31 PM   #10
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
or

fdisk -l /dev/hdx

were x is

a - drive on primary master
b - primary slave
c - secondary master
d - secondary slave
 
Old 08-17-2003, 12:36 PM   #11
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Quote:
how about reading/writing files on a Windows computer on my network?
I posted the answer at the same time that you were writing your question.
Look on top.


We should really think about taking a number and standing in line.
 
Old 08-17-2003, 12:39 PM   #12
neon
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56

Original Poster
Rep: Reputation: 15
hehe.. thanks.. this was really helpful.. i'll go and try it out..
hey, i have another question on another thread in the newbie section.. could u take a look at that too? thanksssss!!!
 
Old 08-18-2003, 04:42 AM   #13
neon
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56

Original Poster
Rep: Reputation: 15
one problem, i have an NTFS hard disk.. and i am running RedHat 7.2 which does not support the NTFS rpm.. as indicated in :
http://linux-ntfs.sourceforge.net/info/redhat.html

what should i do now? should i download the Red Hat 7.3 kernal? and then install the rpm?

is there another way? other than downloading another 33MB..
got a real slow connection..
 
Old 08-18-2003, 10:56 AM   #14
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
The best way would be to download the latest Kernel source code and compile a new kernel.

Linux Kernel HowTO
http://www.tldp.org/HOWTO/Kernel-HOWTO/index.html
 
Old 08-25-2003, 04:57 AM   #15
neon
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56

Original Poster
Rep: Reputation: 15
I used the line

Code:
smbmount -t smbfs -o username=myUserName,password=myPassword //winBox/test /mnt/test
to mount the a hard disk on another machine. but it doesn't work?? do i need to specify the IP or something?
 
  


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
Saved files on floppy aren't read in Windows SirLancelotX Linux - Newbie 6 12-30-2005 02:48 PM
can see but cant read files on windows share, help a newb out! eonicrush Linux - Networking 2 04-11-2005 04:03 PM
read linux files from windows eltn Linux - General 1 10-27-2004 10:29 AM
Mounting a usb thumbdrive st windows files can be read qkslvrwolf Linux - Newbie 2 04-12-2004 10:52 AM
Unable to read certain files from CD, but works on Windows DoubleLetter Linux - General 10 04-22-2003 02:56 AM


All times are GMT -5. The time now is 05:30 PM.

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