Improve company productivity with a Business Account.Sign Up

x
?
Solved

Linux ext4 error, hard drive partition is missing and hdd is not mounting

Posted on 2013-11-17
6
Medium Priority
?
1,240 Views
Last Modified: 2014-08-18
Hey experts, I've been with this error for the past 2 days trying to find a way around it, but so far nothing seems to be working for me.

Basically, after a reboot (shutdown -r now), the server is not recognizing the second and third HDD's partition, it cannot be mount. The /dev/sdb1 partition is not present anymore and it's where I had about 600GB of data, and /dev/sdc1 was the backup hard-drive which has the partition present but it does not mount. Check the error message:

[root@jumbo ~]# fsck -fy /dev/sdb
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext4: Group descriptors look bad... trying backup blocks...
fsck.ext4: Bad magic number in super-block when using the backup blocks
fsck.ext4: going back to original superblock
fsck.ext4: Device or resource busy while trying to open /dev/sdb
Filesystem mounted or opened exclusively by another program?

Open in new window

lsof /dev/sdb, doesn't return anything.

Same happens for the /dev/sdc device

I tried running the following for each superblock:
fsck.ext4 -p -b <superblock> -B 4096 /dev/sdb

Open in new window


But it didn't seem to work.

Has anyone encountered the same error and found a fix or a work around? I'm running out of options here and since both drives are not mounting and 600GB of data short.

Hard Drives are healthy, reporting no errors.
SATA cable was changed to new ones, and still nothing.

Would really appreciate your input.
Thank you!
0
Comment
Question by:Richard R
6 Comments
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39655040
Have you check dmesg and /var/log/messages?

How did you come up with a conclusion that the the disk is heathy? Have you run a disk check utility?
0
 
LVL 37

Expert Comment

by:Seth Simmons
ID: 39655418
look at your command...you are running fsck on the device itself, not a partition
you need to run on /dev/sdb1, not /dev/sdb

how is your fstab defined?

sometimes with sata drives if you have external drives connected at startup then your device names are moved around so your boot might be sdc instead of sda the next time or something to that effect though it still boots because the UUID is specified for mounting and not the explicit device.  if you run fdisk -l are the device names what it was before?
0
 
LVL 2

Author Comment

by:Richard R
ID: 39655445
I did run smart health check on the HDD, they are healthy.

Yes, fdisk -l shows the exact devices as they were before, except the missing partition sdb1

my /etc/fstab has this:
/dev/sdb1 /storage ext4 defaults 1 2
/dev/sdc1 /backup ext4 defaults 1 2

Open in new window


As I mentioned, /dev/sdb1 is not present after reboot... while /dev/sdc1 is present, this is the output I had for it from previous SSH session screen:
[root@jumbo ~]# fsck -p /dev/sdc1
fsck from util-linux-ng 2.17.2
fsck.ext4: Bad magic number in super-block while trying to open /dev/sdc1
/dev/sdc1: 
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

Open in new window


Also before I did get this:
[root@jumbo ~]# fsck -y /dev/sdc1 
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext2: Superblock invalid, trying backup blocks...
/dev/sdc1 has unsupported feature(s): FEATURE_C17 FEATURE_C22 FEATURE_C25 FEATURE_C28 FEATURE_C29 FEATURE_C30 FEATURE_C31 compression FEATURE_I5 FEATURE_I10 FEATURE_I13 FEATURE_I19 FEATURE_I20 FEATURE_I21 FEATURE_I23 FEATURE_I24 FEATURE_R2 FEATURE_R10 FEATURE_R13 FEATURE_R19 FEATURE_R20 FEATURE_R21 FEATURE_R23 FEATURE_R24
e2fsck: Get a newer version of e2fsck!

Open in new window


Also, looking through SSH session screens, this is on of the DMESG tail message I have:
[root@jumbo ~]# dmesg | tail
readahead-collector: starting delayed service auditd
readahead-collector: sorting
readahead-collector: finished
EXT4-fs (sdb): ext4_check_descriptors: Checksum for group 880 failed (61921!=0)
EXT4-fs (sdb): group descriptors corrupted!
EXT4-fs (sdc1): VFS: Can't find ext4 filesystem
EXT4-fs (sdc1): VFS: Can't find ext4 filesystem
EXT4-fs (sdc1): VFS: Can't find ext4 filesystem
udev: starting version 147
EXT4-fs (sdc1): VFS: Can't find ext4 filesystem

Open in new window

0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
LVL 4

Expert Comment

by:Naushad shaikh
ID: 39659809
when you do fdisk and check for partition is that drive is there if yes what is file system it showing, i will suggest go manually and do fidisk and delete the partition and check filesystem flag for the same
0
 
LVL 2

Accepted Solution

by:
Richard R earned 0 total points
ID: 40259881
Had to get a new HDD for this one. Couldn't find the answer.
0
 
LVL 2

Author Closing Comment

by:Richard R
ID: 40267251
No other valid answer.
0

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Welcome back to our beginners guide of the popular Unix tool, cron. If you missed part one where we introduced this tool, the link is below. We left off learning how to build a simple script to schedule automatic back ups. Now, we’ll learn how to se…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

585 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question