From ae26cf821e659df9665c9c223e20b927d201748d Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Sat, 7 Oct 2023 21:42:46 +0200 Subject: (qemu) Add doc how to auto mount cifs (smb) share while boot --- doc/note/qemu/qemu.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/note/qemu/qemu.txt b/doc/note/qemu/qemu.txt index b58b193..22f5940 100644 --- a/doc/note/qemu/qemu.txt +++ b/doc/note/qemu/qemu.txt @@ -125,6 +125,11 @@ true `# SMB client debian` \ && $SUDO mount -t cifs -o username=${hostUsername:?},uid=${guestUid:?},gid=${guestGid:?} "//${smbServer:?}/${sharename:?}" "${mountpoint:?}" \ && true +### Add those in "/etc/fstab" to setup mount automatically at boot: +### HINT: mkdir /home/user/build + //10.0.2.2/sharename /mnt/sharename cifs password=,uid=1000,gid=1000,user 0 0 + /home/user/build /mnt/sharename/build none bind 0 0 + List smb shares (eg debugging) smbclient -NL //10.0.2.2 -- cgit v1.1