On 7/2/06, rblythe <[EMAIL PROTECTED]> wrote:
On a whim, I tried to create a directory on my separate partition as a
normal user and I received a Permission denied error.

The entry in /etc/fstab for this partition:
/dev/hda2   /mnt/hda2   vfat,ext3,ext2   defaults   0 0

I am wondering if this all boils down to a permission issue.

Yes. You need to make that directory writeable by your user or group.
I believe the defaults for vfat mount the filesystem rw, but check the
file/directory permissions, too.

looking at /etc/group I can see that I (rblythe) am not part of the disk
group, but accoding to /etc/udev/rules.d/25-lfs.rules, the hd[a - z]
items belong to the "disk" group.  I can make directories on /dev/hda12
(where {B}LFS is) without problem.  I am not sure what needs to be
defined in order for me to mkdir on /mnt/hda2.

You only need to be part of the disk group if you want direct access
to the device. Once a filesystem is mounted, you should be able to
write there as long you have file permissions.

And one more thing, looking at the /etc/fstab from my host, the entry
for the drive looks like this:
/dev/hda2   /mnt/hda2   vfat,ext3,ext2   noauto,users,exec   0 0

The only problem with that is that I have to manually mount the drive
before starting Thunderbird, and I am trying to avoid that with my own
build.

1. Just specify one filesystem type (probably vfat)

2. Drop noauto and it will mount at boot.

3. users allows any user to be able to mount and unmount. You won't
need that if it's mounted at boot time.

4. exec is probably not needed (in fact noexec is probably preferred)
since in the best case there is just data and the worst case there are
mixed linux/windows binaries there.

man mount, man fstab

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to