LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-26-2013, 03:12 PM   #1
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Rep: Reputation: Disabled
CentOS boot error


Hello guys,

I installed older kernel (2.6.28) from sources under CentOS 6.4 (2.6.32). During boot process of kernel 2.6.28 I get an error (please take a look at the attachment).

Can you please advice how to make system boot properly ?

thank you
Attached Thumbnails
Click image for larger version

Name:	centos.jpg
Views:	49
Size:	85.0 KB
ID:	13284  
 
Old 08-26-2013, 11:31 PM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Well, I'm confused. The command it is running assumes a partition has been formatted as an "ext4" partition, and then says that it can't find the partition's "ext2" superblock.

No surprise there...

The first thing that I would do is to drop into the maintenance shell and run "less /etc/fstab". Hit "q" to exit less. (if less isn't installed, try "cat /etc/fstab"). See what it says (and post it here).

And as an experiment, I just ran "fsck.ext2 /dev/sda2" (sda2 has my ubuntu 13 on it, and was only installed to help get my next-to-useless Kodak printer working. So no big loss if I hose it).

BTW, running fsck on a mounted drive is a "Very Bad Idea", and shouldn't be done (my sda2 partition wasn't mounted). I intentionally ran the wrong version of fsck.ext? (the "?" being the version number of fsck, in my case, I should have used "4", but I ran fsck.ext2), and it didn't even phase the partition.

Apparently the linux deities are looking out for us mere mortals (BTW, it mounted just fine).

So the upshot of this is that while fsck.ext4 shouldn't be used on a ext2 partition (or vice-versa), it doesn't seem to hurt it either. So post the output of /ect/fstab so we can see what we are working with.
 
Old 08-27-2013, 02:55 AM   #3
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
I was confused as well. Here is more information:

fstab

Code:
[root@localhost ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Aug 26 20:16:14 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/VolGroup-lv_root /                       ext4    defaults        1 1
UUID=28926ada-c072-4f7d-b433-92d900482b0a /boot      ext4    defaults        1 2
/dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
fdisk -l

Code:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a80d0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        2611    20458496   8e  Linux LVM

Disk /dev/dm-0: 19.9 GB, 19872612352 bytes
255 heads, 63 sectors/track, 2416 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/dm-1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Hope this will help.
 
Old 08-29-2013, 11:26 PM   #4
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Well, looking over your attachment again leads me to believe that fsck.ext4 no longer lives on your HD. And all you did was downgrade your kernel? That shouldn't affect (most) installed programs.

The thing that comes to mind now, is what did you lose in your kernel config? Did one of the settings change and now you aren't getting a necessary module loaded?

2.6.28 doesn't predate ext4, so it's not like it isn't aware of the filesystem.
 
Old 08-30-2013, 12:25 AM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,876
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Not sure if this might be related to your problem, but 2.6.28 was the first kernel with ext4, but it did not include full 64 bit support for ext4. I think the unsupported aspects were mostly related to maximum filesystem size and maximum file size, but might be worth looking into.

Is your system a 64-bit machine?

And if you are using a pre-built kernel, it is possible that it was not built with ext4 support because it was a new feature at the time.

Last edited by astrogeek; 08-30-2013 at 12:26 AM.
 
Old 08-30-2013, 12:51 PM   #6
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Before building kernel i double-checked that ext4 support would be enabled.
My machine is NOT 64-bit.

I suspected one thing, if I boot with the "fastboot" option, there are no problems during the boot process. But I would like to have fs check.
 
  


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
GRUB boot fails returning "Error 15: File not found" on Centos 6.3 LittleMaster Linux - Server 2 05-24-2013 05:01 AM
Centos refuse to boot with elf header error! mr_aliagha Linux - General 1 04-03-2013 06:20 PM
Fatal error, CentOS fails to boot, plan of attack needed Scotsguy101 Linux - General 1 11-18-2011 10:40 AM
Centos boot error windstory Linux - Newbie 3 12-07-2009 06:48 PM
GRUB or harddrive error on centos 5.2 (can't boot) extendedping Linux - Hardware 4 02-08-2009 09:48 PM


All times are GMT -5. The time now is 10:18 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