We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

nmrider66
Posts: 45
Joined: Fri Feb 10, 2017 8:31 pm

How to move a 4.9 GB file (Solved)

Sun Jul 21, 2019 8:44 pm

I want to move my copy of the Buster image off of my Pi to make room for other files. Tried moving it with File Manager's Cut/Paste and mv at command line. Both processes failed to complete the move with an error: file too large.

Is there a way to move it?
Last edited by nmrider66 on Tue Jul 23, 2019 3:09 am, edited 1 time in total.

RonR
Posts: 3922
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: How to move a 4.9 GB file

Sun Jul 21, 2019 8:47 pm

Is there enough free space on the destination device you're trying to move it to? It appears there is not.

User avatar
rpdom
Posts: 25187
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: How to move a 4.9 GB file

Sun Jul 21, 2019 8:49 pm

Where were you trying to move it to?

If it was a USB stick formatted in FAT32 for Windows compatibility, there is a file size limit of 4GB.
Unreadable squiggle

nmrider66
Posts: 45
Joined: Fri Feb 10, 2017 8:31 pm

Re: How to move a 4.9 GB file

Sun Jul 21, 2019 9:12 pm

The drive has enough space but I'm not sure how its formatted. How do I check the formatting of the drive?

RonR
Posts: 3922
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: How to move a 4.9 GB file

Sun Jul 21, 2019 9:15 pm

Code: Select all

sudo blkid

nmrider66
Posts: 45
Joined: Fri Feb 10, 2017 8:31 pm

Re: How to move a 4.9 GB file (Solved)

Sun Jul 21, 2019 9:50 pm

One of my usb thumb drives was formatted with VFAT. Another is formatted with NTFS. I was able to copy the file to that one. Thank you all.

W. H. Heydt
Posts: 17201
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: How to move a 4.9 GB file

Mon Jul 22, 2019 1:52 am

You could always compress it first. Since it's on a Pi, you can use zip or gzip.

andrum99
Posts: 2524
Joined: Fri Jul 20, 2012 2:41 pm

Re: How to move a 4.9 GB file (Solved)

Mon Jul 22, 2019 5:12 pm

nmrider66 wrote:
Sun Jul 21, 2019 9:50 pm
One of my usb thumb drives was formatted with VFAT. Another is formatted with NTFS. I was able to copy the file to that one. Thank you all.
NTFS is probably the way to go if you need to transfer files to Windows. Alternatively you can use samba to transfer the file over the network. Note that NTFS on the Pi is a bit slow.

(VFAT is what Linux calls certain versions of the FAT filesystem. Technically VFAT was actually Microsoft's "virtual mode" FAT driver included in Windows 95, 98 and ME).

User avatar
jahboater
Posts: 9163
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: How to move a 4.9 GB file

Mon Jul 22, 2019 6:24 pm

W. H. Heydt wrote:
Mon Jul 22, 2019 1:52 am
You could always compress it first. Since it's on a Pi, you can use zip or gzip.
Or the newer "xz" which will give much better compression, but likely be slower too.

Its similar in use to gzip, so "xz -9" will give the best compression.

See "man xz" for details.

andrum99
Posts: 2524
Joined: Fri Jul 20, 2012 2:41 pm

Re: How to move a 4.9 GB file

Mon Jul 22, 2019 8:59 pm

For compressing files on my Pi I use pigz - it is a parallel implementation of gzip. It has the advantage that it will use all four ARM cores on the Pi. (Assuming you have a Pi with four cores of course). This makes it much faster.

Return to “Advanced users”