LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2014, 03:58 PM   #16
SUD_Piwi
LQ Newbie
 
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled

Quote:
Originally Posted by R00ts View Post
PROBLEM SOLVED

I was suggested to do the following:

Code:
$ sudo fsck.ext4 /dev/sda
e2fsck 1.41.14 (22-Dec-2010)
The filesystem size (according to the superblock) is 122096646 blocks
The physical size of the device is 122096381 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no

Backup 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
Backup: 223131/30531584 files (0.1% non-contiguous), 44383187/122096646 blocks

$ sudo mkdir /mnt/backup

$ sudo mount -t ext4 /dev/sda /mnt/backup
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Looks familiar. And looking at dmesg | tail:

Code:
$ dmesg | tail
[359222.668707] EXT4-fs (sda): bad geometry: block count 122096646 exceeds size of device (122096381 blocks)
Also seen that before. I did some searching and thought that maybe using resize2fs (resize filesystem) was a command that could help. I asked if they thought this was correct and whether there was anything else I should try. They suggested I also try:

Code:
$ sudo mount -t ext4 -o ro /dev/sda /mnt/backup
Which failed the same way as the earlier mount attempt. Then I took a deep breath and resized the filesystem as he suggested:

Code:
$ sudo resize2fs /dev/sda 465G
resize2fs 1.41.14 (22-Dec-2010)
Resizing the filesystem on /dev/sda to 121896960 (4k) blocks.
The filesystem on /dev/sda is now 121896960 blocks long.
And after that, mounting my drive was successful and I can access all my data again!



Thank you all to have offered their advice and help throughout this ordeal. Its kind of a face palm moment when you realize that all this reading and researching and asking questions and worrying was solved by running a single, simple command-line application. But its bee n a learning experience!
Man! Thanks for all of this research and effort! I have been wondering around internet since last month as I had the same problem as yours, however, the root of my problem was different.

The drive that I had issues with comes from a WiFi router (D-link model DIR-685). It has a HDD bay to plug in a standard 2.5 SATA, since the beginig this router was very hard to configured to have it as a storage server, once it was working, few days later when I was uploading some files I noticed that the date was wrong (it was 2013 and the date was Dec 2012) so when I tried to change it in the router console, it didn't let me put anything higher that Dec 31 2012!!! I looked for any firmware upgrade but there was none, in the support page the model was not listed. After those issues came up I started having issues trying to access my data up to a point in which I was no longar able to even see the drive.

I'm writing all my description just in case someone else is having the same problem.
And thanks again everyone!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] After formatting hard disk, invalid partition table windstory Linux - Newbie 3 08-11-2010 05:37 AM
How to rescue partition? (Bad block in disk, reiserfsck stops) gattumarrudu Linux - Hardware 4 06-29-2010 01:47 PM
hard disk partition table crashed! himy Linux - Hardware 1 01-28-2008 03:58 PM
mount partition from copied block device cs-cam Linux - General 0 09-23-2006 07:41 PM
mk2efs ext3 block count differs on same partition size tkmbe Linux - General 1 06-29-2005 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration