Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erroneously said not enough space #14

Open
thethereza opened this issue Nov 30, 2022 · 4 comments
Open

erroneously said not enough space #14

thethereza opened this issue Nov 30, 2022 · 4 comments

Comments

@thethereza
Copy link

tried to run it and save to a cifs moutned nas. I have terrabytes of free space, but your app errored out saying not enough free space. Also, i got errors about invalid commands to fdisk.

@tom-2015
Copy link
Owner

tom-2015 commented Dec 1, 2022

Maybe check if fdisk is installed and if not install it?

@thethereza
Copy link
Author

thethereza commented Dec 2, 2022 via email

@tom-2015
Copy link
Owner

tom-2015 commented Dec 3, 2022

Then try to add some extra space to the image with the -x parameter. For example: -x 524288000 will add extra 500MB space to the resulting image.

See also #13

@Josephur
Copy link

Same problem here, backing up to an SMB share with plenty of space.

mary@mmtrailer1:/mnt/smbshare $ sudo imgclone -d /mnt/smbshare/mmtrailer1.img
---- Raspberry Pi clone to image V1.8 ---

---- DO NOT CHANGE FILES ON YOUR SD CARD ---
---- WHILE THE BACKUP PROGRAM IS RUNNING ---
---- THE DESTINATION .IMG FILE MUST BE ---
---- ON AN EXTERNAL STORAGE / NETWORK SHARE ---

Cloning /dev/mmcblk0 to /mnt/smbshare/mmtrailer1.img
uuid | cut -f1 -d-
mktemp -d
mktemp -d

---- READING PARTITIONS ------

Partition 1 start: 8192 end: 1056767 ptype:primary ftype:fat32 flags: lba
.Partition 2 start: 1056768 end: 30924799 ptype:primary ftype:ext4 flags:
.partprobe
Last partition starts at 541065216 bytes.
mount /dev/mmcblk0p2 /tmp/tmp.nV6Efawfdh
df /tmp/tmp.nV6Efawfdh | tail -n 1 | tr -s " " " " | cut -d ' ' -f 2
df /tmp/tmp.nV6Efawfdh | tail -n 1 | tr -s " " " " | cut -d ' ' -f 4
Used size of last partition /tmp/tmp.nV6Efawfdh is 4513165312 bytes.
umount /tmp/tmp.nV6Efawfdh
Required size for destination image: 5165800960 bytes

---- ALLOCATING SPACE FOR .IMG FILE ------

touch "/mnt/smbshare/mmtrailer1.img"
df "/mnt/smbshare/mmtrailer1.img" | tail -n 1 | tr -s " " " " | cut -d ' ' -f 1
df: /mnt/smbshare/mmtrailer1.img: No such file or directory

df --output=avail -B 1 "/mnt/smbshare/mmtrailer1.img" | tail -n 1
df: /mnt/smbshare/mmtrailer1.img: No such file or directory

Not enough free space to create destination image file 0 free, required 5165800960 bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants