Mac Terminal Rm Input/output Error
Contents |
Please enter a title. You can not post a blank message. Please type your message and try again. This discussion is locked charales1969 Level 1 (10 points) Q: Uneraseable files and dirs inside the trash can I, I have got some items in the trash can that input output error mac external hard drive wher I try to emply it, I get an error message saying that the can't input output error mac disk utility be erased because they are being used. I have turned off the computer several times but the same thing happens. Is there a solution disk utility input output error new image for this? Mac Pro, Mac OS X (10.6.5), x2.26GHz Quad-Core Xeon, 16GB Posted on Dec 16, 2010 2:28 AM I have this question too Close Q: Uneraseable files and dirs inside the trash can All replies Helpful answers by (n_n), osx input/output error (n_n) Dec 16, 2010 3:43 AM in response to charales1969 Level 2 (355 points) Dec 16, 2010 3:43 AM in response to charales1969 Hi,http://forums.macrumors.com/showthread.php?t=100613rm -rf .Trashes/*
in terminal will empty trash most of the time...
make sure it's really trash, because you won't get a second chance...Welcome to Apple Discussions.Cheers. Helpful (0) Reply options Link to this post by thomas_r., thomas_r. Dec 16, 2010 3:59 AM in response to (n_n) Level 7 (30,944 points) Mac OS X Dec 16, 2010 3:59 AM
Mac Input/output Error
in response to (n_n) That should be:
rm -rf ~/.Trash/*
Although you should end up in the user folder by default when you open the Terminal, that's a bad assumption to make, and there's no .Trashes folder there. Helpful (0) Reply options Link to this post by charales1969, charales1969 Dec 16, 2010 4:02 AM in response to (n_n) Level 1 (10 points) Dec 16, 2010 4:02 AM in response to (n_n) First of all, thank you for your prompt reply It did not work. I looked at the properties of the files and dirs in the trashcan, and they wer all originally in USB hard drives comming from Windows environment, so I connected them back to the Windows PC but still no luck. Seems like they are stuck between both operating systems. Is that possible? Helpful (0) Reply options Link to this post by thomas_r., thomas_r. Dec 16, 2010 4:24 AM in response to charales1969 Level 7 (30,944 points) Mac OS X Dec 16, 2010 4:24 AM in response to charales1969 Are those files still on those hard drives? In other words, if you remove the hard drives, does your trash become empty? If so, they're in the trash on those drives. Try this... attach one of those drives and, in the Terminal, type "cd " (note the space, and omit the quotes), then drag the drive from the desktop onto the Terminal window. The path will be inserted.
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Input/output Error Linux
workings and policies of this site About Us Learn more about Stack ntfsprogs Overflow the company Business Learn more about hiring developers or posting ads with us Ask Different Questions Tags Users diskwarrior Badges Unanswered Ask Question _ Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute: Sign up https://discussions.apple.com/thread/2685152?start=0&tstart=0 Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to identify and fix files with corrupted / inaccessible disk blocks up vote 6 down vote favorite 5 I have a late 2011 Macbook Pro, running Mavericks 10.9.2. Its sole HDD is a 750GB drive, formatted http://apple.stackexchange.com/questions/129030/how-to-identify-and-fix-files-with-corrupted-inaccessible-disk-blocks with Bootcamp. It's still running reasonably well, but in running a defragment pass on it, I've identified that there are a bunch of files which are refusing to be moved by the defragmenter (iDefrag). iDefrag reports a POSIX error code of 5 when accessing the files. Picking one at random and trying to copy the file to another location in the shell also reports an error, which makes me think the problem is real and with the disk / FS. Output of cp is: cp: unity_nophysx.nexe: Input/output error Error code 5 is 'access denied' as far as I'm aware, but the defrag process is running as administrator and running cp using sudo on the suspect file makes no difference. Disk Utility, fsck and the Apple Hardware Test all claim the disk is fine. No SMART errors reported, and while there were some permissions errors, they weren't with the files iDefrag is complaining about, and Disk Utility claims to have fixed them without complaint. There are maybe a hundred or more corrupted files, but still a very small fraction of th
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the http://superuser.com/questions/411952/cannot-delete-an-empty-directory-in-osx company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; http://www.pclinuxos.com/forum/index.php?topic=127513.0 it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Cannot delete an empty directory in OSX output error up vote 6 down vote favorite This post is a little lengthy, sorry. The short version is: I have a directory that I can't delete. Terminal gives, "input/output error," when I try to interact with it. I've scanned the disk for errors and none are found. The root of the problem seems to be that the system thinks this is a link, when in fact it's a directory. How can I delete it? Story input output error mode: I have a directory called "media" on my desktop, into which I mounted another directory via SSH (fuse/sshfs). The connection was lost while the directory was open. Finder crashed, and the directory disappeared from the desktop. It's still there, however: Desktop mike$ ls -1 media templates Desktop mike$ mkdir media mkdir: media: File exists Almost everything I try to do to the directory gives me an, "input/output" error: Desktop mike$ ls -i ls: media: Input/output error Desktop mike$ sudo rm -rf media rm: media: Input/output error Desktop mike$ sudo unlink media unlink: media: Input/output error Desktop mike$ sudo chmod 777 media chmod: media: Input/output error Desktop mike$ touch media touch: media: Input/output error cd ./media cd: error retrieving current directory: getcwd: cannot access parent directories: Input/output error I get the same if I try to remount the remote SSH directory: fuse: bad mount point `./media/': Input/output error Even though it's not visible on the desktop or in Finder, I can search and find it. Right-clicking the search result doesn't offer a delete option -- only open and properties. Properties shows created and modified time (correctly) and a blank icon. I can also chose to open the item, in which case it gives me: "The alias 'media' can't be opened because the original item can't be found. Delete, Fix, or OK."
Help » General » rm: cannot remove : Input/output error [SOLVED] « previous next » Print Pages: [1] Go Down Author Topic: rm: cannot remove : Input/output error [SOLVED] (Read 13641 times) Archie Global Moderator Super Villain Posts: 10967 Eureka! PCLinuxOS! rm: cannot remove : Input/output error [SOLVED] « on: July 28, 2014, 08:45:22 AM » I was in the middle of transferring a directory with a whole bunch of files onto a (NTFS) USB removable drive when the power went off. Tough luck for me, I didn't have the battery. When power resumed, I booted up, press Esc and noted that the journal was fixed. I plugged the USB removable and decided to resume the transfer. Since the files were of different sizes, I tried to copy the file, no go. Then I tried to delete the files that were copied, no go. I tried to delete the directory, no can do. I tried to do the same on a root terminal, nope that didn't happen.I read that the files/filesystem were most probably corrupted when the power went out, or disk hardware issues. Searches on the Internet advised to do a scandisk. Ubuntu suggested using Wndows Scandisk .... bleh. I have ntfs-3g installed on my system but...Code: [Select]root@pclinuxos ~ > fsck /dev/sdb1
fsck from util-linux 2.22.2
fsck: fsck.ntfs: not found
fsck: error 2 while executing fsck.ntfs for /dev/sdb1
root@pclinuxos ~ > So before I bring this drive over to my place of work and scandisk it, I read from this site that either ntfs-3g or ntfsprogs might do it. I already have ntfs-3g installed and it didn't work. I install ntfsprogs, which removed ntfs-3g and ntfs-config, and that didn't work either.Any suggestions? « Last Edit: July 28, 2014, 08:41:21 PM by Archie » Logged Since 2006 | LiCo 401868 i14 PCLinuxOS Tester Super Villain Posts: 23844 MLUs Forever! Re: rm: cannot remove : Input/output error « Reply #1 on: July 28, 2014, 08: