Skip to main content

Thread: fsck runs out of memory when trying to fix a LVM partition on 1 TB drive.


hello everyone,

have this: i've got lubuntu installed on first partition of 1tb drive (taking 500gb roughly) , fedora 18 installed on other 500gb (using lvm setup). when try mounting lvm in lubuntu, can update grub, error:

code:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/fedora_dcky--fedora--test-root,        missing codepage or helper program, or other error        in cases useful info found in syslog - try        dmesg | tail  or so
and dmesg | tail shows

code:
$dmesg | tail [333729.657689] jfs: ntxblock = 8192, ntxlock = 65536 [333729.718391] ntfs driver 2.1.30 [flags: r/o module]. [333729.758285] qnx4 filesystem 0.2.3 registered. [333729.869467] btrfs loaded [333839.816217] ext4-fs (sdb3): mounted filesystem ordered data mode. opts: (null) [333840.383616] ext4-fs (dm-2): ext4_check_descriptors: checksum group 0 failed (6072!=0) [333840.383623] ext4-fs (dm-2): group descriptors corrupted! [337142.256748] ext4-fs (sdb3): mounted filesystem ordered data mode. opts: (null) [337142.659237] ext4-fs (dm-2): ext4_check_descriptors: checksum group 0 failed (6072!=0) [337142.659243] ext4-fs (dm-2): group descriptors corrupted!
i've tried running fsck -y on partition, , runs out of memory before it's finished.

code:
sudo fsck -y /dev/mapper/fedora_dcky--fedora--test-root fsck util-linux 2.20.1 e2fsck 1.42.5 (29-jul-2012) ext2fs_check_desc: corrupt group descriptor: bad block block bitmap fsck.ext4: group descriptors bad... trying backup blocks... /dev/mapper/fedora_dcky--fedora--test-root contains file system errors, check forced. resize inode not valid.  recreate? yes   pass 1: checking inodes, blocks, , sizes inode 2027008 has illegal block(s).  clear? yes   illegal block #2 (213909536) in inode 2027008.  cleared. illegal block #5 (226492416) in inode 2027008.  cleared. illegal block #8 (268435456) in inode 2027008.  cleared. illegal block #11 (276824072) in inode 2027008.  cleared. illegal indirect block (2147483648) in inode 2027008.  cleared. illegal block #269490209 (50331648) in inode 2027008.  cleared. error storing directory block information (inode=2027008, block=0, num=158877170): memory allocation failed   /dev/mapper/fedora_dcky--fedora--test-root: ***** file system modified ***** e2fsck: aborted   /dev/mapper/fedora_dcky--fedora--test-root: ***** file system modified *****
one search result suggested changing e2fsck.conf file, , telling use directory instead of memory scratch files. i've tried that, , still fails memory allocation error. should note computer has 4 gb of ram installed, , it's 64-bit version of lubuntu 12.10.

backstory is, had lubuntu , fedora on separate drives. copied them both on 1 tb drive, failing. purchased new 1 tb drive, , used dd copy old drive one. had kernel update in lubuntu , didn't "find" fedora partitions when updated grub. in past, i've had mount fedora partitions , update grub in order them recognized.


here's e2fsck.conf file shows

code:
cat /etc/e2fsck.conf [scratch_files] directory = /var/cache/e2fsck
any appreciated. reinstall fedora, if necessary. i'd avoid if possible. , use dd copy drive, again i'd avoid also.

have great day, , thanks.
patrick.

clarification, here's results of fdisk -l. should note have 3 hard drives in computer. 2 have windows installed, , 1tb drive ubuntu , fedora installed.

code:
$sudo fdisk -l   disk /dev/sda: 320.1 gb, 320071851520 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625140335 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes disk identifier: 0x00030e07      device boot      start         end      blocks   id  system /dev/sda1   *        2048      206847      102400    7  hpfs/ntfs/exfat /dev/sda2          206848   625137663   312465408    7  hpfs/ntfs/exfat   disk /dev/sdb: 1000.2 gb, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 4096 bytes i/o size (minimum/optimal): 4096 bytes / 4096 bytes disk identifier: 0x561ad159      device boot      start         end      blocks   id  system /dev/sdb1   *        2048  1008019455   504008704   83  linux /dev/sdb2      1008019456  1016408063     4194304    5  extended /dev/sdb3      1016408064  1017432063      512000   83  linux /dev/sdb4      1017432064  1953523711   468045824   83  linux /dev/sdb5      1008021504  1016408063     4193280   82  linux swap / solaris   disk /dev/sdc: 80.0 gb, 80025280000 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156299375 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes i/o size (minimum/optimal): 512 bytes / 512 bytes disk identifier: 0x88cc88cc      device boot      start         end      blocks   id  system /dev/sdc1   *          63   156280319    78140128+   7  hpfs/ntfs/exfat   disk /dev/mapper/fedora_dcky--fedora--test-swap: 4160 mb, 4160749568 bytes 255 heads, 63 sectors/track, 505 cylinders, total 8126464 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 4096 bytes i/o size (minimum/optimal): 4096 bytes / 4096 bytes disk identifier: 0x00000000   disk /dev/mapper/fedora_dcky--fedora--test-swap doesn't contain valid partition table   disk /dev/mapper/fedora_dcky--fedora--test-home: 24.7 gb, 24717033472 bytes 255 heads, 63 sectors/track, 3005 cylinders, total 48275456 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 4096 bytes i/o size (minimum/optimal): 4096 bytes / 4096 bytes disk identifier: 0x00000000   disk /dev/mapper/fedora_dcky--fedora--test-home doesn't contain valid partition table   disk /dev/mapper/fedora_dcky--fedora--test-root: 50.6 gb, 50621054976 bytes 255 heads, 63 sectors/track, 6154 cylinders, total 98869248 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 4096 bytes i/o size (minimum/optimal): 4096 bytes / 4096 bytes disk identifier: 0x00000000   disk /dev/mapper/fedora_dcky--fedora--test-root doesn't contain valid partition table



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [lubuntu] fsck runs out of memory when trying to fix a LVM partition on 1 TB drive.


Ubuntu

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP