fstab

Eric Rossiter rossiter at discoverynet.com
Wed Oct 10 16:51:28 CDT 2001


jose sanchez wrote:
> 
> Hello everyone;
> I just added a harddrive to a RH 6.2 machine and have
> it mounted at boot up. This is what the fstab file
> looks like:
> 
> /dev/hdb5  /hdd2   ext2   defaults  1 3
> 
> When users try to write to it they get permission
> denied error. Why is this?
> 
> Here's the mtab file:
> 
> /dev/hdb5  /hdd2    ext2  rw  0 0
> 
> According to this users should write to it right?
> 
> Please let me know what I might be doing wrong or if
> there are other configurations I need to make.
> 
> Thank you for your help...
> 
> -Jose
> 

Hi, these are the steps as recomended by RH.

1. Physically install drive
2. Prepare drive (format,etc.)
3. Create partition table (fdisk)
4. Initialize new partitions (mke2fs)
5. Initialize new swap partitions (mkswap)(if needed)
6. Edit /etc/fstab
7. Make directories
8. Mount filesystems
9. Enable swap (swapon -a)(if needed)

Have you completed all of those steps?  I gather /hdd2 is the mount
point for this drive?  Is this where your users are trying to write to?
Are the permissions set correctly for your users and/or /hdd2?

That's all I can think of right now.  It's probably somewhere in your
permissions.  Remember, you have user permissions, group permissions,
and others and then directory and file permissions (I think) and they
all have to be correctly.

Eric




More information about the Kclug mailing list