Link to home
Start Free TrialLog in
Avatar of aashee
aashee

asked on

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.
Avatar of upanwar
upanwar
Flag of India image

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.

Avatar of aashee
aashee

ASKER

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.
Avatar of aashee

ASKER

how can i increase the size back or how to fix it. i need to do it as early as possible.
could you please tell me the filesystem type and layout.
Avatar of aashee

ASKER

its ext4 and how to find layout ?
If you have configuration on your systems then give me output of
df -Th

From one of your system
Avatar of aashee

ASKER

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
Avatar of aashee

ASKER

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
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.
Avatar of aashee

ASKER

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 ?
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.
Avatar of aashee

ASKER

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]
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.

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
Avatar of aashee

ASKER

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




Avatar of aashee

ASKER

when i run e2label /dev/sdb1

Below is result

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

execute the below given command.

resize2fs /dev/sdb1 61049000

Avatar of aashee

ASKER

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
Avatar of aashee

ASKER

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


Avatar of aashee

ASKER

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

Avatar of aashee

ASKER

when i do runlevel
it says
unknown

(Repair filesystem) 30 # runlevel
unknown
Ok. No problem, just privide the output of /etc/fstab file.
If you find any enrty for image1 in your fstab file then just comment that line and reboot your box.

Issue should got fixed.
Avatar of aashee

ASKER

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

Just comment the entry for LABEL=images1
And reboot
Avatar of aashee

ASKER

when i try to edit using vim
and comment that file , it says

"fstab" E212: Can't open file for writing
Avatar of aashee

ASKER

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

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

ASKER CERTIFIED SOLUTION
Avatar of upanwar
upanwar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial