How do I output to network drive? #17098
Unanswered
CaliMiller
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I setup Automatic1111 on Debian 12 in a Proxmox virtual machine. I'm able to login to the webui remotely and generate images. I don't want the generated images filling up the SSD where the Stable Diffusion files are stored, so I'd like to output them to a network drive. But when I attempt to generate an image, I get this error:
PermissionError: [Errno 13] Permission denied '/mnt/StableD/2025-08-03
These are the steps I took to set it up:
I set a network drive to automount on boot through fstab:
//192.168.1.31/StableD /mnt/StableD cifs _netdev,username=myname,password=12345,rw,user,x-systemd.automount,x-systemd.requires=network-online.target,nofail 0 0
When logged into the virtual machine via SSH, I can navigate to the directory to verify it is mounted, and can see the contents.
I changed read/write permissions and gave ownership to the default user and group:
sudo chmod 775 /mnt/StableD
sudo chown -R stablediffusion:user /mnt/StableD
I changed the output location in the webui to the network share:
When I attempt to generate an image, I get the above error.
A user on Reddit had me double-check some permissions. I assumed that the /mnt directory is a system folder that requires elevated privileges, so I updated fstab to change the network share's mount point to /home/stablediffusion/share. When I try to generate images, I still get the same error that the directory is not writable.
Is there a way to give Automatic1111 elevated privileges? Is there a way to make the directory writable without requiring sudo?
Reddit thread: https://www.reddit.com/r/StableDiffusion/comments/1moz7ag/how_do_i_output_to_network_drive/
Beta Was this translation helpful? Give feedback.
All reactions