LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-02-2008, 01:37 PM   #1
proNick
Member
 
Registered: Apr 2005
Posts: 104

Rep: Reputation: 15
how to check root partition?


hi all!

how can i check my root partition (using fsck.ext3), when it is mounted? can i do it only using some cd distribution or on system boot?


tnx in adv!
 
Old 10-02-2008, 01:43 PM   #2
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
you could boot up with a live cd, make sure the drive isnt mounted and run fsck.
 
Old 10-02-2008, 01:57 PM   #3
proNick
Member
 
Registered: Apr 2005
Posts: 104

Original Poster
Rep: Reputation: 15
ok, but i can not check it in runtime? like windows scan disk?
 
Old 10-02-2008, 02:05 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

The drive that you want to perform maintenance on must not be mounted. If you use a LiveCD then make sure the drive is not mounted before you do a 'fsck' on the filesystem.

If you pass to the kernel the 'single' parameter at boot then you should be able to perform maintenance on the hdd.

BTW, poor comparison for 'ok, but i can not check it in runtime? like windows scan disk?'. That's why GNU/Linux is stable as compared to M$ Windows. Linux maintenance of hdd requires that you not have the chance of anyone writing to the device you are working on. That's one of the reasons why you use the 'single' user mode.
 
Old 10-02-2008, 06:33 PM   #5
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
If you run /sbin/shutdown with the -F swotch it will force fsck at the next bootup.
 
Old 10-02-2008, 06:36 PM   #6
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
If you run "/sbin/shutdown -Fr now" the machine will do a fsck on reboot.
The "F" switch forces fsck and the "r" asks for immediate reboot.
 
  


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
GRUB won't load windows partition - root (hd0,0), Filesystem type unknown partition.. cillm527 Linux - Software 4 04-27-2008 06:44 AM
How do I force check the root partition ? Michaelx Linux - General 3 08-20-2007 09:49 PM
System uncleanly unmounts root partition, causing disk check everytime I boot bmccorm2 Mandriva 2 02-14-2007 07:22 AM
How to disable DMA in Partition check and Creating root device ComputeWorldwide Linux - Newbie 0 05-09-2006 07:58 PM
Partition check, check double check Vincentius Linux - General 0 12-25-2004 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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