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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
11-29-2002, 04:09 AM
|
#1
|
LQ Newbie
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15
Rep:
|
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.
|
|
|
11-29-2002, 04:27 AM
|
#2
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
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
|
|
|
11-29-2002, 04:33 AM
|
#3
|
Member
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107
Rep:
|
For reboot try: shutdown -r "now"
For halt try: shutdown -h "now"
|
|
|
11-29-2002, 04:37 AM
|
#4
|
LQ Newbie
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15
Original Poster
Rep:
|
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
|
|
|
11-29-2002, 05:13 AM
|
#5
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
I don't understand what you mean.
|
|
|
11-29-2002, 09:34 AM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
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?
|
|
|
11-29-2002, 09:54 AM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
The quickest way to reboot that I know of is to do a ctrl-alt-delete !!
|
|
|
11-29-2002, 11:28 AM
|
#8
|
LQ Newbie
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
11-29-2002, 11:55 AM
|
#9
|
Member
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228
Rep:
|
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!!!
|
|
|
11-29-2002, 02:47 PM
|
#10
|
LQ Newbie
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15
Original Poster
Rep:
|
I was asking for a way to do this, not for your opinion whether you like it or not. This was an informational question.
|
|
|
11-29-2002, 03:03 PM
|
#11
|
Member
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228
Rep:
|
Lighten up, Buttercup.
|
|
|
11-29-2002, 03:08 PM
|
#12
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
11-29-2002, 03:18 PM
|
#13
|
Member
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228
Rep:
|
Fair enough.
|
|
|
11-29-2002, 04:01 PM
|
#14
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
11-29-2002, 04:25 PM
|
#15
|
Member
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573
Rep:
|
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 
|
|
|
All times are GMT -5. The time now is 12:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|