Fedora Boot stuck. Inconsistency; Run FSck

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.
aasheeAsked:
Who is Participating?
 
upanwarConnect With a Mentor Commented:
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
 
upanwarCommented:
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
 
aasheeAuthor Commented:
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
aasheeAuthor Commented:
how can i increase the size back or how to fix it. i need to do it as early as possible.
0
 
upanwarCommented:
could you please tell me the filesystem type and layout.
0
 
aasheeAuthor Commented:
its ext4 and how to find layout ?
0
 
upanwarCommented:
If you have configuration on your systems then give me output of
df -Th

From one of your system
0
 
aasheeAuthor Commented:
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
 
aasheeAuthor Commented:
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
 
upanwarCommented:
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
 
aasheeAuthor Commented:
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
 
upanwarCommented:
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
 
aasheeAuthor Commented:
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
 
upanwarCommented:
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
 
upanwarCommented:
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
 
aasheeAuthor Commented:
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
 
aasheeAuthor Commented:
when i run e2label /dev/sdb1

Below is result

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

0
 
upanwarCommented:
execute the below given command.

resize2fs /dev/sdb1 61049000

0
 
aasheeAuthor Commented:
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
 
aasheeAuthor Commented:
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
 
aasheeAuthor Commented:
(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
 
upanwarCommented:
Can you give me output of your /etc/fstab file and output of runlevel command.

0
 
aasheeAuthor Commented:
when i do runlevel
it says
unknown

(Repair filesystem) 30 # runlevel
unknown
0
 
upanwarCommented:
Ok. No problem, just privide the output of /etc/fstab file.
0
 
upanwarCommented:
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
 
aasheeAuthor Commented:
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
 
upanwarCommented:

Just comment the entry for LABEL=images1
And reboot
0
 
aasheeAuthor Commented:
when i try to edit using vim
and comment that file , it says

"fstab" E212: Can't open file for writing
0
 
aasheeAuthor Commented:
also
E37: No write since last change (add ! to override)
but iadd !

still same issue
0
 
upanwarCommented:
Either boot your system in Rescue mode and fix the issue or boot with Slax or Knoppix to fix your issue.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.