I've got some bad sectors pending reallocation (based on smartmontools reports), and I'm trying to find out which file the sector is currently related to so that I can restore from a backup or such or determine how safe it is to write over it.
# debugfs
debugfs 1.41.14 (22-Dec-2010)
debugfs: open /dev/sda3
debugfs: testb 28475580
Block 28475579 marked in use
debugfs: icheck 28475580
I am running debugfs on one of the partition /dev/sda6. After that I am placed in a debugfs prompt. I did stat on some file using its inode number. I want to redirect the output of stat command to some file which can read later. Currently the output is being thrown on the screen. Does anybody has any idea regarding how to do this?
debugfs /dev/sda6
debugfs: stat
I accidentally deleted my documents folder in my home directory last sunday. I am desperately trying to recorver it with it content files.
Hi All,
I want to be able to correlate the data I'm getting from tracing through the DebugFS (particularly syscalls and sched_switch events) with data I am gathering elsewhere. I'm running Ubuntu 10.10 on an Intel i5 machine.
The problem is that the time information in DebugFS doesn't seem to be from any available function, and doesn't seem to even be using the same frequency.
I found out the inode information of the most important directory of my server was corrupted, and I couldn't access its files.
My file system is EXT3
I tried fsck on the image of partition, no success.
I tried dd_rhelp, it doesn't any effect.
I tried debugfs , run rdump corrupted-inode-dir native-dir , but it doesn't work without any error.
How can I recover my data in this directory?
I found out the inode information of the most important directory of my server was corrupted, and I couldn't access its files.
My file system is EXT3
I tried fsck on the image of partition, no success.
I tried dd_rhelp, it doesn't any effect.
I tried debugfs , run rdump corrupted-inode-dir native-dir , but it doesn't work without any error.
How can I recover my data in this directory?
Hello,
Could somebody help me out how to change the filetype of a file? You know, when you type ls -l in a terminal, you get a long description of each file in that directory. The first letter indicates what that file is (- for regular file, d for directory, l for link, etc)
My problem is that I have a data directory in /home that shows up like this:
Hi,
I just installed 11.2, clean install due to wrong partition type (Extended instead of primary).
With 11.1 I could read and write data DVDs and CDs. Since 11.2 install unable to read or write data CDs.
Code:
mount /dev/sr0
mount: can't find /dev/sr0 in /etc/fstab or /etc/mtab
/etc/mtab:
Hi all,
I installed a second HD, and formatted it to ext4. I gave it the "/backup" label. I am trying to figure out how to mount it so that I can run cron to backup my home folder onto it once a week.
This is what the fstab looks like now