LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2012, 08:50 PM   #1
rlx
Member
 
Registered: Jul 2009
Location: Montréal
Distribution: Slackware customized
Posts: 50

Rep: Reputation: 13
Boot fails at fsck but I get no error when I run fsck myself. new install on ssd.


Hi,

I installed Slackware14 64bit on a new SSD partition. Initially everything went fine and I could boot and run Linux. After tuning the system and rebooting I eventually got in this situation where the boot hangs saying,

/sbin/e2fsck: Is a directory while trying to open /
The superblock could not be read or does not describe a correct
Ext2 filesystem. ...

Now, I login as root and type

fsck -C /dev/sdb4

The answer is,

ssd204: clean ...

In fact when I boot from another partition, I can mount and use that same partition without any kind of warning or problem.

During that same period I was attempting to clone Windows7 from my tabletPC on another partition of the same disk and being unsuccessful I ended up installing Windows8. I presumed that those attempts might have damaged the Linux partition. So I started over, wiping off the Linux partition, formatting, and reinstalling Slackware. I had kept a copy of the etc directory from my first install since it takes some time to setup everything and I reinstalled the etc files I had earlier modified.

Would any one have some insight to share as to what might possibly make 'fsck' fail during the boot and it is reporting no error when I run it myself?

By the way, the disk is detected all right at boot time and I can access it when I login as root when the file system is mounted read only.

Thanks for any clue.
 
Old 12-02-2012, 02:29 PM   #2
rlx
Member
 
Registered: Jul 2009
Location: Montréal
Distribution: Slackware customized
Posts: 50

Original Poster
Rep: Reputation: 13
[SOLVED] Boot fails at fsck but I get no error when I run fsck myself. new install on ssd.

The problem was an incorrect entry in '/etc/fstab'. The file read,

/sdb4 / ext4 noatime,discard,errors=remount-ro 1 0

while it should have been

/dev/sdb4 / ext4 noatime,discard,errors=remount-ro 1 0

What triggered this problem to happen after I had succeeded my first install of Slackware is that I had been a bit creative when I initially wrote the partition table of the disk. I gave the first partition to Windows, then created partitions 3 and 4 (no partition 2 in between). I should have created partition 2 at that time but Linux did not complain and I left that open until I needed partition 2. Later when I ran Windows7 repair from the repair USB, Windows7 Repair renumbered the partitions from 1 3 4 to 1 2 3. After that Linux did not boot since /sdb4 had become /sdb3 and I did not notice. Then I started making mistakes when correcting 'fstab' and that was the problem. Sorry about this. I add this just for the record in case someone else falls in the same trap. I boot with GRUB2 instead of LILO.

Last edited by rlx; 12-02-2012 at 06:39 PM. Reason: Clarification
 
  


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
Boot error fsck.reiserfs failed Run Manually anerusmc Linux - Newbie 5 11-03-2009 07:34 PM
fsck fails with dual boot sharing /home reakinator Linux - General 1 06-16-2008 03:21 PM
fsck fails during boot masch Linux - General 3 09-25-2004 10:38 AM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
Boot error fsck.reiserfs failed Run Manually anerusmc Linux - Software 0 02-21-2004 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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