EBADF error in Linux

Discussion in 'General Questions' started by MikeA5, Dec 30, 2017.

Tags:
  1. MikeA5

    MikeA5 Bit poster

    Messages:
    4
    fix EBADF error
     
  2. Elizabeth Anderson

    Elizabeth Anderson Member

    Messages:
    27
    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:
    Code:
    mount -o ro /proc
    /proc is the dynamically generated file system while boot process

    Mount the file system in read-write mode as:
    Code:
    mount -o remount,rw /
    Delete the /dev/null file:
    Code:
    m -f /dev/null
    Use correct inode to replace it as:
    Code:
    mknod -m 666 /dev/null c 1 3
    Remount the file system in read-only mode and restart the system

    For resolving the file system and disk block issues, execute fsck command. Run the command when the file system isn't mounted. If still the problem persists, reformat the volume and restore from backup. For backup problems, use Linux Recovery tools. Such utilities perform Data Recovery Linux using powerful scanning algorthms and provide graphically rich user interface.
     
    MikeA5 likes this.
  3. MikeA5

    MikeA5 Bit poster

    Messages:
    4
    Do you know about the best Linux Recover Tool?
     
  4. Elizabeth Anderson

    Elizabeth Anderson Member

    Messages:
    27
    TestDisk & PhotoRec 7.0-WIP, Data Recovery Software are the best Linux Recovery tools you can use to recover the data.
     
    MikeA5 likes this.
  5. MikeA5

    MikeA5 Bit poster

    Messages:
    4
    Thanks, Eliza.
     

Share This Page