Cannot Get Current Directory I O Error
Contents |
known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle. Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All solaris ls i o error Thanked Posts Go to Page... learn linux and unix commands - unix shell
The Request Cannot Be Performed Because Of An I O Error
scripting I/O error on Solaris sparc machine Solaris Thread Tools Search this Thread Display Modes mount i/o error solaris #1 10-02-2012 prash358 Registered User Join Date: Sep 2011 Last Activity: 16 October 2013, 4:04 PM EDT Location: Sydney, Australia Posts: 117 Thanks: 11 Thanked 0 Times in 0 Posts I/O error on how to check i/o error in solaris Solaris sparc machine I am getting below error when trying to find for the files under /var/spool/ directory. Code: unix@test1 >ls -la /var/spool /var/spool: I/O error Please advise Last edited by Scott; 10-04-2012 at 12:59 PM.. Reason: Code tags Remove advertisements Sponsored Links prash358 View Public Profile Find all posts by prash358 #2 10-02-2012 jim mcnamara ...@... Join Date: Feb 2004 Last Activity: 5 October 2016,
Ls Input/output Error
8:08 AM EDT Location: NM Posts: 10,829 Thanks: 449 Thanked 968 Times in 899 Posts Can you show what you get when you try this series of commands Code: #does this command at least show spool as a directory and run as a directory? ls -lad /var # if it does try cd /var/spool # if no errors try this and show full output, including errors ls -l I think the file system may be damaged. /var/run is a tmpfs file system, it should be there. What is the version of Solaris, please. Or the output of Code: uname -a The Following User Says Thank You to jim mcnamara For This Useful Post: prash358(10-04-2012) Remove advertisements Sponsored Links jim mcnamara View Public Profile Find all posts by jim mcnamara #3 10-04-2012 prash358 Registered User Join Date: Sep 2011 Last Activity: 16 October 2013, 4:04 PM EDT Location: Sydney, Australia Posts: 117 Thanks: 11 Thanked 0 Times in 0 Posts Thank you for the update. Code: unix@test1 >ls -lad /var drwxr-xr-x 46 root sys 1024 Apr 2 2007 /var unix@test1 >cd /var/spool cd: error retrieving current directory: getcwd: cannot access parent directories: I/O error unix@test1 >uname -a SunOS test1 5.10 Generic_141414-01 sun4v sparc SUNW,Sun-Fire-T200 Code: pkaturi@us1096ldap01 >df -h Filesyste
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 company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best http://www.unix.com/solaris/202243-i-o-error-solaris-sparc-machine.html answers are voted up and rise to the top “Input/output error” when accessing a directory up vote 39 down vote favorite 9 I want to list and remove the content of a directory on a removable hard drive. But I have experienced "Input/output error": $ rm pic -R rm: cannot remove `pic/60.jpg': Input/output error rm: cannot remove `pic/006.jpg': Input/output error rm: cannot remove `pic/008.jpg': Input/output error rm: cannot remove `pic/011.jpg': Input/output http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory error $ ls -la pic ls: cannot access pic/60.jpg: Input/output error -????????? ? ? ? ? ? 006.jpg -????????? ? ? ? ? ? 006.jpg -????????? ? ? ? ? ? 011.jpg I was wondering what the problem is? How can I recover or remove the directory pic and all of its content? My OS is Ubuntu 12.04, and the removable hard drive has ntfs filesystem. Other directories not containing or inside pic on the removable hard drive are working fine. Added: Last part of output of dmesg after I tried to list the content of the directory: [19000.712070] usb 1-1: new high-speed USB device number 2 using ehci_hcd [19000.853167] usb-storage 1-1:1.0: Quirks match for vid 05e3 pid 0702: 520 [19000.853195] scsi5 : usb-storage 1-1:1.0 [19001.856687] scsi 5:0:0:0: Direct-Access ST316002 1A 0811 PQ: 0 ANSI: 0 [19001.858821] sd 5:0:0:0: Attached scsi generic sg2 type 0 [19001.861733] sd 5:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB) [19001.862969] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled [19001.865223] sd 5:0:0:0: [sdb] Cache data unavailable [19001.865232] sd 5:0:0:0: [sdb] Assuming drive cache: write through [19001.867597] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled [19001.869214] sd 5:0:0:0: [sdb] Cache data unavailable [19001.869218] sd 5:0:0:0: [sdb] Assuming drive cache: write through [19001.891946] sdb: sdb1 [19001.894713
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 company Business Learn more about http://stackoverflow.com/questions/16848231/python-in-enthought-canopy-ioerror-no-such-file-or-directory hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. https://msdn.microsoft.com/en-us/library/system.io.path(v=vs.110).aspx Join them; it only takes a minute: Sign up Python in Enthought Canopy: IOError No such file or directory up vote 5 down vote favorite 3 Does anyone use Enthought Canopy? It keeps telling me IOError. But I o error am pretty sure the text file name is right and it is in the same directory with the python file, and the code works well in other python IDLE. Don't know where is wrong. Any suggestions? Thank you!! ---> 21 inFile = open('words.txt', 'r') 22 words = inFile.read().split() IOError: [Errno 2] No such file or directory: 'words.txt' python enthought share|improve this question asked May 31 '13 at 0:57 Aimee 2814 Make sure it's not 'words.txt.txt'. –Ashwini i o error Chaudhary May 31 '13 at 0:59 is it present in the same directory as the python file ? –karthikr May 31 '13 at 1:06 Thank you guys, punchagan's answer works for me! –Aimee May 31 '13 at 1:34 add a comment| 2 Answers 2 active oldest votes up vote 17 down vote accepted UPDATE: The following hack is not required in Canopy versions 1.0.3 and greater. Right click inside the Python pane, and select Keep Directory Synced to Editor. The working directory of the python shell, isn't synchronized with the editor open. So, your python shell's working directory is probably not the same as your python file. To change your shell's directory to your python file's directory: Open the python file in question. Right click inside the python pane and select the option "Change to Editor Directory" Hope that helps. The solution above is indeed correct. Unfortunately it is necessary even in the current version of Canopy - Version: 1.3.0 (64 bit) share|improve this answer edited Apr 24 '14 at 16:51 Community♦ 11 answered May 31 '13 at 1:22 punchagan 1,583616 1 By default, in the ipython shell in Canopy, your working directory, where words.txt will be found, is in your user home directory. But your python file is probably somewhere else. In ipython, "pwd will usually "Print the Working Directory" and "cd xxx" will let you
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. .NET Framework Class Library System.IO Namespaces System.IO System.IO Path Class Path Class Path Class BinaryReader Class BinaryWriter Class BufferedStream Class Directory Class DirectoryInfo Class DirectoryNotFoundException Class DriveInfo Class DriveNotFoundException Class DriveType Enumeration EndOfStreamException Class ErrorEventArgs Class ErrorEventHandler Delegate File Class FileAccess Enumeration FileAttributes Enumeration FileFormatException Class FileInfo Class FileLoadException Class FileMode Enumeration FileNotFoundException Class FileOptions Enumeration FileShare Enumeration FileStream Class FileSystemEventArgs Class FileSystemEventHandler Delegate FileSystemInfo Class FileSystemWatcher Class HandleInheritability Enumeration InternalBufferOverflowException Class InvalidDataException Class IODescriptionAttribute Class IOException Class MemoryStream Class NotifyFilters Enumeration Path Class Path Fields Path Methods PathTooLongException Class PipeException Class RenamedEventArgs Class RenamedEventHandler Delegate SearchOption Enumeration SeekOrigin Enumeration Stream Class StreamReader Class StreamWriter Class StringReader Class StringWriter Class TextReader Class TextWriter Class UnmanagedMemoryAccessor Class UnmanagedMemoryStream Class WaitForChangedResult Structure WatcherChangeTypes Enumeration TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Path Class .NET Framework (current version) Other Versions Visual Studio 2010 .NET Framework 4 Silverlight Visual Studio 2008 .NET Framework 3.5 .NET Framework 3.0 .NET Framework 2.0 .NET Framework 1.1 Performs operations on String instances that contain file or directory path information. These operations are performed in a