LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 02: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, 02:43 PM   #2
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
you could boot up with a live cd, make sure the drive isnt mounted and run fsck.
 
Old 10-02-2008, 02: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, 03:05 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
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, 07:33 PM   #5
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 247

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

Rep: Reputation: 31
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


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 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 07:44 AM
How do I force check the root partition ? Michaelx Linux - General 3 08-20-2007 10:49 PM
System uncleanly unmounts root partition, causing disk check everytime I boot bmccorm2 Mandriva 2 02-14-2007 08:22 AM
How to disable DMA in Partition check and Creating root device ComputeWorldwide Linux - Newbie 0 05-09-2006 08:58 PM
Partition check, check double check Vincentius Linux - General 0 12-25-2004 06:47 AM


All times are GMT -5. The time now is 06:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration