Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using Red Hat Linux, and recently I'm experience files missing issue. All the files missing from one of the sub-folder in home directory. My IS admin told me the files missing could be due to bad sector, is this possible? Are we able to determine whether there is any bad sector in the hard disk?
What is the name of the folder, and what kind of files are we talking about?
I have never seen a bad sector result in files missing form one folder, ONLY from one folder, and not causing far greater problems. I HAVE seen files with certain names deleted by 'clean-up' software that was designed to reduce wasted space, and did a little more than intended.
Its most likely to be a mistaken delete/clean-up, as above.
There's a very small possibility that there is a bad disk block containing the dir file itself.
First of all; stop using the disk or the disk blocks may get overwritten by other processes.
You can now try to recover using eg Photorec or Testdisk.
Of course, you SHOULD have backups.
Also, you could try a fsck on the disk; it would have to be unmounted first. This will put any 'lost' blocks into the /lost+found dir on the same disk for you.
It will also mark the bad blocks not to be used in future
This (fsck) may happen anyway if you reboot.
What is the name of the folder, and what kind of files are we talking about?
I have never seen a bad sector result in files missing form one folder, ONLY from one folder, and not causing far greater problems. I HAVE seen files with certain names deleted by 'clean-up' software that was designed to reduce wasted space, and did a little more than intended.
Actually the folders contains all types of files, and all owned by different user. So can I say that unless it is being intentionally deleted, otherwise all the files and folder will not suddenly missing due to bad sector?
Its most likely to be a mistaken delete/clean-up, as above.
There's a very small possibility that there is a bad disk block containing the dir file itself.
First of all; stop using the disk or the disk blocks may get overwritten by other processes.
You can now try to recover using eg Photorec or Testdisk.
Of course, you SHOULD have backups.
Also, you could try a fsck on the disk; it would have to be unmounted first. This will put any 'lost' blocks into the /lost+found dir on the same disk for you.
It will also mark the bad blocks not to be used in future
This (fsck) may happen anyway if you reboot.
Hi Chris, thanks for the info. Do we need root password to perform all the task above?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.