this post was submitted on 25 Dec 2023
63 points (90.9% liked)

Linux

48301 readers
895 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.ml/post/9729797

I am needing to transfer a singular file of roughly 4.8GB from Linux Mint onto a thumb drive, so that I can transfer it to my Windows install on a separate partition on the same PC. However, it has repeatedly failed after 4.3GB, with an error message reading "Error splicing file: File too large".

How do I fix this issue, or get around it? I need that file moved.

EDIT: This issue has been resolved. It was caused by the thumb drive being formatted as MSdos, reformatting it to exfat seems to have done the trick. Just used right-click “format” on linux mint, no need for console or booting up windows.

all 34 comments
sorted by: hot top controversial new old
[–] [email protected] 68 points 11 months ago (1 children)

Seems like your USB drive is formatted with a filesystem that doesn't support large files like FAT32, if you are able to, try formatting into exFAT in Linux with:

sudo mkfs.exfat -n LABEL /dev/YOURUSB

or in Windows by right clicking on the USB and clicking format.

[–] [email protected] 6 points 11 months ago (2 children)

Alright, I've used your code, sudo mkfs.exfat -n LABEL /dev/sdb1

but the console returns this

exfatprogs version : 1.1.3
open failed : /dev/sdb1, Device or resource busy

exFAT format fail!

what's the problem here? I've cleared out all storage on the drive, and made sure that it isn't opened in the file explorer, and it shouldn't be reading/writing anything because it's empty.

thanks for the help btw

[–] [email protected] 32 points 11 months ago (1 children)

You must unmount the drive before formatting. And also know that formatting wipes the drive, so if there is anything on there you want to keep, back it up beforehand

[–] [email protected] 26 points 11 months ago* (last edited 11 months ago)

And triple check the device path, you don't want to unceremoniously unmount and obliterate one of your non-system drives (shouldn't be able to unmount your system drive)

This may or may not be advice from learned experience

[–] [email protected] 10 points 11 months ago* (last edited 11 months ago)

It not only has to be not 'open' in the explorer, but properly unmounted. Tools like mkfs dont do that for you, its just not their job. (and might be unwanted or stop your from making mistakes like accidentally overwriting the wrong drive)

try umount /dev/USBDRIVE

If that still complaints about Device or ressource busy, then something is still using it.
Either try to close things that might be the culprit, reboot and try again or, if installed and you are compfortable, you can check which processes using lsof -D (you can get that location using mount | grep )

[–] [email protected] 14 points 11 months ago (1 children)

What file system is there on your USB drive?

[–] [email protected] 3 points 11 months ago (2 children)

When right-clicking the drive and selecting "properties", the filesystem type is stated to be MSdos

[–] [email protected] 7 points 11 months ago

I found this

MS-DOS (FAT) - This is Disk Utility's name for the FAT32 filesystem.

https://www.engadget.com/2011-09-19-mac-101-format-choices-for-usb-flash-drives.html

So I think the advice about the FAT32 issue people mentioned is the issue :)

[–] [email protected] 12 points 11 months ago* (last edited 11 months ago) (1 children)

As another commenter mentioned, it's rather silly to use a USB stick to transfer files from one HDD partition to another. However, there's absolutely no need to use a Live USB session, and their description of how to access files on block devices was ... wrong.

There are programs you can find for Windows to access Linux filesystems, but those tend to be flaky; NTFS support for Linux is mature enough to accomplish what you need. You should be able to install NTFS support with apt and access the Windows partition like any other drive - I've done this. Googling "Linux Mint NTFS" should find you what you need.

[–] [email protected] 1 points 11 months ago (2 children)

Thanks, I edited my response.

their description of how to access files on block devices was ... wrong.

What was wrong about it?

[–] [email protected] 2 points 11 months ago (1 children)

/dev/sd* are block devices, not directories or mount points.

[–] [email protected] 1 points 11 months ago (1 children)

Does that mean you can't copy or rsync a file from one to the other?

[–] [email protected] 3 points 11 months ago (1 children)

That means that you have to mount them first.

[–] [email protected] 1 points 11 months ago

Ok, thanks.

[–] [email protected] 11 points 11 months ago

Sounds like the drive is FAT32 formatted. Max file size then is 4GiB. Compress it with bzip2 or 7zip or try the @bartolomeo's solution.

[–] [email protected] 5 points 11 months ago

flash drive is probably formatted FAT32 and that file is too big for that format. reformat the flash drive to exfat.

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago) (2 children)

Edit: nevermind, apparently I was wrong.

[–] [email protected] 2 points 11 months ago (1 children)

Theyd need a ntfs driver to do anything. If you try to do what you are suggesting without one, bad things happen. Unless that part of the partition isn't ntfs formatted.

[–] [email protected] 1 points 11 months ago (1 children)
[–] [email protected] 1 points 11 months ago (1 children)

We have a specific driver for reading and writing to ntfs for a reason.

[–] [email protected] 1 points 11 months ago (1 children)

What's the reason? Honest question.

[–] [email protected] 2 points 11 months ago (1 children)

Why do you think anyone bothered to write a ntfs driver if you could read and write to ntfs without it? Why do you think windows cant read ext4? What do you think file systems are?

[–] [email protected] 1 points 11 months ago

I know where you're coming from.

The best way to be happy is to be kind. Seriously, just try it and come to your own conclusion. It works way better than trying to extract satisfaction from life, which actually just creates more dissatisfaction.

[–] [email protected] 1 points 11 months ago (1 children)

Sorry if it's a noob question, but isn't a live session something you do with a USB stick without installing? The file is currently on the Mint install I used to torrent it, along with my other daily-driver things.

[–] [email protected] 0 points 11 months ago (1 children)

isn't a live session something you do with a USB stick

Or, something you do with a fit Latvian girl...

[–] [email protected] 1 points 10 months ago

Man, those guys who down voted you have no sense of humor. You made a sex joke in response to my video game piracy joke!

[–] Dogeek 2 points 11 months ago

People suggested formatting to exFAT which is valid, but first you could just try either compressing the file (tar czvf file tarball.tgz for instance). FAT32 cannot handle files larger than 4GB, and compression might just make your file small enough.

As a workaround you could also split it in half and stich it back on the target machine

[–] [email protected] -5 points 11 months ago (1 children)

LMGTFY

Use zip, rar or other tooling to split it into parts and reassemble on the destination.

Or use another filesystem, compatible with both targets.

[–] [email protected] 2 points 11 months ago

It was already split by a fit Latvian girl of a Yarr-harr, fiddle-dee-dee persuasion, if you catch my drift. I really am afraid of fucking something up, so I'll try other methods before splitting it further.