| By Allen Sood | Article Rating: |
|
| July 30, 2009 04:30 AM EDT | Reads: |
27,654 |
In a Linux system, files, blocks, directories, sockets and other items are referred by corresponding file descriptors. If your system is reporting errors that the file descriptor is bad, one of possible causes is that file system is corrupt and thus, you require restoring from backup. But if backup is not valid enough to restore complete information, you need to use advanced Linux Data Recovery applications.
As an instance, you might encounter the below error message with your Linux based system:
“Bad file descriptor”
You might receive this error while trying to access a file or while trying to boot the system.
Cause
Possible reasons for the ‘Bad file descriptor’ error to occur are:
-
Linux systems use a special file, called /dev/null (also called the null device). This file removes all the data that is written to it after reporting that the write process has successfully succeeded. You might receive the above error message if /dev/null has been deleted or overwritten. You can infer this cause when file system is reported as read-only at the time of booting through error messages, such as“/dev/null: Read-only filesystem” and “dup2: bad file descriptor”
-
If you get this error message while trying to access a file, the most prominent causes are file system corruption or damaged disk block(s). In such situations, you also get write errors.
Solution
You need to use these methods to troubleshoot the above behavior:
-
For solving deleted or overwritten /dev/null file issues, you need to replace it with the suitable inode. To do so, follow these steps:
-
-
Boot the system in single-user mode
-
Mount the /proc file system as:
-
mount -o ro /proc
/proc is the dynamically generated file system while boot process
-
Mount the file system in read-write mode as:
mount -o remount,rw /
-
Delete the /dev/null file:
m -f /dev/null
-
Use correct inode to replace it as:
mknod -m 666 /dev/null c 1 3
-
Remount the file system in read-only mode and restart the system
-
To correct file system and disk block issues, execute fsck command. You should run the command when the file system is not mounted. If problem persists, reformat the volume and restore from backup. In case of backup problems, you will need to use Linux Recovery tools. Such utilities perform Data Recovery Linux using powerful scanning algorthms and provide graphically rich user interface.
Stellar Phoenix Linux Data Recovery is a comprehensive data recovery tool for Linux-based system. It supports safe Data Recovery Linux for Ext2, Ext3, and ReiserFS file systems. The application provides you advanced features such as, RAW File Recovery, File Filter, Append File Header etc. It is compatible with almost all Linux distributions including Gentoo, SlackWare, Mandrake, Red Hat, Ubuntu, SUSE etc.
Published July 30, 2009 Reads 27,654
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
- Datalight Releases Industry's Fastest Flash File System Platform for Linux
- Universal Insurance Holdings, Inc. Announces a Typographical Error in Recently Filed Form 10-KSB
- Sentry Select Capital Corp. Announces Error in Sentry Select Commodities Income Trust (TSX: SSJ.UN) Redemption
- Stellar Releases New Update for Stellar Phoenix Linux Data Recovery
More Stories By Allen Sood
Allen Sood is a student of Mass Communication doing research on Linux Data Recovery software.
- Ubuntu-based Open Source Linux Mint Tests KDE Version
- Linux Virtualization and Tired Open Source Myths
- IGEL Supports Red Hat Enterprise Virtualization 3.0
- CloudLinux Announces Support for Atomia
- Amazon Kindle Fire Gets Its Own 'Personal Cloud Desktop' with AlwaysOnPC App Launch
- SPIRIT DSP Receives 2011 INTERNET TELEPHONY Product of the Year Award
- Hadoop Quickstart: Use Whirr to automate standup of your distributed cluster on Rackspace
- Jury Gets Novell Antitrust Case Against Microsoft
- The Utility Infrastructure Security Market 2012-2022: Cybersecurity & Smart Grids
- FORTUNE Magazine Names Rackspace Among “100 Best Companies to Work For”
- EnterpriseDB Announces Availability of Postgres Plus Cloud Database
- iFollowOffice Turns to Virtual Bridges and Savvis for On-Demand Virtual Desktop Services
- i-Technology in 2012: Five Industry Predictions
- Ubuntu-based Open Source Linux Mint Tests KDE Version
- Amazon to Rent Out Supercomputers
- Amazon Émigré Starts Network Monitoring Firm
- HP’s Putting a Back Door in the Itanium Alamo
- Linux Virtualization and Tired Open Source Myths
- CloudLinux Announces Preferred Partner Program
- MapR Pushes the Hadoop Envelope
- Rightware Announces Gaming Performance Benchmark for OpenGL ES 3.0/Halti
- IGEL Supports Red Hat Enterprise Virtualization 3.0
- CloudLinux Announces Support for Atomia
- 3Dconnexion Announces its Newest 3D Mouse - the SpaceMouse Pro
- The i-Technology Right Stuff
- Linux.SYS-CON.com Exclusive: Linus Discloses *Real* Fathers of Linux
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- A Closer Look at Damn Small Linux
- Linus' Top Ten SCO Barbs
- SCO CEO Posts Open Letter to the Open Source Community
- Netscape Co-Founder's 12 Reasons for Growth of Open Source
- Where Are RIA Technologies Headed in 2008?
- *POINT - COUNTERPOINT SPECIAL* What's Wrong with the Open Source Community?
- Introducing "Cooperative Linux" - Linux for Windows, No Less
- Linux.SYS-CON.com Exclusive: What Would UserLinux Look Like?
- Why Recovering a Deleted Ext3 File Is Difficult . . .





















