LinuxQuestions.org
Review your favorite Linux distribution.
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 02-05-2008, 06:15 AM   #1
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
help with FSCK


hi there,
i am having an usual newbie problem and just don`t understand the man page..i am trying to make a disk check, actually scandisk that we know on windows. i read fsck would do the same on linux..but i just can not get how to? as i said, i just don`t understand the man page

mount the drive? dev hda? which parameters?
i hope someone might help..thanks a lot
 
Old 02-05-2008, 06:50 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Do the following:
Code:
umount /dev/hda1
fsck -y /dev/hda1
mount /dev/hda1
This should check the first partition and automatically repair errors.
You might not be able to check all partitions on a running system but you can boot into a single-user mode and then check the partitions as shown above.
 
Old 02-05-2008, 08:20 AM   #3
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Original Poster
Rep: Reputation: 15
thanks for your reply,

for the sake of the forums, i am giving a feedback here
**
to check which partitions i have, i used the command

Code:
fdisk -l
just as you said, i have unmounted the drive,fsck'd it and again mounted the drive but it was only possible for hda3. for the other i switched to single-user mode. I am using Suse, the command was (is it linux standart?)

Code:
init 1
for the newbies who would wanna know, numbers are runlevels, if you want to go back to KDE type init 5, init 6 would restart. who -r gives the current running level.

Anyway on runlevel 1 i have repeatet the same above and it has fixed my problem..again thanks a lot.
 
Old 02-05-2008, 09:54 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,601
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,

For system maintenance with a check and repair for a Linux file system I like to always pass the single command on a re-boot. I have a stanza in my 'lilo.conf' for just that. You will be certain not to have any problems with repair in a single user mode.

A new user should 'man fsck' to understand the command.
 
  


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
How to use fsck? odiseo77 Linux - Software 4 11-07-2009 02:13 AM
fsck help mokku Linux - Server 6 08-22-2007 11:45 AM
how to use fsck dsids Linux - Newbie 5 03-16-2006 08:30 AM
Need help with fsck Grill Master Linux - Newbie 2 07-05-2005 06:37 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 08:51 AM


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