LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-27-2007, 01:09 PM   #1
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Rep: Reputation: 1
Repaired FileSystem ?


Hi

computer shutdown improperly and when i start up, linux go through all the check and after the check there is an error occured:

i enter the password for maintence and after that i got this msg" Repaired Filesystem" #


which command should i enter?. i already try "y' bash command not found, and "yes" show all black screem"

Thanks

p.s. redhat linux
 
Old 12-27-2007, 01:35 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,971

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Which filesystem are you using, eg ext3, reiserfs, xfs, ect? You generally need to run some version of "fsck" depending on which filesystem you are using.
 
Old 12-27-2007, 02:36 PM   #3
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by kilgoretrout View Post
Which filesystem are you using, eg ext3, reiserfs, xfs, ect? You generally need to run some version of "fsck" depending on which filesystem you are using.
I think its fsck
 
Old 12-27-2007, 04:05 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,900
Blog Entries: 43

Rep: Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138
Hi,

Quote:
Originally Posted by bartsimpson View Post
I think its fsck
fsck is a utility command that is used to check & repair a filesystem;

Quote:
excerpt from 'man fsck'

FSCK(8) FSCK(8)

NAME
fsck - check and repair a Linux file system

SYNOPSIS
fsck [ -sAVRTNP ] [ -C [ fd ] ] [ -t fstype ] [filesys ... ] [--] [ fs-
specific-options ]

DESCRIPTION
fsck is used to check and optionally repair one or more Linux file sys-
tems. filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a
mount point (e.g. /, /usr, /home), or an ext2 label or UUID specifier
(e.g. UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root). Nor-
mally, the fsck program will try to handle filesystems on different
physical disk drives in parallel to reduce the total amount of time
needed to check all of the filesystems.

If no filesystems are specified on the command line, and the -A option
is not specified, fsck will default to checking filesystems in
/etc/fstab serially. This is equivalent to the -As options.
You can aways 'man' a command to get the full understanding of the command. We are asking what filesystem you formated your system partition(s)? ext2/3, reiserfs, xfs or whatever.

The maintenance should be performed in single user mode.
 
Old 12-28-2007, 09:41 AM   #5
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 1
Thanks for replied

I am new to linux. is there anyway i can skip the check during start up? i have to go through the check because the computer shutdown not propery. Everytme when i start up the system is goes through all the check and there is a "FAIL" step at the end.

After its "fail" ask me to enter root password to mantaience check after i enter the password and there is msg"repaired filesystem" i enter "y" is said "bash command is not found" is there a command to repaired?

or can i skip this check?


Thanks advance
 
Old 12-28-2007, 11:58 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,900
Blog Entries: 43

Rep: Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138
Hi,

Quote:
Originally Posted by bartsimpson View Post
Thanks for replied

I am new to linux. is there anyway i can skip the check during start up? i have to go through the check because the computer shutdown not propery. Everytme when i start up the system is goes through all the check and there is a "FAIL" step at the end.

After its "fail" ask me to enter root password to mantaience check after i enter the password and there is msg"repaired filesystem" i enter "y" is said "bash command is not found" is there a command to repaired?

or can i skip this check?


Thanks advance
You really need to get this repaired! You can pass the 'single' parameter to the kernel at the boot prompt. This way you will be able to repair the file system with 'fsck'.

YOU still haven't mentioned or posted what file system you are using. When you created or installed your distribution (?? which one) the file system (which one ??) was created.
 
Old 12-28-2007, 12:52 PM   #7
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 1
Hi

Sorry for my stupiq question How do i know which file system? i am new to linux and i am not the one who installed.
 
Old 12-28-2007, 01:52 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,900
Blog Entries: 43

Rep: Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138
Hi,

Quote:
Originally Posted by bartsimpson View Post
Hi

Sorry for my stupiq question How do i know which file system? i am new to linux and i am not the one who installed.
No such thing as a stupid question!

You can see what file systems are on your system by looking at the '/etc/fstab' file;

