[GRLUG] fstab nastiness

John-Thomas Richards jtr at jrichards.org
Wed Sep 21 11:00:21 EDT 2011


On Wed, Sep 21, 2011 at 10:52:57AM -0400, Michael Mol wrote:
> On Wed, Sep 21, 2011 at 10:47 AM, John-Thomas Richards
> <jtr at jrichards.org> wrote:
> > I have a USB drive with two partitions: one vfat and one ext4.  The
> > /etc/fstab entries are as follows:
> >
> > UUID=[snip]     /media/backup   ext4    rw,user,auto            0       0
> > UUID=[snip]     /media/HITACHI  vfat    rw,user,auto            0       0
> >
> > After mounting each partition `mount' returns:
> >
> > /dev/sdb2 on /media/backup type ext4 (rw,noexec,nosuid,nodev,user=jtr)
> > /dev/sdb1 on /media/HITACHI type vfat (rw,noexec,nosuid,nodev,user=jtr)
> >
> > This is as expected, showing each partition is read-write and owned by
> > me.  However, I can write only to the vfat partition and not the ext4
> > partition.  Am I missing an ext4-only option?
> 
> Probably nothing that's unique to ext4 over ext3 or ext2. ext4
> implements normal Linux permissions, while vfat doesn't. As a
> consequence, your mounted ext4 volume will have uid and gid
> permissions associated per-file and per-directory. If those values
> don't correspond to the uid and gid values on the system you've
> mounted it on, then your local system won't see you as the owner.
> 
> I don't remember off-hand how to override the ownerships.

Excellent.  Thanks.  I created the necessary directory and changed the
ownership to me (as root) I can read/write (to that directory).
-- 
john-thomas
------
I took a speed reading course and read 'War and Peace' in twenty
minutes. It involves Russia.
Woody Allen, author, actor (1935- )

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the grlug mailing list