Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.