LinuxQuestions.org
Help answer threads with 0 replies.
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 03-25-2006, 04:36 AM   #1
Ander
Member
 
Registered: Apr 2003
Location: Vancouver
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Checking your main partition


I know you can check a ReiserFS partition's integrity with fcsk.reiserfs, but the partition must be unmounted. So how can you check your main partition, which you've booted from, and which you can't unmount while booted?

(I guess I can boot from a live CD and check from there, but I thought there might be a simpler way.) Thanks!
 
Old 03-25-2006, 04:59 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by Ander
I know you can check a ReiserFS partition's integrity with fcsk.reiserfs, but the partition must be unmounted. So how can you check your main partition, which you've booted from, and which you can't unmount while booted?

(I guess I can boot from a live CD and check from there, but I thought there might be a simpler way.) Thanks!

it is checked automatically after some 30 boots.

regards
 
Old 05-05-2006, 02:14 AM   #3
Ander
Member
 
Registered: Apr 2003
Location: Vancouver
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Well, let's hope there's nothing wrong with it till then, eh?

Actually, though, wouldn't that just give it a lot more time to become further messed up?
 
Old 05-05-2006, 02:40 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,883

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
Isn't that why you use a journalled fs ???.
Must be an equivalent to tune2fs to allow you to force a check at the next re-boot surely.
 
Old 05-05-2006, 03:26 AM   #5
Ander
Member
 
Registered: Apr 2003
Location: Vancouver
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Isn't that why you use a journalled fs ???
Meaning, what am I worried about? Yeah, I guess you're right. Actually, I don't remember why I started this thread... Having become so used to running chkdsk every other day in Window$, I was probably just paranoid and/or curious.
 
Old 05-05-2006, 10:12 AM   #6
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
reiserfs checks the transaction log when an fs is mounted. As for /, if something looks iffy then the rc boot script will drop you into a shell to run fsck manually (at least, Slackware does). In any case, you can run reiserfsck with the fs mounted if it's mounted read-only.
 
Old 05-06-2006, 05:05 AM   #7
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Rep: Reputation: 31
Do these:
- init 1 **ATTENTION: u must have physical access to the linux - all services/networking will go down ***
- remount the file system as read only
- check it
- remount as rw
- init X , X is your old runlevel
 
  


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
doing away with XP - need to resize main linux partition, but how? DJCF Linux - Newbie 3 02-24-2005 01:20 PM
expand main partition to another hard drive? halo14 Red Hat 3 08-09-2004 04:54 PM
Something about linux main and swap partition julian_s Linux - Newbie 2 01-18-2004 11:30 PM
partition checking error lzyking Linux - Software 6 02-23-2003 06:05 PM
main partition now swap...? arlothemoo Linux - General 1 10-23-2002 01:18 AM

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

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