LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-29-2002, 04:09 AM   #1
soda
LQ Newbie
 
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15

Rep: Reputation: 0
Rebooting Linux quickly


Is there a way of rebooting Linux quickly without data loss and other complications?

Last edited by soda; 11-29-2002 at 04:17 AM.
 
Old 11-29-2002, 04:27 AM   #2
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
You are a real newbie ar'n't you. Don't matter, I was to () . Just do "reboot" as root and you'l see you compu being reboot
 
Old 11-29-2002, 04:33 AM   #3
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
For reboot try: shutdown -r "now"
For halt try: shutdown -h "now"
 
Old 11-29-2002, 04:37 AM   #4
soda
LQ Newbie
 
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

thanks but I wasn't asking for a simple reboot. I am not that new to Linux :-)
I was asking for a QUICK reboot (like reboot -f) but without data loss and other things that could cause problems for the linux system etc.

Thanks
 
Old 11-29-2002, 05:13 AM   #5
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
I don't understand what you mean.
 
Old 11-29-2002, 09:34 AM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Quote:
Originally posted by soda
I was asking for a QUICK reboot (like reboot -f) but without data loss and other things that could cause problems for the linux system etc.
It sounds almost as if your "regular" reboot comes with "data loss and other things that could cause problems". How exactly are you rebooting now?
 
Old 11-29-2002, 09:54 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
The quickest way to reboot that I know of is to do a ctrl-alt-delete !!
 
Old 11-29-2002, 11:28 AM   #8
soda
LQ Newbie
 
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by stickman
It sounds almost as if your "regular" reboot comes with "data loss and other things that could cause problems". How exactly are you rebooting now?
Just by typing "reboot". What I meant was there is the option 'shutdown -f' or 'reboot -f' which means fast reboot/shutdown. When I use regular reboot, it takes some time before the linux system actually reboots but when I use fast reboot by 'reboot -f' option it reboots immediately, but the next time booting into my linux system it will report errors, probably because important files were not saved before rebooting. Now: how could a safe reboot be used with the option -f ?

Last edited by soda; 11-29-2002 at 11:35 AM.
 
Old 11-29-2002, 11:55 AM   #9
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Are the 30 seconds you save worth the hassle? Not to mention you add 3 extra keystrokes!!! That will comsume some of the 30 seconds you are saving!!!
 
Old 11-29-2002, 02:47 PM   #10
soda
LQ Newbie
 
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15

Original Poster
Rep: Reputation: 0
I was asking for a way to do this, not for your opinion whether you like it or not. This was an informational question.
 
Old 11-29-2002, 03:03 PM   #11
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Lighten up, Buttercup.
 
Old 11-29-2002, 03:08 PM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
Alright, I wasn't going to say anything but keep it cool guys.

soda,

First off, this is a public forum and free to use. No matter if you like it or not, a question like yours and like many others, there is always going to be someone who might bring up their own opinion.

cmfarley19,

Don't call anyone names in anyway, shape or form. A post like yours is only going to be taken in the wrong way.

So I hope this thread stays on topic from this point on.
 
Old 11-29-2002, 03:18 PM   #13
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Fair enough.
 
Old 11-29-2002, 04:01 PM   #14
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
The hard drives need to by synced and unmounted before reboot if you
don't want to worry about data loss. If you use a journaling filesystem
like ext3 or reiserfs, you don't have to worry as much about data loss
when you poweroff/reboot w/o syncing/umounting the disks. However,
to be safe, you need to kill all processes, sync, then umount the disks,
otherwise a process may write to disk after sync, possibly while you are
doing a poweroff/reboot. If that happens, there is possibility of data
corruption.
The real answer is that if you want to be able to shut down in a few
seconds, you are probably going to have to deal with the possibility of
data loss. Start using a journaling filesystem, and you'll reduce that
possibility, but you will probably never eliminate it.
 
Old 11-29-2002, 04:25 PM   #15
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
Ok, I used to shutdown with the -f flag... but since my root partition's inodes got corrupted I stopped it...

However, if you accidentally overwrite some datablocks you can't recover them... but the superblock and inodes table have backups (by default) that can ve recoverd with fsck -b

If you do an unclean shutdown (without unmounting the drives) they'll be marked as not clear and when you start the next time fsck will run and scan them... that is the most important feature of the shutdown command (that it unmounts all the drives) And it kills all the processes.. so you are trading speed versus reliability.

As i see it, it is more important to keep our data safe than to save a few seconds each shutdown...

Save the penguin
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux box keeps rebooting!! Ext3 Linux - Software 6 10-25-2005 09:22 PM
linux + rebooting = null; nadroj Linux - General 3 03-17-2005 12:54 PM
Rebooting Locked up Linux Machine? matt80 Linux - General 6 05-19-2004 09:35 AM
linux keeps rebooting? Ckret_01 Linux - General 9 12-13-2003 11:32 AM
linux machine rebooting begeek Linux - General 0 04-24-2002 12:58 PM

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

All times are GMT -5. The time now is 12:40 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