Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
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.
If it logged a hardware error, most likely in /var/log/syslog or /var/log/messages. Bus like errors are hard to debug because they can involve multiple devices or one device could be interfering with things.
I got a typical zip error: Output file write failure (write error on zip file) but I did not see any logs in /var/log/syslog or /var/log/messages. I've attached my ssd into another computer with specs:
Dell optiplex 9020
intel core i5-4570
intel hd graphics 4600
Adata 240 GB ssd
Fedora Linux 38
kernel version Linux 6.2.15-300.fc38.x86_64
perhaps zip and find together can zip up files and folders in smaller chunks instead of unmanageable chunks. Is this possible?
When using
Code:
find ./sdcard -type d -exec zip -0 -r /home/username/Documents/archive.zip {} +
these are only supposed to zip folders which shouldn't be a heavy load on this system but instead it gives me
You don't want -type d, that only adds directories to the zip. And I don't think you need the -r (find is doing the recursive op for you).
Try this:
find ./sdcard -print | xargs zip -0 /home/username/Documents/archive.zip
Which approximates the '+' sign on the end of your find command but perhaps it might be broken.
What does xargs do in this syntax ? I am receiving alot of zip warning: name not matched lines in the output
The funny thing is that I am trying to use the same find and zip commands on a new pixel 7 device and it seems to not give me zip I/O errors. The space on my galaxy s8 is 63.77 GB/64 GB and I have a bunch of different smb and ftp apps installed. I just did a
Code:
find ./DCIM/Camera -print -exec zip -0 /home/username/Documents/test.zip {} +
test on the pixel 7 and it is at the moment zipping the DCIM/Camera folder without any issues including .mp4 and .jpg files. It seems like there is an actual problem on the s8 weather its conflicting apps or a software issue with android 9.
isn't the default zip command in linux info-zip 64 bit zip only ?
Does tar preserve all the file and folder timestamps ?
update — when i connected my phone as a MTP device directly without making any network share, I am still getting input output error for folders and files at random. So, connecting with usb cable and connecting my android normally also gives I/O errors in addition to I/O errors with using webdav shares. Is there something deeper going on ? beyond hardware?
That means it is an error on the phone, it is independent from that find command or zip or anything else. But we don't know anything about the phone, sd card, configuration and environment, hard to say anything. Can you use it with the phone at all?
That means it is an error on the phone, it is independent from that find command or zip or anything else. But we don't know anything about the phone, sd card, configuration and environment, hard to say anything. Can you use it with the phone at all?
What do you mean ? I can still use my galaxy s8 normally but it's just that there are many apps and the storage is near to 64 GB the phone works fine i can use the apps and stuff. What information do you need about the phone ? I am not using an sdcard, there is no micro sd card inside the phone
To make troubleshooting this easier, would you like remote assistance of my phone so that we can see in real time what's happening?
What do you mean ? I can still use my galaxy s8 normally but it's just that there are many apps and the storage is near to 64 GB the phone works fine i can use the apps and stuff. What information do you need about the phone ? I am not using an sdcard, there is no micro sd card inside the phone
To make troubleshooting this easier, would you like remote assistance of my phone so that we can see in real time what's happening?
Since you gave no details actually I don't know your setup. What I only see is that i/o error, which means some device cannot be read. I have no idea what is exactly that directory (named sdcard ar DCIM), but it looks like it is inaccessible.
The random error may mean it is only a problem with your cable, but actually I'm not really sure about that.
You have to identify what caused this i/o error (and on exactly on which device).
Since you gave no details actually I don't know your setup. What I only see is that i/o error, which means some device cannot be read. I have no idea what is exactly that directory (named sdcard ar DCIM), but it looks like it is inaccessible.
The random error may mean it is only a problem with your cable, but actually I'm not really sure about that.
You have to identify what caused this i/o error (and on exactly on which device).
What do you mean my setup ? I've already given you what I am using...I am using a samsung galaxy s8 and fedora 38. What do you exactly mean by mode details ?
1. The error is with zip. find has nothing to do with it, IMO.
2. Logs: do
Code:
ls -ltr /var/log/
right after zip fails and cat the most recently changed files to see if there’s any indication of cause.
3. How big is the source directory? Mayhaps you’re running out of room.
4. Check the man page for zip. There should be a way to have it be more verbose.
1. The error is with zip. find has nothing to do with it, IMO.
2. Logs: do
Code:
ls -ltr /var log/
right after zip fails and cat the most recently changed files to see if there’s any indication of cause.
3. How big is the source directory? Mayhaps you’re running out of room.
4. Check the man page for zip. There should be a way to have it be more verbose.
No, this i/o error occurs when accessing files inside the sdcard directory. This is a remote webdav directory and either the driver is incorrect or there is a permission issue, misconfiguration or something is wrong with the phone, but who knows?
No, this i/o error occurs when accessing files inside the sdcard directory. This is a remote webdav directory and either the driver is incorrect or there is a permission issue, misconfiguration or something is wrong with the phone, but who knows?
That's what I think but we need to determine what exactly is interfering. Which driver specifically ? is it the ubuntu drivers or the galaxy s8 drivers? I am using a genuine samsung OEM USB cable. At what steps does the find or zip command check for permissions? maybe we need to change permissions at some step in the process...
That's what I think but we need to determine what exactly is interfering. Which driver specifically ? is it the ubuntu drivers or the galaxy s8 drivers? I am using a genuine samsung OEM USB cable. At what steps does the find or zip command check for permissions? maybe we need to change permissions at some step in the process...
This is not the find or zip, it is the filesystem access itself, does not depend on the tool you use (as you could see cat produced the same error). Also you could see (based on the strace output) a simple read caused the i/o error. You might check the logs of webdav (if there were any) to see what's going on. Probably you can find something in /var/log.
this is somewhat similar: https://bugs.launchpad.net/ubuntu/+s...e/+bug/1100190
This is not the find or zip, it is the filesystem access itself, does not depend on the tool you use (as you could see cat produced the same error). Also you could see (based on the strace output) a simple read caused the i/o error. You might check the logs of webdav (if there were any) to see what's going on. Probably you can find something in /var/log.
this is somewhat similar: https://bugs.launchpad.net/ubuntu/+s...e/+bug/1100190
There are lots of logs in there which should I look at specifically ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.