LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2005, 12:02 PM   #1
hrwusesdsl
LQ Newbie
 
Registered: Nov 2005
Location: southern california
Posts: 2

Rep: Reputation: 0
Rebooting And Unmounting


On some Linux faq i read that you should NOT do a hard reboot [[ reset button ]] if you
have drives mounted. Does Linux somehow lock drives so they can be damaged upon
hard reboot? Under good ol DOS your hard drive is ALWAYS mounted [[my understanding]]
and i often did RESET without worry......
 
Old 11-30-2005, 12:35 PM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
The problem relates more to 32 bit OS's caching disk writes. Dos didn't do any disk caching, so hitting reset wouldn't corrupt anything (unless you were in a rare long disk write process at the time of reset). Linux, Windows, Most Unix's, and other 32 bit multitasking OS's utilize disk caching techniques to speed up user performance on a system by writing to the disk between user app cycles. The chances of corrupting a disk by hitting reset in Linux, thus, are far greater than in Dos, but are not a definite result. For example, hitting reset on a system that is sitting idle, with virutally no cpu load, and no swap file usage, has a lower chance of corruption than a system that is under a greater load, and writing to disk constantly.

To better help fight against disk corruption, most file systems implemented in Linux set a flag on the partition when mounting it r/w, so that if a reset does occur, it will automatically check to make sure nothing got clobbered. Using a journaling file system (ext3, JFS, Reiserfs, etc) makes the system more stable, as it can store a disk write command in a journal, then mark the journal entry as completed once the actual write has finished. When rebooting a running system with a journaling filesystem, the system detects a dirty partition, then looks through the journal for incomplete writes, backing out any changes that were incomplete.

Hope this information was helpful.
 
Old 11-30-2005, 12:53 PM   #3
hrwusesdsl
LQ Newbie
 
Registered: Nov 2005
Location: southern california
Posts: 2

Original Poster
Rep: Reputation: 0
Very good answer. Thank you muchly.
 
Old 11-30-2005, 01:25 PM   #4
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / Debian
Posts: 91

Rep: Reputation: 15
I dont have such a good reply as my knowledge is limited, but I can tell you of my experience.

I often did and still do hard resets, and I sometimes had a problem, once a BIOS problem which had to do with memory (it failed to boot up after i did this).

I think if you have only one PC and this must be working, dont make hard reboots, the time is worth to make slow reboots
But otherwise, its extremely safe to hard reboot, especially if you dont care about data loss anyway (having external hdd, or second internal IDE hdds for instance)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble unmounting 70k51k Linux - Networking 4 08-09-2003 02:32 AM
Unmounting??? DiZASTiX Linux - Newbie 3 05-13-2003 10:04 PM
Error unmounting??!! Bamse123 Linux - Newbie 3 05-12-2003 04:16 AM
Unmounting the cd? mrobi Linux - General 3 02-16-2003 01:23 AM
CD unmounting Paul_assheton Linux - General 14 04-16-2002 03:37 AM


All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration