Solved

Fedora Boot stuck. Inconsistency; Run FSck

Posted on 2011-02-23
30
1,144 Views
Last Modified: 2012-05-11
During boot process i get this error.

images 1: Unexpected inconsistency; Run fsck manually withou -a or -p (FAILED)

an error occured during the file system check

can not set terminal process group(-1):

in appropriate ioctl for device

The filesystem size (according to the blocks super block is 61049000)
The physical size of the device is 61048824 block.

Either the superblock or the partition table is likely to be corrupt.
0
Comment
Question by:aashee
  • 16
  • 14
30 Comments
 
LVL 12

Expert Comment

by:upanwar
ID: 34960230
It seems that you have redused the disk through lvreduce without redusing the filse system. is it ?

If yes then please revert the disk size to its earlir.

If you need any further help, please update.

0
 

Author Comment

by:aashee
ID: 34960247
Hi upanwar,
we have a network of 30 fedora's . and one of user's comptuer is doing like this. i didn't do it.
i don't know how it happened. how to fix it.
0
 

Author Comment

by:aashee
ID: 34960255
how can i increase the size back or how to fix it. i need to do it as early as possible.
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34960280
could you please tell me the filesystem type and layout.
0
 

Author Comment

by:aashee
ID: 34960296
its ext4 and how to find layout ?
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34960316
If you have configuration on your systems then give me output of
df -Th

From one of your system
0
 

Author Comment

by:aashee
ID: 34960366
Filesystem Type size Used  Avail Use% Mount on
/dev/sda1   ext4  40G  6.3G  32G   17%    /
/dev/sda3   ext4  40G  6.3G  32G   17%    /tmp
0
 

Author Comment

by:aashee
ID: 34960406
Hi upanwar,

when i type cat /etc/fstab on this machine having problem.

one entry for this link is

LABEL=images1    /mnt/images1  ext4  default 1 2

this is the entry from file system which looks like to be changed ?

please help
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34960502
We can use resize2fs to resize an ext4 file system, ensure that you are using version 1.41.5 or later of resize2fs. Using any earlier version can result in file system corruption.

Could you please tell me the version of resize2fs so that I can send you the exact command to do this.
0
 

Author Comment

by:aashee
ID: 34960574
resize2fs ver
resize2fs 1.41.10 (10-Feb-2009)
open: No such file or directory while opening ver



when i run above command, i get above error message.

what exact command would i run to resize it ?
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34960678
run
resize2fs --version

I need output of fdisk -l and run e2lable for your partitions to get info that which partition is having label=image.
0
 

Author Comment

by:aashee
ID: 34960739
out of command told by you


resize2fs --version
resize2fs 1.41.10 (10-Feb-2009)
resize2fs: invalid option -- '-'
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [new_size]
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34960841
Its fine. Now please also give the output of df, fdisk -l and run e2lable.

also run parted command and then type print and give me the output.

I am trying to help you out from this situation thats why I am asking so many things from you. I have not found any option to resize a ext4 filesystem with block size so I am also looking for another workaround to help you.

0
 
LVL 12

Expert Comment

by:upanwar
ID: 34960923
If you get the detail that which partion is having lable images 1 then just replace the value of <device name> with the device (sda1 or sda2 or any sdax) and execute the below fiven command.

resize2fs /dev/<device name> 61049000

you are good with the version of resize2fs .

godspeed aashee
0
 

Author Comment

by:aashee
ID: 34961014
Hi Upanwar,
after running fdisk -l ,below is output.

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
units=cylinders of 16065 * 512 = 8225280 bytes

sector size ( logical/physical) : 512 bytes /512 bytes
I/O size (minimam/optional) : 512 bytes/512 bytes
Disk identifier: 0x00096c12

device     boot   start             end             blocks             Id       systems

/dev/sda1  *       1                  5222            41943040    83      Linux
/dev/sda1          5222          6254             8290304       82    Linux swap/solaris
/dev/sda3         6254           38914           262336512   83   Linux

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 head, 63 sectors /track, 30401 cylinders
Units= cylinders of 16065 * 512 = 8225280 bytes

sector size(logical /physical ) : 512 bytes/512 bytes
I/O size(minimal/optimal) : 512 bytes/512 bytes
Disk identifier: 0xayf0e45d

Device Boot start                       Block                Id          systems
/dev/sdb1       1        30401          244196001   83          Linux

Disk /dev/md126: 250.1 GB, 250056015872 bytes
255 heads, 63 sectors/track, 30400 cylinders
Units=cylinders of 16065 * 512 = 8225280 bytes
sectors size(logcial/physical) : 512 bytes/512 bytes
I/O size(minimum/optimal): 512 bytes/512 bytes
Disk identifier: 0xa4f0ed5d

Device         Boot             Start               End               Blocks              Id                Systems
/dev/md126p1                 1                      30401            244196001        83           Linux




0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:aashee
ID: 34961032
when i run e2label /dev/sdb1

Below is result

(Repair filesystem) 16 #  e2label /dev/sdb1
images1

0
 
LVL 12

Expert Comment

by:upanwar
ID: 34961048
execute the below given command.

resize2fs /dev/sdb1 61049000

0
 

Author Comment

by:aashee
ID: 34961051
when i run df
it shows this result

FIlesystem   1k-block                      Used             Available            Use%         Mounted          on
/dev/sda1      41284928             6520732            32667044            17%        /
/dev/sda3       41284928            6520732              32667044          17%          /tmp
0
 

Author Comment

by:aashee
ID: 34961069
After typing parted
and then print, below is output


Model : ATA ST3320620AS (scsi )
Disk / dev/sda: 320GB
sector size ( logical /physical ) : 512 B / 512 B
Partition Table: msdos

Number          Start             End         Size                Type              File                 System        Flags
1                  1049kb           43.0GB     52.9GB         primary          ext4                                     boot
2                  43.0GB           51.4GB      8489MB       primary         linux-swap(v1)
3                    51.4GB          320GB        269GB          primary        ext4


0
 

Author Comment

by:aashee
ID: 34961113
(Repair filesystem) 25 # resize2fs /dev/sdb1 61049000

below is output

resize2fs 1.41.10 ( 10-Feb-2009)
resize2fs: Device or resource busy while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.


please help .its getting on my nerves
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34961141
Can you give me output of your /etc/fstab file and output of runlevel command.

0
 

Author Comment

by:aashee
ID: 34961216
when i do runlevel
it says
unknown

(Repair filesystem) 30 # runlevel
unknown
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34961243
Ok. No problem, just privide the output of /etc/fstab file.
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34961362
If you find any enrty for image1 in your fstab file then just comment that line and reboot your box.

Issue should got fixed.
0
 

Author Comment

by:aashee
ID: 34961387
out of /etc/fstab

#  /etc/fstab
# Created by anaconda on Mon Feb 14 15:26:35 2011
#
# 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
#
UUID=b7060686-49c7-41b1-9cbc-ced8b854d92d   /                 ext4  defaults          1       1
UUID=9c070976-2f1c-48cc-93e0-12848bffdc66       /tmp           ext4   defaults          1       2
UUID=57492686-ade6-4faf-b126-826e3759a119    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
abcisilon:/afs/systems/home       /home   nfs             defaults , nolock, noatime, nodiratime  0 0
abcisilon:/afs/data/code             /code      nfs          defaults, nolock,noatime,nodiratime 0  0
abcisilon:/afs/systems/apps     /apps         nfs       defaults, nolock,noatime, nodiratime,fsc  0 0
abcisilon:/afs/systems/bedlinerepo-test       /mnt/bedlinerepo-test nfs defaults, nolock,noatime,nodiratime 0 0
abcisilon:/afs/jobs   /jobs       nfs     defaults, nolock,noatime, nodiratime, fsc 0 0
LABEL=images1      /mnt/images1      ext4     defaults 1      2
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34961467

Just comment the entry for LABEL=images1
And reboot
0
 

Author Comment

by:aashee
ID: 34961479
when i try to edit using vim
and comment that file , it says

"fstab" E212: Can't open file for writing
0
 

Author Comment

by:aashee
ID: 34961485
also
E37: No write since last change (add ! to override)
but iadd !

still same issue
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34961894
Either boot your system in Rescue mode and fix the issue or boot with Slax or Knoppix to fix your issue.

0
 
LVL 12

Accepted Solution

by:
upanwar earned 500 total points
ID: 34961900
Download slax:

http://www.slax.org/

Burn the cd and boot off it. Login as root and navigate to your fedora partition mount point(/mnt/device_name_for_fedora_partition). Locate your fedora fstab and edit with kwrite. Livecds are the easiest way to deal with this type of problem.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now