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?
sudo
? A different loop device (ls /dev
should show half a dozen or so)?sudo losetup -D
in case a prior attempt did something odd? – goldilocks Jan 13 '18 at 15:15su root
." If you search downward for "overlapping loop" you will find a note about that and a link (not all versions of mount have this issue). The link is another long answer so you may again want to search downward for "overlapping loop". – goldilocks Jan 13 '18 at 16:46