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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-17-2003, 11:13 AM
|
#1
|
Member
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56
Rep:
|
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?
|
|
|
08-17-2003, 11:21 AM
|
#2
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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:
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
|
|
|
08-17-2003, 11:24 AM
|
#3
|
Member
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56
Original Poster
Rep:
|
ahah! thanks!
how do i find the partition number?
|
|
|
08-17-2003, 11:25 AM
|
#4
|
Member
Registered: Jul 2003
Location: Canada
Posts: 214
Rep:
|
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 11:26 AM.
|
|
|
08-17-2003, 11:25 AM
|
#5
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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 11:26 AM.
|
|
|
08-17-2003, 11:28 AM
|
#6
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
To list all partitions, type:
|
|
|
08-17-2003, 11:30 AM
|
#7
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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 11:31 AM.
|
|
|
08-17-2003, 11:30 AM
|
#8
|
Member
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56
Original Poster
Rep:
|
hey! i think that was probably the fastest reply i've ever got from any website!!
thanks!
|
|
|
08-17-2003, 11:31 AM
|
#9
|
Member
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56
Original Poster
Rep:
|
how about reading/writing files on a Windows computer on my network?
|
|
|
08-17-2003, 11:31 AM
|
#10
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
or
fdisk -l /dev/hdx
were x is
a - drive on primary master
b - primary slave
c - secondary master
d - secondary slave
|
|
|
08-17-2003, 11:36 AM
|
#11
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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.
|
|
|
08-17-2003, 11:39 AM
|
#12
|
Member
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56
Original Poster
Rep:
|
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!!!
|
|
|
08-18-2003, 03:42 AM
|
#13
|
Member
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56
Original Poster
Rep:
|
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..
|
|
|
08-18-2003, 09:56 AM
|
#14
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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
|
|
|
08-25-2003, 03:57 AM
|
#15
|
Member
Registered: Aug 2003
Location: Thailand
Distribution: Fedora 3
Posts: 56
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 10:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|