LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-25-2010, 11:14 AM   #1
nickjbanks
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Rep: Reputation: 0
fsck error during start up


I get an error during start-up

fsck failed. Please repair manually

If I Ctrl D to carry on everything boots up ok as far as I can tell.

If I try and fix:
# fsck /dev/hdb1
fsck 1.37
e2fsck 1.37
/dev/hdb1: clean, 38/7340032 files, 283481/1465320 blocks

# fsck /dev/hda1
fsck 1.37
fsck: fsck.swap not found
fsck: Error 2 while executin fsck.swap for /dev/hda1

Not really sure what is going on

Xebian on Xbox, 2xhdd
 
Old 05-25-2010, 11:42 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
You can't fsck a swap partition. So what's the problem?
 
Old 05-25-2010, 11:42 AM   #3
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
The fsck.swap error is because there is no fsck necessary on a swap filesystem.

The first error is because the filesystem was clean. You need to run e2fsck -f <filesystem that failed> to fix the filesystem errors.

Regards,

Alunduil
 
Old 05-25-2010, 11:55 AM   #4
nickjbanks
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
So what's the problem?
That's what I'm not sure about. Its halting on start-up and stating
"fsck failed. Please repair manually". The last thing it did was check /dev/hdb1 and declared it clean.
 
Old 05-25-2010, 12:09 PM   #5
nickjbanks
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alunduil View Post
The first error is because the filesystem was clean. You need to run e2fsck -f <filesystem that failed> to fix the filesystem errors.
Is that bad? I presumed clean was good. I have run e2fsck -f /dev/hdb2. I get 5 passes and it says it is checking. Still get the error of start up, though.
 
Old 05-25-2010, 12:57 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
What does it say before "fsck failed. Please repair manually"? That will tell you exactly what needs to be checked.
 
Old 05-25-2010, 02:30 PM   #7
nickjbanks
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
What does it say before "fsck failed. Please repair manually"? That will tell you exactly what needs to be checked.


Checking all file systems...
fsck 1.37
/dev/hda1 is mounted. e2fsck: Cannot continue, aborting.


/dev/hdb1: clean, 38/7340032 files, 283481/14653280 blocks

fsck failed. Please repair manually.
 
Old 05-25-2010, 02:54 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
That's funny. Post your /dev/hda1 line from /etc/fstab
 
Old 05-25-2010, 03:03 PM   #9
nickjbanks
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
That's funny. Post your /dev/hda1 line from /etc/fstab
/dev/hda1 none swap sw 0 0
 
Old 05-25-2010, 03:14 PM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
try
Code:
/dev/hda1 swap  swap    defaults 0 0
?
 
Old 05-25-2010, 03:32 PM   #11
nickjbanks
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Original Poster
Rep: Reputation: 0
That didn't do it. While I was in fstab I had a little play with some other bits.

Originally I added these two lines to try and mount a couple of shared drives:

/dev/hda2 /xA2share ext3 defaults 2 1
/dev/hdb1 /xB1share ext3 defaults 2 1

When I removed the first line it booted up OK. I'm not really sure what they mean, I was copying a bit blindly. What would be the correct way to mount the shared folder?
 
Old 05-25-2010, 03:45 PM   #12
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Can you post your entire fstab file?

How did you edit the file?
 
Old 05-25-2010, 04:03 PM   #13
nickjbanks
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Original Poster
Rep: Reputation: 0
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 swap swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto defaults,user,noauto 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
#/dev/hda2 /xbox1share ext3 defaults 2 1
/dev/hdb1 /xbox2share ext3 defaults 2 1



The weird thing is the two shared folders are still accessible with the line hashed out. Only from my laptop over wifi but not on the pc that is plugged into the same hub as the xbox, though.

I have been editting using vi /etc/fstab
 
Old 05-25-2010, 04:26 PM   #14
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
There's the problem, you have two /dev/hda2's. Correct the device address for the hashed out line.
 
  


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
fsck error on boot up OC_eobard Ubuntu 2 04-10-2007 02:20 AM
fsck error Bjwebb Linux - Software 3 02-02-2007 01:20 PM
fsck permission error ganja_guru Linux - Software 6 03-03-2005 07:14 AM
fsck error! bullwinkle Linux - Newbie 1 01-04-2005 12:11 PM
fsck error during boot fastly Linux - Software 3 03-17-2004 03:06 PM

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

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