LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2002, 11:53 PM   #1
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Rep: Reputation: 30
linux more fragile to abnormal shutdown?


Hi,

According to to documentation, when a linux computer shuts down suddenly wihout going through the shutdown process, it may cause your filesystem to corrupt and lose all your data. But in windows it's not like that? Only a scandisk is run after rebooting? Whys that?

thnx
 
Old 03-04-2002, 11:56 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Not exactly true, windows runs scandisk to fix the problems that are created by improper shutdown.


fsck does basically the same thing in Linux.
Linux can be much better if you upgrade to ext3 file system

ext3 keeps a journal file that has disk change info, so when an improper shutdown leaves a file open it can fix the file and recover the system in five seconds or less.

Last edited by DavidPhillips; 03-04-2002 at 11:58 PM.
 
Old 03-05-2002, 01:58 AM   #3
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
But then i have to format my partition, losing everything, dun hav time to do that rightnow.

But in some internet sites it suggests that you can lose everything just by an improper hutdown?
 
Old 03-05-2002, 02:02 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I won't say it's impossible, but I have never encoutered something like this (and I have many Linux machines and they sometimes lose power).
 
Old 03-05-2002, 02:02 AM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I won't say it's impossible, but I have never encoutered something like this (and I have many Linux machines and they sometimes lose power).
 
Old 03-05-2002, 02:11 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Quote:
But then i have to format my partition, losing everything, dun hav time to do that rightnow.
Here's is what you do to convert to ext3

edit /etc/fstab

change ext2 to ext3 and note the /dev/name for the partitions you change

then run this command for each partition you changed in fstab(substitute the proper /dev/name for hdxx)

tune2fs -j /dev/hdxx


then use this command to check it after reboot or remount to make sure it's ext3


cat /proc/mounts

they should say ext3

Quote:
But in some internet sites it suggests that you can lose everything just by an improper hutdown?
that's why you should do it, although loosing everything is a little bit exagerated. You may damage a file or two though

Last edited by DavidPhillips; 03-05-2002 at 02:14 AM.
 
Old 03-05-2002, 02:15 AM   #7
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
it's really unlikely that you'd lose anything during a bad shutdown, unless you're doing some seriously hard-drive intensive stuff. i've had more abnormal shutdowns than i can shake a small carrot at, and i've never lost a file... just had to wait through fsck's...

linux itself isn't vunerable to bad shutdowns anymore than any other o/s - it's just that the most common file system under linux, ext2, is. the flip side of that is that ext2 is MUCH faster than any other filesystem. mainly tho, linux doesn't crash much. power-outtages will be your greatest foe here.
 
Old 03-05-2002, 02:16 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The worst thing I had happen was having to manually run fsck and a badly damaged file got moved to lost&found so I had to restore the file. Luckily it was not a critical file

That's when I decided to go with ext3
 
Old 03-05-2002, 09:13 AM   #9
nikhiljosh
Member
 
Registered: Jun 2001
Posts: 126

Rep: Reputation: 16
Quote:
that ext2 is MUCH faster than any other filesystem
IMHO Reiserfs is better and faster than ext2 when it comes to smaller filesizes like in home PC

give reiserfs a try.
 
Old 03-05-2002, 12:22 PM   #10
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
Quote:
Originally posted by nikhiljosh

IMHO Reiserfs is better and faster than ext2 when it comes to smaller filesizes like in home PC

give reiserfs a try.
i really don't know that much about reiser - i've read some rave reviews about it tho. i was just remembering a benchmarking between ext2 and some other fs's like fat32, NTFS, ect. ext2 left them so far in the dust it wasn't even funny.

ext3 is much easier to switch to from ext2 than reiser is tho... (i think )... if you have an easy way to do it, i'd really like to try it out.
 
Old 03-05-2002, 01:43 PM   #11
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
I personally use ReiserFS on my system, and love it. Have not had a bad message from the file system yet.

I can tell you also that I have also played with ext3, XFS, and there is another journalling one, but ReiserFS seems to be faster.

And to protect against power outages, may I suggest you buy a UPS? You dont need an expensive, fancy one. I have one that will last for 10 minutes, and it was only $50.
 
Old 03-05-2002, 03:12 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Also if you setup your system to power off when the ups battery goes low you will not have to worry.
 
Old 03-05-2002, 07:29 PM   #13
nikhiljosh
Member
 
Registered: Jun 2001
Posts: 126

Rep: Reputation: 16
Reiserfs

Installing Reiserfs on partions like /home /mp3 etc....
is quite easy.
The 2.4 series has builtin support for reiserfs.

1.Compile the Kernel (latest if you have one). Don't especially use earlier ones like 2.4.2 .There r known issues
2.Enable Reiserfs in the filesystems menu.
3.Proceed as usual.
4.Backup the partition which you want to convert.
5.Convert using reiserfsprogs

plz visit www.namesys.com for more info.

What I've been unable to do is to convert the root partition to reiserfs :-(

shadowhacker have you tried this?

Last edited by nikhiljosh; 03-05-2002 at 07:37 PM.
 
Old 03-05-2002, 09:08 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
are you using an initrd on your / for booting
 
Old 03-05-2002, 09:29 PM   #15
nikhiljosh
Member
 
Registered: Jun 2001
Posts: 126

Rep: Reputation: 16
umm..
initrd
what's that?

can u elaborate please?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Abnormal traffic? xathras Linux - Security 4 05-08-2005 04:13 PM
Abnormal font sizes... Nazxul Linux - Software 3 02-06-2005 01:28 PM
Linux full shutdown vs. manual shutdown? LQtoto Linux - General 9 01-26-2005 06:21 PM
installation exit abnormal !!!! meshmesh Linux - General 3 01-27-2004 12:22 PM
Mozilla abnormal exit msteph_hacker Linux - Software 6 11-01-2002 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration