LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2004, 05:38 PM   #1
bezoomny
LQ Newbie
 
Registered: Feb 2004
Distribution: DEBIAN GNU/Linux 2.6.10
Posts: 9

Rep: Reputation: 0
can't access ntfs mount through nfs mount


I have two machines in a LAN, machine [1] runs Debian Linux and WinXP and machine [2] just runs Debian Linux.
Machine [1] has two harddisks, one with a NTFS partition, the other with an EXT2 partition. While machine [1] boots Debian Linux by default, it mounts the NTFS partition through mount -t ntfs on /mnt/winxp. This works fine: all users on machine [1] can access this partition and see plenty of files and directories.
Machine [2] has one harddisk with just one EXT2 partition. I mounted the root directory (/) of the EXT2 partition of machine [1] through NFS on /mnt/bas-01 on machine [2]. This mount through NFS also works fine except for the mount point /mnt/winxp on machine [1], when I try to access this folder through the mount point /mnt/bas-01 on machine [2] it seems to be empty.

I found just one thread about this kind of problem on an forum elsewhere on the net. The advise to add no_root_squash to /etc/exports didn't help. Also the suggestion that it might be a permission problem is not likely: everyone has read access to this folder and this is confirmed by the fact that everyone on machine [1] can read the folder /mnt/winxp, but as soon as NFS is involved the folder seems to be empty. Does anyone have another suggestion?

Thanks,

Bas
 
Old 02-11-2004, 08:02 PM   #2
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
I don't think you can network mount windows partitions with NFS. I think you need to use samba for that.
 
Old 02-12-2004, 05:34 AM   #3
bezoomny
LQ Newbie
 
Registered: Feb 2004
Distribution: DEBIAN GNU/Linux 2.6.10
Posts: 9

Original Poster
Rep: Reputation: 0
I'm not trying to mount a windows partition directly. I try to mount a EXT2 partition with a mount point to a windows partition. Or doesn't that make a difference?
I'm not using that windows partition often, so I like to avoid using samba while I'm already using NFS for other purposes.

Bas
 
Old 02-12-2004, 01:59 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
NFS don't support Windoze (FAT/FAT32/NTFS) partition... if you mount it to a Ext2 drive, it makes no difference at all, a mount point is just a link to the hard drive... it is just like changing a drive letter on windoze... no matter if your letter is C: or D:, the drive formatting still the same.
 
Old 02-12-2004, 06:20 PM   #5
bezoomny
LQ Newbie
 
Registered: Feb 2004
Distribution: DEBIAN GNU/Linux 2.6.10
Posts: 9

Original Poster
Rep: Reputation: 0
that's a pitty, but thanks... i'll try it with samba then...
 
Old 02-13-2004, 04:02 AM   #6
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
if i could get my modem to work on linux i would test it, But i cannot see why nfs cannot access fat partitions. If it cannot this is because fat partitions do not use inodes and every part of the linux file system is based on them.

The linux kernel has dynamic inode creation built into the fat layer to fix this problem. This enables the VFS to access it via it's inode_structure.

but one would thing nfsd interfaces with the file system via the VFS, meaning serving via fat should be possible.

But nfsd tends to not follow mounts, meaning if u serve a directory bellow the mount point u will only gain access to the blank directory not the mounting point.

i noticed this on my server as i had a 120Gb mounted on /home/download and mounting /home did not give me access to it, instead i had to mount it as well.

just in general if nfs interfaced with the VFS there is no way mounting a fat volume would be a problem and 2nd there is NO WAY in hell linus would allow nfsd to directly access anything else but the VFS.


So in concluding it is possible to mount a fat partition u just have to explicitly mount the fat mounted point.

hope that helped

Last edited by leckie; 02-13-2004 at 04:04 AM.
 
Old 02-16-2004, 07:36 AM   #7
bezoomny
LQ Newbie
 
Registered: Feb 2004
Distribution: DEBIAN GNU/Linux 2.6.10
Posts: 9

Original Poster
Rep: Reputation: 0
thanks a lot! it did work to mount the ntfs mount point directly via nfs. quite stupid of me that i didn't try that... but thanks...
 
Old 04-11-2004, 11:39 AM   #8
gordonamiller
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora and Hat 7 & 8
Posts: 2

Rep: Reputation: 0
No NTFS mounts in NFS

I hate to be a nuisance but there is no way that you can export NTFS partitions under NFS. End of story.

Read /usr/src/linux/Documentation/filesystems/Exporting if you doubt this.

It would be helpful if people did not post unreliable and just plain wrong stuff to this forum. Otherwise we are all wasting our time.
 
Old 04-14-2004, 06:07 AM   #9
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
So i was wrong, looks like a file system needs to support mapping of NFS filehandle fragments to dentrys(directory entries). With file systems like fat this would be done in the kernel since these file system are mapped from there fat structure to inodes in the kernel, i automatically assumed support would have been done. I guess one can never assume.

But when you think about it i guess it is a waist of code.

ehh i am 22 i'm bound to make a few mistakes.
 
Old 04-14-2004, 10:25 AM   #10
gordonamiller
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora and Hat 7 & 8
Posts: 2

Rep: Reputation: 0
Of course it would be VERY useful if you COULD export NTFS partitions under NFS. But I think we are stuck, for the time being, with filesystems like EXT* and the like.

Petition your local kernel developer for improvements to VFS to make all this stuff doable - and transparent. But don't expect quick results - the fs code is not due for reassessment until 2010
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
NFS mount without root access rajatgarg Linux - Networking 2 01-23-2004 12:33 PM
Access NTFS mount @ nonroot? af09 Linux - Newbie 6 01-14-2004 03:27 PM
How can I nfs mount an NTFS file system on my linux server jj4broder Linux - Networking 4 09-30-2003 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:36 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
Open Source Consulting | Domain Registration