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

"ls" error in the end of the script #9

Open
ruildias opened this issue Apr 9, 2024 · 5 comments
Open

"ls" error in the end of the script #9

ruildias opened this issue Apr 9, 2024 · 5 comments

Comments

@ruildias
Copy link

ruildias commented Apr 9, 2024

Hello,

the script worked well (*) while backup (did it manual the first time), but I got an error:

ls: /mnt/backup/Venus/raspberrypi2/Backup_raspberrypi2_20240409_075209.img: Value too large for defined data type

As this is in the "delete old backups" of the script, I tried to run the "ls" manually and it gave the same result:
ls /mnt/backup/Venus/raspberrypi2/Backup_raspberrypi2_20240409_075209.img ls: /mnt/backup/Venus/raspberrypi2/Backup_raspberrypi2_20240409_075209.img: Value too large for defined data type

I am using Venus OS 3.22.
Do you have a suggestion ?
Thanks in advance

(*) log from the backup itself:
"
Creating Venus/ on backup mount...
Using script dd for backup.
15928000000 bytes (16 GB, 15 GiB) copied, 3424 s, 4.7 MB/s
15931+1 records in
15931+1 records out
15931539456 bytes (16 GB, 15 GiB) copied, 3446.6 s, 4.6 MB/s

Backup completed successfully.
"

@mr-manuel
Copy link
Owner

Try #3

@ruildias
Copy link
Author

ruildias commented Apr 9, 2024

Thanks, I did tried that and it doesn't work ...
I tested changing the mount parameters and it doesn't work.
but I did find this link, and I tested it:

  • Created a small file in the same folder: "teste.txt"

If I do a specific: "ls -al teste.txt" it works:
-rwxr-xr-x 1 root root 256 Apr 9 10:43 teste.txt

If I use: "ls -al"

ls: ./Backup_raspberrypi2_20240409_075209.img: Value too large for defined data type
ls: ./Backup_raspberrypi2_20240409_092341.img: Value too large for defined data type
drwxr-xr-x    2 root     root             0 Apr  9 10:44 .
drwxr-xr-x    2 root     root             0 Apr  9 10:44 ..
-rwxr-xr-x    1 root     root           256 Apr  9 10:43 teste.txt

Seems the size of the file might be the issue ().
Here the folder from my windows:
image

@mr-manuel
Copy link
Owner

Unfortunately I'm not able to reproduce it.

Can you execute this commands and post the output?

stat -c "%y %s %n" -- /mnt/backup/Venus/raspberrypi2/*

stat -c "%y %n" -- /mnt/backup/Venus/raspberrypi2/*

ls -lh /mnt/backup/Venus/raspberrypi2

@mr-manuel
Copy link
Owner

@ruildias any update?

@ruildias
Copy link
Author

ruildias commented May 31, 2024

Hi Manuel,
sorry for the late answer, but here it goes.
I had to modify the script to compress the file while writing it, otherwise simple commands like would not work due to the file-size without compression. It is strange that other people didn't found the same issue.
I am using a simple Samba share on a Synology, only from the Venus OS I cannot browse that folder. Anyway, here what I did to solve the issue, in your code, I simply changed a single line to use gzip, e.g.:
/bin/dd if=/dev/mmcblk0 of="${BACKUP_PATH}/${BACKUP_NAME}_$(date +%Y%m%d_%H%M%S).img" bs=1MB status=progress
/bin/dd if=/dev/mmcblk0 bs=1MB status=progress | gzip > "${BACKUP_PATH}/${BACKUP_NAME}_$(date +%Y%m%d_%H%M%S).img.gz"
You can see the original line (commented). Hope that is fine for you.

Thanks for the follow-up request.

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

2 participants