Skip to main content

mounting fat32 partition in Ubuntu 8.10

I like to use a fat32 partition as a shared partition, and want to be able to read and write in that partition. Thus, I modify my /etc/fstab to include the following command, i.e.

/dev/sda2 /media/sda2 vfat defaults,utf8,umask=077,gid=1000,uid=1000 0 0

the key is to specify
1. umask=077; it means only the user has the right to read-write-execute.
2. uid=1000,gid=1000 are the user id and the group id of the owner.

well, it is not perfect but it suits my need.

Comments

Popular posts from this blog

Web App Scaling with Flask Blueprint and Namespaces

A real-world Flask-RESTX-based API  may have multiple namespaces. The best practice for scaling a web application is to use a blueprint along with multiple namespace. The namespace is used to group a set of CRUD operations for a specific resource.  Blueprint can be used to combine (mixing) multiple namespaces. Here’s an example directory structure: project\ ├── app.py # Application file ├── apis #    ├── v20 # API directory    │   ├── __init__.py    │   ├── specs.py # API namespaces and REST methods    │   ├── steps.py # API namespaces and REST methods    └── v20bp.py # API blueprint file Here is an example app.py. Using a blue print allow you to mount your API on any url prefix. from flask import Flask from apis.v20bp import blueprint as api app = ...