Create Journals
Update Journals

Journals
Find Users
Random

Read
Search
Create New

Communities
Latest News
How to Use

Support
Privacy
T.O.S.

Legal
Username:
Password:

ClaudiusMaximus (claudiusmaximus) wrote,
@ 2007-12-29 14:08:00
Previous Entry  Add to memories!  Add to Topic Directory  Tell a Friend!  Next Entry

    /etc/fstab line for less sucky vfat USB pen drive in GNU/Linux with udev

    I got sick of having to mount my vfat USB flash drive stick as root, and chmod/chown files after moving them as root. So I investigated udev. Turns out I don't need to write a udev rule, but just add a line in /etc/fstab:

    /dev/disk/by-id/usb-USB_DISK_Pro_AA04012700008623-part1 /media/pen/     vfat    user,noauto,uid=claude,gid=claude,dmask=077,fmask=177   0       0
    /dev/disk/by-id/
    udev creates uniquely named symlinks for each drive out of the box.
    user
    allow non-root users to mount
    noauto
    don't mount at boot
    uid, gid
    the owning user and group of all files
    dmask, fmask
    permissions to remove from directories and files


(Read comments)

Post a comment in response:

From:
 
Username:  Password: 
Subject:
No HTML allowed in subject
 Don't auto-format:
Message:
Enter the security code below.


Notice! This user has turned on the option that logs your IP address when posting.

Allowed HTML: <a> <abbr> <acronym> <address> <area> <b> <bdo> <big> <blockquote> <br> <caption> <center> <cite> <code> <col> <colgroup> <dd> <dd> <del> <dfn> <div> <dl> <dt> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <ins> <kbd> <li> <li> <map> <marquee> <ol> <p> <pre> <q> <s> <samp> <small> <span> <strike> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <tt> <u> <ul> <var> <xmp>
© 2002-2008. Blurty Journal. All rights reserved.