LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't access second harddisk over NFS (https://www.linuxquestions.org/questions/linux-networking-3/can%27t-access-second-harddisk-over-nfs-301850/)

mrjamin 03-15-2005 09:00 AM

can't access second harddisk over NFS
 
Hi,

I recently installed a second hard disk in my RH9 server here at home. Simple little server I use as a fileserver, web server and a database server.

So anyway, I set up the harddisk , formatted it (EXT3) and set it to mount in my home directory as 'Media'

Here's what what I put in my fstab:

Code:

/dev/hdc1  /home/benlancaster/Media  ext3  user,suid,dev,exec  1  3
When I stat the folder itself, all the permissions are correct:

Code:

  File: `Media'
  Size: 4096            Blocks: 8          IO Block: 4096  Directory
Device: 1601h/5633d    Inode: 2          Links: 5   
Access: (0755/drwxr-xr-x)  Uid: (  501/benlancaster)  Gid: (  501/benlancaster)Access: 2005-03-15 14:46:52.000000000 +0000
Modify: 2005-03-15 12:54:35.000000000 +0000
Change: 2005-03-15 14:56:39.000000000 +0000

...but I can't get at the folder (i.e. the drive) over NFS from my Mac - NFS reports the folder as owned by root:wheel. Here's what ls -l gives in my NFS mount from my Mac:

Code:

drwxr-xr-x  2 root      wheel    4096 14 Mar 15:52 Media
What's weird is that I can open the folder fine, but it appears empty and is Read Only over NFS (which it isn't - can browse it fine from the server).

Here's what my /etc/exports line has on my home dir:

Code:

/home/benlancaster/    (async,insecure,rw)
Any pointers? Please help - am completely stumped!

Here's my kernel version etc:

Code:

Linux ************ 2.4.20-35_39.rh9.at #1 Thu Jun 24 15:52:09 EDT 2004 i686 athlon i386 GNU/Linux
MrJ


mrjamin 03-15-2005 09:06 AM

i should add, here's what fdisk -l gives:

Code:

# fdisk -l

Disk /dev/hdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start      End    Blocks  Id  System
/dev/hdc1            1    30401 244196001  83  Linux

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start      End    Blocks  Id  System
/dev/hda1  *        1        13    104391  83  Linux
/dev/hda2            14    24191 194209785  83  Linux
/dev/hda3        24192    24321  1044225  82  Linux swap


pingu 03-15-2005 09:18 AM

To start with, you're sharing /home/benlancaster/ not /home/benlancaster/media
Now I have to check my NFS-settings at home, just one guess:
Don't you have to insert, in /etc/exports, who is allowed to mount the share
Code:

/home/benlancaster/    192.168.10.0/24(async,insecure,rw)
also I remember something about mapping userid's, maybe dig into that?

mrjamin 03-15-2005 09:24 AM

Quote:

Originally posted by pingu
To start with, you're sharing /home/benlancaster/ not /home/benlancaster/media
Now I have to check my NFS-settings at home, just one guess:
Don't you have to insert, in /etc/exports, who is allowed to mount the share
Code:

/home/benlancaster/    192.168.10.0/24(async,insecure,rw)

The IP address isn't a requirement, leaving it out simply says anyone can access it.

yes, I am sharing /home/benlancaster, but Media is a subdirectory of that directory, so it should be fine.

Quote:

Originally posted by pingu
also I remember something about mapping userid's, maybe dig into that?
That sounds more promising, I just don't know where to start!


All times are GMT -5. The time now is 09:57 AM.