nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-26-2007, 07:21 PM
Junior Member
User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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, 08:56 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
Posts: 1,527
Thanks: 2
Thanked 18 Times in 15 Posts
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
+ ADD [SOLVED] thread prefix to your thread when your problem is sorted out by editing your thread.
+ Always use CODE tags for posting system output and commands!
Reply With Quote
  #3 (permalink)  
Old 04-27-2007, 11:15 AM
Junior Member
User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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, 03:20 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 169
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 5
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, 04:40 PM
Senior Member
User
 
Join Date: Dec 2006
Location: /B!n@ry
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 02:15 AM.


Powered by vBulletin® Version 3.8.3 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
©2005-2009 nixCraft. All rights reserved

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