Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-11-2007, 05:30 PM
|
#1
|
Member
Registered: Jun 2001
Location: Grapevine, Texas
Distribution: Ubuntu 14.04, CentOS 7
Posts: 102
Rep:
|
How to run FSCK and error in FSTAB
I wanted to run FSCK on my primary drive, but I got an error, so I backed out..
Code:
jason@SAMSON:~$ fsck
fsck 1.39 (29-May-2006)
WARNING: bad format on line 11 of /etc/fstab
e2fsck 1.39 (29-May-2006)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Also, you can see the bad format on line 11 of my FSTAB file, but I don't get this...there IS NO line 11 here...
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=5e7da045-0340-44be-9b8f-d894a9a3bfe9 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=bc9fd14a-eafb-44a8-93c7-1ba9edd4cc95 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
#Ydrive
There is nothing under #Ydrive, could this be the problem? I count that line as line 10.
|
|
|
04-11-2007, 07:32 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
The blank line under #Ydrive may be the problem. Go to the end of the #Ydrive line and hold your del key to see if it clears the blank line.
As for running fsck. You don't run fsck while your drives are mounted. You need to boot into single user mode and then run fsck.
+++ The Listing below is just an example, adapt it for your own use +++
a) Take down system to single user mode and unmout system
Let us say you would like to run fsck on /home (/dev/sda3):
init 1
umount /home
umount /dev/sda
fsck /home
OR
fsck /dev/sda3
OR
e2fsck -y /dev/sda3
I hope this helps.
Last edited by {BBI}Nexus{BBI}; 04-11-2007 at 07:50 PM.
|
|
|
04-11-2007, 07:35 PM
|
#3
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage."
Another way to run e2fsck is to boot a live CD, make sure the filesystem is umounted, and then run e2fsck.
-----------------
Steve Stites
|
|
|
04-11-2007, 09:16 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,359
|
Just issue shutdown with "-F" - on reboot Ubuntu will honour the request for a forced fsck.
The manpage will have info.
|
|
|
04-12-2007, 06:30 AM
|
#5
|
Member
Registered: Jun 2001
Location: Grapevine, Texas
Distribution: Ubuntu 14.04, CentOS 7
Posts: 102
Original Poster
Rep:
|
Thanks for all the tips. Does the FSCK check the entire volume? I thought it was like a CHKDSK in Windows and checked the whole drive. But after reading what {BBI}Nexus{BBI} said, I wonder if it is just for one directory at a time.
|
|
|
04-12-2007, 11:50 AM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"Does the FSCK check the entire volume? I thought it was like a CHKDSK in Windows and checked the whole drive. But after reading what {BBI}Nexus{BBI} said, I wonder if it is just for one directory at a time."
fsck checks a partition.
---------------------
Steve Stites
|
|
|
All times are GMT -5. The time now is 11:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|