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 26-04-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 (/windows)
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
  #2 (permalink)  
Old 26-04-2007, 08:56 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 27-04-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 28-04-2007, 03:20 AM
raj's Avatar
raj raj is offline
Senior Member
User
 
Join Date: Jun 2005
Location: Hyderabad
OS: Fedora, Debian Linux
Posts: 307
Thanks: 42
Thanked 8 Times in 8 Posts
Rep Power: 6
raj will become famous soon enough raj will become famous soon enough
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 29-04-2007, 04:40 PM
B!n@ry's Avatar
Senior Member
User
 
Join Date: Dec 2006
Location: B!n@ry-z0ne
OS: Ojuba 3
Posts: 129
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 9 09-02-2010 04:49 PM
what's the Diff. in Windows 2003 and Windows 2000 server kasimani Windows Xp/2000/2003 server administration 3 05-08-2009 11:46 PM
windows partition mounting problem in linux as4.o ramjimh Linux software 9 24-12-2008 12:38 PM
How to export directoies in freeBSD jkmb All about FreeBSD/OpenBSD/NetBSD 1 21-01-2008 11:41 PM
Access windows partition mannrj45 Linux software 2 04-12-2006 09:03 AM


All times are GMT +5.5. The time now is 04:19 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 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 37 38