replacing cd drives: filesystem corruption
Hello!
I have been using Slackware Linux for 2 years now. I notice that almost each time (not sure if actually 100% each) when I remove, add or replace some of my optical drives or hard drives, I end up with a filesystem corruption. After the manipulation with the hardware, on booting dma is usually disabled for the hard drives. I seem to solve this issue by manually removing the /etc/udev/rules.d/70-persistent-cd.rules file, as suggested by Changes and Hints. However this is not the only issue. Sometimes the filesystems on some of my hard drive partitions get corrupted. In the worst case scenario so far the "ldconfig" command gave "segmentation fault" and my only option was to reinstall: installpkg did not work. Today I removed my dvd drive because it is out of order - I will have it repaired. After the removal I checked that in BIOS everything is ok. When I rebooted, I encountered the usual no dma errors. I edited the /etc/udev/rules.d/70-persistent-cd.rules by removing the entry for the missing drive. This did not seem to work, as on the next reboot lilo was messed, there was again no dma. I tried to remove the file but got the message: "Cannot remove: stale NFS file handle". Luckily googling suggested running "fsck -f" on the affected partition. This solved almost all the issues. However some settings of my desktop have disappeared.(?) Now I tend to be afraid to mess up with the hardware. Why do such things happen? Do I have to check and repair the filesystems each time I open the box? Regards and best wishes, Martin Ivanov |
Hi,
It sounds like you are corrupting your filesystem possibly by not performing shutdowns or flushing the buffers properly. Or other issues like memory faults or such. Run 'memtest86' to check that out. This could cause faults within a filesystem whenever buffers are flushed an the data is not valid. The hardware configuration should not corrupt the filesystem when a ROM device is removed from the chain unless the filesystem is on that device. :) |
Quote:
I do remember however, one thing associated with my RAM memory chip. When I bought it I tried incorrectly inserting it into the slot on the motherboard which resulted in a small capacitor (condensator) detaching from the memory chip. However, the memory is correctly recognized at its full capacity. And memtest does not find any faults. Could that be the reason for those strange issues I am having whenever I replace my hard or optical drives? |
Do your drives support hot-plug? Seems you are removing drives without turning off your computer.
Also plese don't use corrupted hardware, e.g. your memory module. |
Quote:
|
Hi,
Quote:
As for filesystem selection, that is personal taste. I prefer ext2/3, old and reliable. I've rarely had a problem with my filesystem when using ext2/3. (knock on wood ...) :) Try ext2/3 for your filesystem an see what happens. You could use your backup to restore to the new space. :) |
Thank you for your replies. Onebuck, this is my meminfo:
Code:
marto@marto:~$ cat /proc/meminfo It seems that I should take my computer to a service, do I not? However I have no problems at all unless I open the box. |
Hi,
Quote:
|
All times are GMT -5. The time now is 04:55 PM. |