seamusdemora / RonR-RPi-image-utils

tools to create & update a backup of a running RPiOS system to a raw image file
268 stars 53 forks source link

Not working with samba share mount #8

Open DrStS opened 1 month ago

DrStS commented 1 month ago

Hi, I am trying to use the script with a samba share mount. The samba share mount seems to work fine when I operate on it with the pi user. Yet when I run the script is produces the following error message:

Create /mnt/fritz/test.img (y/n)? y sfdisk: cannot open /mnt/fritz/test.img: Invalid argument sfdisk: cannot open /mnt/fritz/test.img: Invalid argument losetup: /mnt/fritz/test.img: Warning: file is smaller than 512 bytes; the loop device may be useless or invisible for system tools. Unable to create image BOOT filesystem

The samba share is mounted with the following command:

sudo mount -t cifs //fritz.nas/FRITZ.NAS/Raspi_Back /mnt/fritz -o rw,noserverino,username=myuser,password=xxx,workgroup=WORKGROUP,uid=pi,gid=pi,noatime

leonundjulie commented 3 weeks ago

Hi. I have the same problem. Were you able to solve the issue? Regards from Andreas