Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3843

Advanced users • Re: Image File Utilities

$
0
0
truncate -s 16265510912 /mnt/nasbckp/nasbackup/test.img
I never used image-backup to create backup on my Fritzbox. So I executed the above command try to reproduce the issue and got

Code:

framp@obelix:~$ sudo truncate -s 16265510912 /remote//fritzix/NTFS/imgframp@obelix:~$ ls -la /remote//fritzix/NTFStotal 0drwxr-xr-x 2 framp framp 0 Aug 17 00:00 .drwxr-xr-x 2 framp framp 0 Aug 16 23:53 ..drwxr-xr-x 2 framp framp 0 May  3 11:59 FRITZ-rwxr-xr-x 1 framp framp 0 Aug 17 00:00 img
If I use dd to create the initial image I get

Code:

framp@obelix:~$ sudo dd if=/dev/zero of=/remote//fritzix/NTFS/img2 bs=2MiB count=11+0 records in1+0 records out2097152 bytes (2.1 MB, 2.0 MiB) copied, 0.157372 s, 13.3 MB/sframp@obelix:~$ ls -lah /remote//fritzix/NTFStotal 0drwxr-xr-x 2 framp framp    0 Aug 17 00:08 .drwxr-xr-x 2 framp framp    0 Aug 16 23:53 ..drwxr-xr-x 2 framp framp   0 May  3 11:59 FRITZ-rwxr-xr-x 1 framp framp    0 Aug 17 00:00 img-rwxr-xr-x 1 framp framp 2.0M Aug 17 00:09 img2
It looks like it's an issue with the samba server on the Fritzbox commonly used in Germany and truncate doesn't work on the Fritzbox samba server.

Statistics: Posted by framp — Fri Aug 16, 2024 10:13 pm



Viewing all articles
Browse latest Browse all 3843

Trending Articles