Quote:
:~# cat /etc/fstab
/dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext3 defaults 1 1
/dev/hda5 /home ext3 defaults 1 2
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda7 /var ext3 defaults 1 2
/dev/hda8 /tmp ext3 defaults 1 2
/dev/hda9 /arc1 ext3 defaults 1 2
/dev/hda10 /arc2 ext3 defaults 1 2
/dev/hda11 /arc3 ext3 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
The above is an example of a '/etc/fstab'. The third column of the above shows the type.

Quote:
excerpt from 'man fstab'
FSTAB(5) Linux Programmer's Manual FSTAB(5)

NAME
fstab - static information about the filesystems

SYNOPSIS
#include <fstab.h>

DESCRIPTION
The file fstab contains descriptive information about the various file
systems. fstab is only read by programs, and not written; it is the
duty of the system administrator to properly create and maintain this
file. Each filesystem is described on a separate line; fields on each
line are separated by tabs or spaces. Lines starting with '#' are com-
ments. The order of records in fstab is important because fsck(8),
mount(8), and umount(8) sequentially iterate through fstab doing their
thing.

The first field, (fs_spec), describes the block special device or
remote filesystem to be mounted.

For ordinary mounts it will hold (a link to) a block special device
node (as created by mknod(8)) for the device to be mounted, like
`/dev/cdrom' or `/dev/sdb7'. For NFS mounts one will have one will have
<host>:<dir>, e.g., `knuth.aeb.nl:/'. For procfs, use `proc'.

Instead of giving the device explicitly, one may indicate the (ext2 or
xfs) filesystem that is to be mounted by its UUID or volume label (cf.
e2label(8) or xfs_admin(8)), writing LABEL=<label> or UUID=<uuid>,
e.g., `LABEL=Boot' or `UUID=3e6be9de-8139-11d1-9106-a43f08d823a6'.
This will make the system more robust: adding or removing a SCSI disk
changes the disk device name but not the filesystem volume label.

The second field, (fs_file), describes the mount point for the filesys-
tem. For swap partitions, this field should be specified as `none'. If
the name of the mount point contains spaces these can be escaped as
`\040'.

The third field, (fs_vfstype), describes the type of the filesystem.
Linux supports lots of filesystem types, such as adfs, affs, autofs,
coda, coherent, cramfs, devpts, efs, ext2, ext3, hfs, hpfs, iso9660,
jfs, minix, msdos, ncpfs, nfs, ntfs, proc, qnx4, reiserfs, romfs,
smbfs, sysv, tmpfs, udf, ufs, umsdos, vfat, xenix, xfs, and possibly
others. For more details, see mount(8). For the filesystems currently
supported by the running kernel, see /proc/filesystems. An entry swap
denotes a file or partition to be used for swapping, cf. swapon(8). An
entry ignore causes the line to be ignored. This is useful to show
You should 'man fstab' to get a full understanding of the use for the '/etc/fstab'. 'man' is your friend!
 
Old 12-28-2007, 02:54 PM   #9
bartsimpson
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 1
How can i do that? i am not able login to the desktop "terminal" After the check asking me to repaired or control "d" which is reboot
 
Old 12-28-2007, 08:14 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,900
Blog Entries: 43

Rep: Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138
Hi,
Quote:
Originally Posted by bartsimpson View Post
How can i do that? i am not able login to the desktop "terminal" After the check asking me to repaired or control "d" which is reboot
The easiest way would be to use the install cd to boot the system as if you were going to install.

After you get to the login then from the cli (command line);

Code:
~#mkdir /slacktemp                   #temporary mount point
~#mount /dev/your_device /slacktemp  #this is the device you installed to
~#cat /etc/fstab |most               #this will display fstab
BTW, you should start searching LQ or google for some of these type(s) of questions since they have been answered before.

Last edited by onebuck; 12-28-2007 at 08:16 PM.
 
  


Reply

Tags
command, found


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
Reinstalled Win XP and repaired Grub, now I can't boot Linux or Windows. Please help. MegaSvensk Linux - Newbie 27 10-13-2007 05:12 PM
Can a Linux install be repaired? jacatone Linux - Software 1 09-06-2007 05:32 AM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM

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

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