Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-11-2024, 12:15 AM
|
#1
|
Member
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156
Rep:
|
Faulty copy to USB drive exfat
I wish to restore a scientist works from Lacie drives to archive in a library.
There are many drives of this research with thousands of files. About 5 percent have bad filenames. (Colons slashes in filename)
The Lacie Drives Are apple probably "HFS file system. These drives mount okay on my Mint Linux system although the file system is read only for some reason.
My problem is that many (not all) Jpeg files and Photoshop files are corrupted after being copied to a USB drive. ( 2.5" SA external Serial ATA USB3.0 - apparently "super speed".) These brand new drives are formatted as exfat. This is convenient in case some files are greater than 4 gig and also should be readable by other academics on a Windows machine.
I tried copying using rsync, the unix cp command and even python's shutil.copytree. All these methods resulted in jpegs and Photoshop and Word documents being corrupted. I tried a different brand new drive with the same problem.
If I copy by dragging the icon, the copy works okay but because there are unrecognised file names the copy is halted with an error message with the option to cancel or skip. No option to skip on subsequent errors. If clicking on skip, the copy continues but then a little later it halts again on another unlawful file name. It will take too long to copy the many files and drives if it keeps stopping and requiring a click.
It may be the exfat file system that is the problem. Has anyone else encountered this?
Last edited by keirvt; 01-11-2024 at 12:18 AM.
|
|
|
01-11-2024, 03:30 AM
|
#2
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,744
Rep:
|
These are termed illegal because they are used in code - replace them using a script to remove them - then they should copy across.
However, I would suggest using an external SSD/HDD rather than pendrives, (pendrives are not for long term storage).
|
|
|
01-11-2024, 05:36 AM
|
#3
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,163
|
Any thing outside a user /home directory will generally be read only for a regular user. That should not prevent a user copying FROM that device filesystem.
The big problem seems to be the filenames. Since you are concerned about others using the files from windows and are using a windows filesystem, maybe you could try borrowing/using a windows computer to do this.
|
|
|
01-11-2024, 09:22 AM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,459
|
As far as I know linux doesn't have read write support for journaled HFS+ filesystems and therefore it is mounted read only by default. If the Lacie drives are something other then HFS+ they might be mounted as read only.
As posted the copy problem is due to the destination drive being exFAT because there are DOS illegal filename characters being used on the Mac. linux/unix allows just about any character except for a NULL. As suggest you need to run a script to remove the illegal filename characters and copy.
|
|
|
01-11-2024, 09:23 AM
|
#6
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
Quote:
Originally Posted by yancek
Any thing outside a user /home directory will generally be read only for a regular user. That should not prevent a user copying FROM that device filesystem.
The big problem seems to be the filenames. Since you are concerned about others using the files from windows and are using a windows filesystem, maybe you could try borrowing/using a windows computer to do this.
|
I don't think Windows will know what the heck to do with a MacOS (HFS) partition, and I don't think Windows is any happier with ":" or "/" in file names anyway.
|
|
|
All times are GMT -5. The time now is 10:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|