💾 Archived View for kelgors.me › wiki › mount.gmi captured on 2023-07-22 at 16:25:15. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
mount /dev/sdb1 /media/usbdrive
# mount a drive UUID=<uuid> /backup ext4 defaults 0 0
# mount a smb share //xxx.xxx.x.x/ShareName /backup cifs x-systemd.automount,rw,iocharset=utf8,uid=1000,gid=1000,credentials=/etc/smbclient.conf 0 0
And put your credentials in `/etc/smbclient.conf`
username=user password=pass
Structure of the file:
<File system> <mnt> <type fs> <options> <dump> <pass>
It could be the path to the device like `/dev/sda1` or the UUID of the drive (more reliable), you can get it with `lsblk`
It's the path where you want to mount your device. It could be anything like /mnt/backup or /home for example.
It's the partition of your drive like (ext4, fat32, ...)
- auto: The fs will be mount during startup or when you use `mount -a`
- noauto: The fs must be manually mounted
- exec: Allow file execution
- noexec: Disallow file execution
- ro: Allow read only
- rw: Allow read and write
- sync: Synchronous interaction with the fs
- async: Asynchronous interaction with the fs
- user: Any user can mount it
- nouser: Only root can mount it
- suid: Allow suid & sgid bit operations
- nosuid: Disallow suid & sgid bit operations
- defaults: equivalent to rw,suid,dev,exec,auto,nouser,async
- noatime: Don't update file access time
- nodiratime: Don't update directory access time
- relatime: Only update file access time if this one is before the new file access time
Use by dump. It can be 0 or 1. If 0, dump will ignore it.
Use by fschk. Can be 2 enable fschk to check it or 0 to ignore it. 1 is reserved for root partition
Last-Updated: 2022-08-15