Referring to @goldilocks Reverse the expand root FS
I'm using the latest Rasbian Stretch and have sent an rsync backup to my NAS which is mounted via an NFS mount. Now I am attempting @goldilocks guide to create a new blank image file on the NAS to send the rsync backup into. There are 2 problems....
"dd if=/dev/zero of=test.img bs=4096 count=1000" creates a 4M file not 40M
Making the file 40M and continuing up to the losetup line where I hit an error that I cannot bypass.
losetup -o 4194304 /dev/loop1 test.img"
Changing the file.img permissions to 777 doesn't help this error
losetup: /dev/loop1: failed to set up loop device: Permission denied
Is the because Rasbian Stretch is different, or is just me?