nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Can't export the windows ntfs partition using nfs

This is a discussion on Can't export the windows ntfs partition using nfs within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hello EB, I am using dual boot windows XP and Redhat. I mounted ntfs partition using ntfsmount command(ntfsprogs-1.13.1) #ntfsmount /dev/sda1 ...


Go Back   nixCraft Linux Forum > Mastering Servers > Networking, Firewalls and Security

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 04-26-2007, 08:21 PM
Junior Member
User
 
Join Date: Apr 2007
Posts: 5
Rep Power: 0
linuxnightowl84
Default Can't export the windows ntfs partition using nfs

Hello EB,

I am using dual boot windows XP and Redhat. I mounted ntfs partition using ntfsmount command(ntfsprogs-1.13.1)
#ntfsmount /dev/sda1 /windows -o rw,fmask=0000,dmask=0000

Now I am tring to share using nfs - /etc/exportfs
/windows *(rw)

But when i try to mount this partition on client machine I am getting following error -
[root@client root]# mount -o ro 172.30.0.8:/windows win/
mount: 172.30.0.8:/windows failed, reason given by server: Permission denied

Logs on Nfs server shows -
[root@client tmp]# tail -f /var/log/messages
Apr 26 15:13:41 ud8 rpc.mountd: authenticated mount request from 172.30.0.7:726 for /windows (/window
Apr 26 15:13:41 ud8 rpc.mountd: getfh failed: Operation not permitted

Anybody have any solution on this???
Can we share ntfs partition using nfs or is there any different way to do this??

Thanks,
Linuxnightowl84
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-26-2007, 09:56 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Try to replace
Code:
/windows *(rw)
Witg
Code:
/windows *(rw, root_squash)
Restart NFS and mount again
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 04-27-2007, 12:15 PM
Junior Member
User
 
Join Date: Apr 2007
Posts: 5
Rep Power: 0
linuxnightowl84
Default

Hello Vivek,

Tried with root_squash

[root@nfs tmp]# cat /etc/exports
#
/windows *(rw,root_squash)


[root@client root]# mount 172.30.0.8:/windows win/
mount: 172.30.0.8:/windows failed, reason given by server: Permission denied



Linuxnightowl84
Reply With Quote
  #4 (permalink)  
Old 04-28-2007, 04:20 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 151
Rep Power: 4
raj is on a distinguished road
Default

Quote:
Originally Posted by linuxnightowl84 View Post
Hello Vivek,

Tried with root_squash

[root@nfs tmp]# cat /etc/exports
#
/windows *(rw,root_squash)


[root@client root]# mount 172.30.0.8:/windows win/
mount: 172.30.0.8:/windows failed, reason given by server: Permission denied



Linuxnightowl84
What is the output of following?
Code:
showmount -e <IP address of NFS>
The output from the above command shows you the directories exported, and to whom they are exported.

Also run
Code:
rpcinfo -p <IP address of NFS>
Make sure rpc and nfs client services are running on client

Make sure rpc and nfs server running on server itself


Also make sure your client IP address exists in /etc/hosts on nfs server and server IP exists in /etc/hosts on client

Lemme know
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #5 (permalink)  
Old 04-29-2007, 05:40 PM
Senior Member
User
 
Join Date: Dec 2006
Location: /B!n@ry
My distro: openSuSE 10.2
Posts: 127
Rep Power: 0
B!n@ry
Send a message via MSN to B!n@ry
Default

Quote:
Originally Posted by linuxnightowl84 View Post
Hello Vivek,

Tried with root_squash

[root@nfs tmp]# cat /etc/exports
#
/windows *(rw,root_squash)


[root@client root]# mount 172.30.0.8:/windows win/
mount: 172.30.0.8:/windows failed, reason given by server: Permission denied



Linuxnightowl84
NFS doesn't work correctly with IP Tables, you need to do some specific config to make it work with iptables, this may help:
Linux NFS-HOWTO
Tutorial: Configure NFS under Linux for IPTABLES control

Or if you want a quick solution just turn the iptables off when you finish work enable it again
__________________
LivE Free 0r DiE
L!nux rul3z aLL
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to view windows XP partitions(NTFS) in linux kar_siddharth Linux software 5 04-24-2008 06:22 PM
How to export directoies in freeBSD jkmb All about FreeBSD/OpenBSD/NetBSD 1 01-22-2008 12:41 AM
what's the Diff. in Windows 2003 and Windows 2000 server kasimani Windows Xp/2000/2003 server administration 2 08-14-2007 12:05 PM
Access windows partition mannrj45 Linux software 2 12-04-2006 10:03 AM
windows partition mounting problem in linux as4.o ramjimh Linux software 4 04-22-2006 01:04 AM


All times are GMT +5.5. The time now is 03:21 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36