💾 Archived View for kelgors.me › wiki › mount.gmi captured on 2024-05-10 at 10:55:18. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-12-28)
-=-=-=-=-=-=-
2022-08-15
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 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, ...)
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