Originally Posted by
oldfred
I think gparted wanted you to run the e2fsck as the partition data is corrupted or just the error that e2fsck is now saying. You have to have partition table data and internal data match.
#From liveCD so everything is unmounted,swap off if necessary
#e2fsck is used to check the ext2/ext3/ext4 family of file systems.
sudo e2fsck -C0 -p -f -v /dev/sda9
#if errors:
sudo e2fsck -f -y -v /dev/sda9
Code:
$ sudo e2fsck -C0 -p -f -v /dev/sda9
Data: The filesystem size (according to the superblock) is 32798584 blocks
The physical size of the device is 31521530 blocks
Either the superblock or the partition table is likely to be corrupt!
Data: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
$ sudo e2fsck -f -y -v /dev/sda9
e2fsck 1.41.12 (17-May-2010)
The filesystem size (according to the superblock) is 32798584 blocks
The physical size of the device is 31521530 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort? yes
$ sudo e2fsck -f -v /dev/sda9
e2fsck 1.41.12 (17-May-2010)
The filesystem size (according to the superblock) is 32798584 blocks
The physical size of the device is 31521530 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Error reading block 31981568 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? no
e2fsck: Can't read an block bitmap while retrying to read bitmaps for Data
e2fsck: aborted
Originally Posted by
oldfred
This helped solve the problem :
Code:
$ sudo fsck.ext4 -v /dev/sda9
e2fsck 1.41.12 (17-May-2010)
The filesystem size (according to the superblock) is 32798584 blocks
The physical size of the device is 31521530 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no
Data contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Error reading block 31981568 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? no
fsck.ext4: Can't read an block bitmap while retrying to read bitmaps for Data
e2fsck: aborted
Code:
$ sudo mke2fs -n /dev/sda9
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
7880704 inodes, 31521530 blocks
1576076 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
962 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Code:
$ sudo e2fsck -b 23887872 /dev/sda9
Interrupted it at some point since I chose the last (?) backup? And ran:
Code:
$sudo e2fsck -b 32768 /dev/sda9
.
.
.
Data: ***** FILE SYSTEM WAS MODIFIED *****
Data: 14413/7880704 files (12.0% non-contiguous), 24298077/31521530 blocks
Originally Posted by
oldfred
This was not tried!
Originally Posted by
oldfred
One user could not get partition unmounted (may have needed swapoff), but used another live distro
Thank you; now I know
Thank you for you help; I appreciate it
Bookmarks