LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-01-2006, 05:45 PM   #1
Nullhellfire
LQ Newbie
 
Registered: Feb 2005
Location: Ohio
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
Inproper Shutdown Help


Sometimes my girlfriend will get mad and inproperaly shutdown my linux laptop. Well when it starts back up it doesn't do the scandisk thing how can I get it to scandisk.
 
Old 08-01-2006, 06:11 PM   #2
NSWKim
LQ Newbie
 
Registered: Jul 2006
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 15
Smile

Nullhellfire,

"scandisk" in linux would more commonly be known as "fsck", which means "File System Check". Generally when a linux distro boots up it will mount the drives and note if partitions were not unmounted properly when the machine powered down. If they were not then generally a fsck is 'forced' to verify all the data and errors are automatically corrected. If you have a gui that comes up immediately on boot (like in Ubuntu or SuSe) you may not even see this taking place. Also, in some journalled filesystem like reiserfs it won't auto fsck as long as the journal matches up with what it sees on the partition.

If you want to manually run a check of your partitions try going into single user mode by adding "single" to the end of your kernel line in grub before booting or boot off of a rescue CD. When you get started up you will be able to run 'fsck /dev/hdd1' from the command line, where hdd1 is the drive and partition you wish to scan.
 
Old 08-01-2006, 06:34 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by NSWKim
...If you want to manually run a check of your partitions try going into single user mode by adding "single" to the end of your kernel line in grub before booting or boot off of a rescue CD.
Three issues with that, but the info is generally correct:
  1. You don't use Slackware, so please preface things like the above with: "In distro FOO, you..." . Otherwise, confusion to a newbie is guaranteed.
  2. Slackware uses lilo by default, not grub. And depending on how it was setup during install, there may not be any menu.
  3. CD1 of the Slackware install set is a 'liveCD'. Just follow the instructions for booting your install at the 'boot:' prompt. (Instructions are printed right above where it says 'boot:')
This is NOT a flame on you, NSWKim, but please know that different distros use different bootloaders and runlevels. For example, if you edited initab in your distro, what does runlevel 3 do? Or 4? In Slackware, 3 is CLI, and 4 is for the GUI. grub is available to install on Slackware, but a newbie prob won't have it installed.

It's mostly a question of "Ask first, assume last"
 
Old 08-01-2006, 10:05 PM   #4
stitchman
Member
 
Registered: Dec 2005
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
If she is doing this by just pressing the powerbutton on your laptop, recompile your kernel to include the ACPI stuff, that way when she presses the button it will do a proper shutdown, and you can laugh at her foiled childishness.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
'shutdown now' successful, 'shutdown -r now' fails Stomatella Linux - Hardware 4 05-23-2006 10:45 PM
"Inproper ioctl reading somedirs", dirs are readonly pingu Debian 5 05-17-2005 04:22 AM
Please help on how to save services shutdown or shutdown from the terminal. wambuzz Linux - General 2 03-11-2005 07:38 AM
Linux full shutdown vs. manual shutdown? LQtoto Linux - General 9 01-26-2005 06:21 PM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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