This table keeps track of the Raspberry Pi's external storage setup.
| Device |
Filesystem |
Label |
Mount Point |
Mount Options |
| /dev/sda2 |
ext4 |
storage |
/mnt/storage |
defaults,noatime,nodiratime,commit=600 |
| Device |
UUID |
| /dev/sda2 |
5bb54030-2df7-4798-afb5-bd2878ae0def |
Hard Drive commands
| purpose |
command |
| find the UUID |
lsblk -f |
| verify mount point |
df -h : grep storage |
| check filesystem typ |
sudo blkid / dev/sda2 |
Mount Options Explanation
| Option |
Description |
| defaults |
Uses the default options: `rw, suid, dev, exec, auto, nouser, async`. |
| rw |
Mounts the filesystem as read/write (default). |
| ro |
Mounts the filesystem as read-only. |
| noexec |
Prevents execution of binaries on the mounted filesystem. |
| exec |
Allows execution of binaries (default). |
| nosuid |
Blocks `setuid`/`setgid` binaries from running. |
| nodev |
Ignores device files (e.g., `/dev/null`) on this filesystem. |
| noatime |
Disables access time updates to improve performance. |
| nodiratime |
Disables directory access time updates (for performance). |
| relatime |
Updates access time only if the file is modified, balancing performance. |
| strictatime |
Always updates access time (not recommended for performance reasons). |
| sync |
Writes changes to disk immediately instead of caching them. |
| async |
Writes changes to disk asynchronously (default, better performance). |
| commit=600 |
Delays disk writes for 600 seconds (10 minutes), reducing wear. |
| nofail |
Allows booting even if the mount fails (useful for external drives). |
| errors=remount-ro |
If an error occurs, remounts the filesystem as read-only. |