LinuxQuestions.org
Help answer threads with 0 replies.
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 01-16-2006, 03:29 AM   #1
enrico.pisoni
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Rep: Reputation: 0
problem restarting linux


Hi
I use Fedora Core 3 on a Pc, and I have a problem.
My Pc is not using UPS, and it's always switched on (day and night).
When there are problems of electricity, and I arrive to work in the morning and the Pc was switched off in a "violent way" (for example there was a problem in the electricity line of my enterprise), I switch on my Pc and I must wait for more or less 2 hours, waiting a check that linux make on my Hard Disk (that are of 160 Gb).

Is there a way to make quicker the restart of the pc when was switched off "uncorrectly"? For example deactivating this kind of control?

Thank you!

Bye
Enrico
 
Old 01-16-2006, 03:54 AM   #2
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
I thought the check runs on boot ONLY when you press "Y" at the point when it wants to check. Don't press anything, let the system boot normally and it will pass the check.

This is how it works on my system [CentOS & Fedora].

Boby
 
Old 01-16-2006, 03:56 AM   #3
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
Are you using a journaling filesystem, such as ext3? If you're using ext2, I'd set it up with a journal, which would then make it an ext3 filesystem. Recovery and checks are much faster since it uses a journal prior to committing data to the hd.

To add a journal to an ext2 filesystem on partition hda2 (unmounted), do:
Code:
tune2fs -j /dev/hda2
Then be sure to update /etc/fstab , to reflect the new filesystem (ext3). You can mount it as an ext2 filesystem, but then it won't be using the journal and your recovery time will continue to be very long.
 
Old 01-16-2006, 04:07 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
What file system are you using - something like ext2? You might want to try a journalling file system - ext3 is a convenient upgrade from ext2 but reiserfs is running on a couple of my PCs at the moment and seems very reliable. Usually what happens for me is that the journal gets replayed and the boot continues without much delay.
 
Old 01-16-2006, 05:55 AM   #5
enrico.pisoni
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
using ext2

Yes, at the moment I'm using Ext2.
So reboot is so slow for this reason...

So you suggest me to change to Ext3...

I'm a little ignorant about file systems....so I ask you some questions:

1) Is it a dangerous change? (I have a lot of data on this HardDisk...very important data)...so is there the risk of losting data?

2) which is the correct procedure to make the change?
a) umount partition
b) ...

thanks a lot to everyone...

Bye
Enrico
 
Old 01-16-2006, 06:58 AM   #6
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
Changing filesystems isn't a dangerous operation, since it's generally just copying data from one directory to another - with the 'other' directory happening to be a different filesystem. The FS merely determines how the data is stored and indexed on the physical disk, and as the kernel handles all of the storing and retrieving, it's not something you have to worry about. You can't generally just unmount the partition and remount it as something else - as the sequence of 1s and 0s that are file descriptors, etc to ext2 are gibberish to reiserfs.

'Converting' ext2 to ext3 is very easy though, since it's the same underlying filesystem with the addition of a journal. If you wanted to create a reiserfs filesystem, you'd have to have a partition of the same size as your currently ext2 one to copy the data over to, which is a little awkward.

tune2fs doesn't seem to require that the partition is umounted before operating on it, so you can execute WindowBreaker's command during normal operation, then edit the /etc/fstab file and you're good. The journal won't come into play until the partition is remounted, though, so you may want to reboot if it's acceptable to get all the partitions journalled. If not, you'll have to selectively umount-remount all the partitions you can, though your root partition will probably stay unprotected (until the next crash, after which it will be remounted with a journal).
 
Old 01-16-2006, 07:16 AM   #7
allein2005
LQ Newbie
 
Registered: Dec 2005
Location: Brazil
Distribution: Debian and Slackware
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Hello!
I run my network in Linux, And now I am looking for a software to report
the broadband consume. In case someone has experience on such software
and can pass me any kind of help, any site where I can find it, I thank in advance very much
allein2005.
 
  


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
restarting x jcombs_31 Slackware 3 12-27-2004 01:07 PM
URGENT: Problem restarting my windows hemtah Linux - Newbie 8 08-14-2004 02:33 PM
Problem Restarting/Shutting Down minm Linux - Hardware 1 06-28-2003 09:05 PM
Restarting Linux usp8riot Linux - General 4 04-28-2003 08:36 PM
Starting / Stopping / Restarting Services in VA Linux? abell Linux - General 1 11-15-2002 01:17 PM

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

All times are GMT -5. The time now is 01:02 AM.

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