LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2005, 06:31 AM   #1
PeaceTank
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 55

Rep: Reputation: 15
Exact procdure for using fsck [solved]


I'm a bit confused on the exact procedure for using fsck. I need to check my system, but when I go down to init 1 and try to fsck it still tells me that I'm mounted read/write, so it can't do anything. What is the exact procedure that I should follow for using fsck?

Last edited by PeaceTank; 03-13-2005 at 05:39 PM.
 
Old 03-13-2005, 06:42 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
use the remount option with mount, make sure you mount it read-only (see man mount).

as far as the procedure, it depends on the file system you are using. The file system utilities differ a little on syntax and usage, so make sure you pass the --help option before you do anything.
 
Old 03-13-2005, 06:58 AM   #3
PeaceTank
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 55

Original Poster
Rep: Reputation: 15
Okay, but I don't see how to use 'remount'. I'm trying to fsck my root files system (/dev/sda3, reiserfs), but I can't figure out how to remount read only. If you could clarify what you mean I would appreciate it.
 
Old 03-13-2005, 07:14 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do you still have your gentoo install cd?
 
Old 03-13-2005, 07:26 AM   #5
PeaceTank
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 55

Original Poster
Rep: Reputation: 15
I believe so.
 
Old 03-13-2005, 07:35 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you can either use that ( boot it, when you get to the prompt do "reiserfsck --help" to get your options ( I believe the gentoo cd has the file-system utils on it - most distro's do))

or try:

mount -n -o remount,ro /

to try to remount the filesytem ro

keep in mind, you'll have to offload it first ( turn off the swap, unmount the proc file-system, devpts, and whatever else is mounted)

the easiest way is usually the install cd route.
 
Old 03-13-2005, 08:11 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
PeaceTank,

It may be easier to let the system do a fsck at boot time:

shutdown -Fr in a console will force fsck to run as the machine is rebooted.
 
Old 03-13-2005, 05:39 PM   #8
PeaceTank
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 55

Original Poster
Rep: Reputation: 15
Yeah, so I tried using the forced fsck on shutdown, but it didn't catch the error for some reason. I used the Live CD method and it fixed everything up great! Thanks!
 
  


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
exact procedure of mount? j0hn_galt Linux - Newbie 5 08-11-2005 02:16 PM
Exact HD-to-HD copy samtheviking Fedora 7 02-25-2005 05:32 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
making an exact cd copy coolamit78 Linux - Software 2 04-04-2004 02:03 PM
grep [exact phrase] chrisfirestar Linux - General 2 02-09-2004 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 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
Open Source Consulting | Domain Registration