LinuxQuestions.org
Visit Jeremy's Blog.
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 03-15-2005, 09:00 AM   #1
mrjamin
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: FC7
Posts: 27

Rep: Reputation: 15
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


Last edited by mrjamin; 03-15-2005 at 09:11 AM.
 
Old 03-15-2005, 09:06 AM   #2
mrjamin
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: FC7
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 03-15-2005, 09:18 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
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?
 
Old 03-15-2005, 09:24 AM   #4
mrjamin
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: FC7
Posts: 27

Original Poster
Rep: Reputation: 15
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!

Last edited by mrjamin; 03-15-2005 at 09:26 AM.
 
  


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
NFS Access Problem sroyc Linux - Networking 5 01-25-2008 12:41 PM
A harddisk space where XP and FC4 can both access bonniehandi Linux - Newbie 3 11-25-2005 09:12 PM
Music skips during harddisk access caspar_wrede Linux - Software 11 03-14-2005 04:51 AM
NFS: how can I get write-access?? pablovschby Linux - Networking 3 12-24-2003 08:39 AM
When i run Linux, the red light on the casing which shows harddisk access becomes on Kashif Ahmed Linux - Newbie 3 12-14-2002 10:52 PM

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

All times are GMT -5. The time now is 03:32 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