Looking for file system that won't corrupt files on hard reboot
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Looking for file system that won't corrupt files on hard reboot
Ok - here's the story. I've been using debian sarge for the past month or so (probably a bit longer), and every time my computer locks up (to the point where i have to use the reset button), i'm unable to use part of my system. One type apt-get wouldn't work, another time kde wouldn't load, another time, X would freeze before the mouse cursor became visible. From what i gather, this is caused by file corruption when i press that evil button of doom labeled 'reset.' The only 2 file system's i've used were Ext3 and reiserfs. I've tried compiling with Sysrq, but it doesn't seem to work for me (yes, cat /proc/sys/kernel/sysrq shows 1).
anyway, i could use a nice file system that won't corrupt so easily (or that can take constant hits from the reset button). or i could use some utilities to run to make sure everything is OK. Hey, you know what, my hard drive might be going bad, is there a program i could use to check it?
is there a better distrubition i should try? (i'm trying gentoo, but the installition period of a couple days isn't too appealing)
would mounting /usr with the ro attribute help? the problem is, i haven't ever been able to get to the point where i want to lock the /usr partition (i'm always finding more toys to play with)
case temp 101 F (i don't like noise in my case!)
cpu temp 120 F
hard drive 45 C ( (1.8 x 45) + 32 = 113 F ) or maybe it was 55 C. (131 F) uh oh. i think my hd is too hot. I have it suspended by bungee cords to quiet it down, but that makes it run hotter because heat can't dissapte through the metal of the case (but it can't resonate through the metal either)
Any file system will take damage in a hard shutdown, but why are you reseting? The only time I had that problem was when a bad driver that caused the keyboard to lock up. I was usually able to shutdown with the mouse but one of the times I couldn't I had to try to shut off power between hard drive activity. I missed, but that is what backups are for. If you have a working keyboard hit alt/ctrl/back space, this will drop out of X so you can log back in with KDM or GDM or take you to a shell where you will login and startX or Halt to shut down.
Originally posted by pjbgravely Any file system will take damage in a hard shutdown, but why are you reseting? The only time I had that problem was when a bad driver that caused the keyboard to lock up. I was usually able to shutdown with the mouse but one of the times I couldn't I had to try to shut off power between hard drive activity. I missed, but that is what backups are for. If you have a working keyboard hit alt/ctrl/back space, this will drop out of X so you can log back in with KDM or GDM or take you to a shell where you will login and startX or Halt to shut down.
well the whole system freezes. i try hitting alt ctrl backspace 5 times over a span of a minute, and then i try hitting alt ctrl delete 5 times over a span of a minute. then i try alt sysrq S alt sysrq U and alt sysrq B, with no luck. i then am forced to give in and press reset. :-/ what filesystem will take the least damage?
do you think there is a possible hardware problem? this same computer with a hotter running athlon xp 1600+ ran rock solid in windoze.
are there particular circumstances when your system locks up solid? On my laptop I get it from time to time when playing video using the Xv extension (xine, mplayer).
Also, after a hard reboot, are you told that the system did not shutdown properly and asked if you wanna run a file system check? I found that when I let it do a file system check AND let it 'repair' it, I',m likely to end up with a non-working system. Nowadays, I just let it boot without fschecking and it's usually fine. I use ext3 and I do make full system backups from time to time just in case.
i've tried ext3 and reiserfs. i run apt-get update && apt-get upgrade daily. :-/ It happens in X (kde 3.2.2) with juk running. The sound gets stuck in a short loop. How do i set it to boot without fschecking?
I know it sounds dumb not to run repairs but, trust me, I get better results when NOT repairing (it's ext3).
anyhow, you should be asked if the system thinks a file system check is needed even if it is not scheduled (ext3 is set to run an fsck from time to time).
Originally posted by quatsch
anyhow, you should be asked if the system thinks a file system check is needed even if it is not scheduled (ext3 is set to run an fsck from time to time). [/B]
I use XFS for most of my partitions. It caches a lot more than other filesystems and in my opinion it is fast on my system. For XFS to work to the best it can, you need atleast 512 megabytes of RAM. When I had a problem about three months ago with a corrupted partition table that mplayer destroyed, all I did is recreate the partition table and ran xfs_repair. After a few seconds, I got my files back. Some files were in lost+found but every file was perfectly intact even the file that mplayer is making. I had problems with ReiserFS trying to bring it back from the dead. I had no success with corrupted ReiserFS partitions.
I had problems with my Maxtor drive and its going to be the last Maxtor drive that I'm going to own (I'm sorry Maxtor fans). I enable the no write error with hdparm so the Maxtor drive will not detect bad sectors. IMO, its best to make the filesystem to do this. Usually its hardcoded in filesystems already and they should be smart enough to detect bad sectors.
Every once in a while run sfdisk to print out your partition table information and do backups on files that you can not recreate.
BTW, haimeltjnfg, never mix memory brands because it creates an unstable system.
I just reinstalled debian on clean a clean reiserfs formatted drive last night, and this morning, i turned it on, and the mouse wasn't working so x wouldn't load. i modprobed the drivers (and the mouse worked with gpm) and typed startx. X froze. i couldn't toggle the num lock or caps lock or anything like that. i tried alt ctrl backspace. alt ctrl delete. alt sysrq s (then alt sysrq u, alt sysrq b), and nothing worked. I decided to wait, so i took a shower, and came back. it was still frozen. I had no choice but the press the reset button (unless their is something else i could do that i don't know about) it restarted fine. x won't work cuz the mouse driver modules aren't loading, so i had to loud them manually. this time i restarted kdm instead of startx. i get into kde open up konquerer and resize the window. x freezes. i can't move anything, hitting caps lock or num lock will not change the status of their respective lights, alt ctrl del/ backspace or anything else won't work. it's been locked up for a good 7 minutes now. i guess i have no choice but to hit the reset switch.
arghh!
i'll list everything i have:
ecs k7s5a
axp 2200+
256 crucical cas 2.5 @ 2
256 kingston cas 3 @2
pioneer dvd-rom atapi drive (using scsi-emulation) hdd
non-name dvd-rw/cd-rw drive (using scsi-emulation) hdc
maxtor 60 gb 7200 rpm drive hda
logitech internet navigator keyboard hooked up by ps/2
microsoft wheel mouse optical by usb (needs hid, mousedev modules)
nvidia geforce 3 (using nvidia supplied modules for x - are these known to be unstable?)
sb live value using alsa's snd-emu10k1
winmodem (not used.)
this system has always been extremely stable (never, ever, ever crashed before)
Last edited by haimeltjnfg; 05-29-2004 at 11:14 AM.
Take out either the crucial or the kingston memory module. Next buy same brand and model memory. Then take out the Soundblaster LIVE! because it tends to take over your computer's bus. On many of my systems the Soundblaster LIVE! corrupts data. Since I put the Turtle Beach Santa Cruz in my computer, I'm not having any problems. Using a usb mouse is ok, but to make your mouse reliable use PS/2. I think your mouse comes with a USB to PS/2 converter.
The most computer problems comes from bad power supplies and noisy AC lines. This is what I read from IBM reports. Use either Enermax, Power and Cooling, Zalman, or Antec power supplies. Do not forget to buy an in-line UPS too.
BTW, you may want to dust the system with compressed air.
Originally posted by Electro Take out either the crucial or the kingston memory module. Next buy same brand and model memory. Then take out the Soundblaster LIVE! because it tends to take over your computer's bus. On many of my systems the Soundblaster LIVE! corrupts data. Since I put the Turtle Beach Santa Cruz in my computer, I'm not having any problems. Using a usb mouse is ok, but to make your mouse reliable use PS/2. I think your mouse comes with a USB to PS/2 converter.
The most computer problems comes from bad power supplies and noisy AC lines. This is what I read from IBM reports. Use either Enermax, Power and Cooling, Zalman, or Antec power supplies. Do not forget to buy an in-line UPS too.
BTW, you may want to dust the system with compressed air.
i fried my motherboard mouse ps2 port, so i'm stuck with usb. i have an antec 300w power supply
VCore 1: +1.50 V (min = +1.42 V, max = +1.57 V)
VCore 2: +2.48 V (min = +2.40 V, max = +2.61 V)
+3.3V: +3.33 V (min = +3.14 V, max = +3.46 V)
+5V: +4.94 V (min = +4.74 V, max = +5.24 V)
+12V: +11.96 V (min = +11.40 V, max = +12.60 V)
-12V: -12.46 V (min = -12.60 V, max = -11.41 V) ALARM
-5V: -5.54 V (min = -5.21 V, max = -4.76 V) ALARM
Stdby: +5.07 V (min = +4.74 V, max = +5.24 V)
VBat: +2.03 V
fan1: 2556 RPM (min = 0 RPM, div = 8)
fan2: 0 RPM (min = 3013 RPM, div = 8) ALARM
Case Temp: +27 C (low = +15 C, high = +45 C) sensor = thermistor
CPU Temp: +36 C (low = +15 C, high = +45 C) sensor = thermistor
Anyway, i think the reason for the instablity is because of nvidia's drivers/mixed with an amd athlon processor. I'm using the open source drivers right now and i haven't had a crash since i switched to nv (and i've tried to provoke one with script-fu in gimp (9000 pixel logo anyone?))
can somebody explain how to run xfs_repair, etc? i know you can run mount -o remount,ro /usr to remount the /usr partion as ro, but how can you unmount them?
if i get another crash i will try out what you recommended. thanks for the advice!
Last edited by haimeltjnfg; 05-30-2004 at 10:12 AM.
I just has a crash on SuSE 9.0. I have two partitions for SuSE, / and /home both ReiserFS. I was deleting a 700MB ISO from my home partition and during the process the computer rebooted, I couldn't imagine what had happened, I was thinking I was rooted, and when SuSE came back up I wasn't surprised to see many kernel panics. I figured the kernel was messed because at every reboot I would get a different panic message. I booted into Mandrake 9.2 and tried to mount SuSE /, it mounted, I checked things out and it seemed ok. So I mounted SuSE home to get really recent backups when the computer rebooted while mounting. So i tried it again and the Mandrake locked up, so the next time I just used Mandrake to edit SuSE's fstab to remove home. I then I rebooted into SuSE as root and all was well except the home partition. I then ran fsck.reiser and fixed the partition, mounted it, copied it to another drive and then rebooted. Nothing was lost, it is a mystery why the computer rebooted because of a file system error. Also why did SuSE have a kernel panic when all that was wrong was a bad partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.