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.
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.
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.
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.
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.
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
df -Th
From one of your system
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
/dev/sda1 ext4 40G 6.3G 32G 17% /
/dev/sda3 ext4 40G 6.3G 32G 17% /tmp
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
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.
Could you please tell me the version of resize2fs so that I can send you the exact command to do this.
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 ?
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.
resize2fs --version
I need output of fdisk -l and run e2lable for your partitions to get info that which partition is having label=image.
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]
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.
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
resize2fs /dev/<device name> 61049000
you are good with the version of resize2fs .
godspeed 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
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
ASKER
when i run e2label /dev/sdb1
Below is result
(Repair filesystem) 16 # e2label /dev/sdb1
images1
Below is result
(Repair filesystem) 16 # e2label /dev/sdb1
images1
execute the below given command.
resize2fs /dev/sdb1 61049000
resize2fs /dev/sdb1 61049000
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
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
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
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
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
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.
ASKER
when i do runlevel
it says
unknown
(Repair filesystem) 30 # runlevel
unknown
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.
Issue should got fixed.
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-9c bc-ced8b85 4d92d / ext4 defaults 1 1
UUID=9c070976-2f1c-48cc-93 e0-12848bf fdc66 /tmp ext4 defaults 1 2
UUID=57492686-ade6-4faf-b1 26-826e375 9a119 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/hom e /home nfs defaults , nolock, noatime, nodiratime 0 0
abcisilon:/afs/data/code /code nfs defaults, nolock,noatime,nodiratime 0 0
abcisilon:/afs/systems/app s /apps nfs defaults, nolock,noatime, nodiratime,fsc 0 0
abcisilon:/afs/systems/bed linerepo-t est /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
# /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-9c
UUID=9c070976-2f1c-48cc-93
UUID=57492686-ade6-4faf-b1
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/hom
abcisilon:/afs/data/code /code nfs defaults, nolock,noatime,nodiratime 0 0
abcisilon:/afs/systems/app
abcisilon:/afs/systems/bed
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
ASKER
when i try to edit using vim
and comment that file , it says
"fstab" E212: Can't open file for writing
and comment that file , it says
"fstab" E212: Can't open file for writing
ASKER
also
E37: No write since last change (add ! to override)
but iadd !
still same issue
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If yes then please revert the disk size to its earlir.
If you need any further help, please update.