Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I connected a HDD that was running on a server that stopped functioning to an Ubuntu server, but I don't succeed to mount it.
These are the results of fdisk and fsck commands:
Quote:
root@server:~# fdisk -l
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 15200 cylinders, total 244190646 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d2969
Device Boot Start End Blocks Id System
/dev/sdb1 63 1953520064 3519112712 83 Linux
Quote:
root@server:~# fsck /dev/sdb1
fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb1
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
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>
or
e2fsck -b 32768 <device>
I ran both e2fsck commands, but that didn't solve anything.
Can anyone help me? I have extremely important information on that disk.
That should printout the location of the backup superblocks.
I ran that query, but it gave an error:
Quote:
root@server:~# dumpe2fs /dev/sdb1 | grep -i superblock
dumpe2fs 1.42.9 (4-Feb-2014)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.
I also ran another command:
Quote:
root@server:~# mke2fs -n /dev/sdb1
mke2fs 1.42.9 (4-Feb-2014)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61054976 inodes, 244190583 blocks
12209529 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
7453 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, 71663616, 78675968,
102400000, 214990848
But from there, I tried all the backups listed, but got these 2 types of errors (Bad magic on the first half of the list and invalid argument on the 2nd):
Quote:
root@server:~# e2fsck -b 98304 /dev/sdb1
e2fsck 1.42.9 (4-Feb-2014)
e2fsck: Bad magic number in super-block while trying to open /dev/sdb1
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
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>
or
e2fsck -b 32768 <device>
root@server:~# e2fsck -b 214990848 /dev/sdb1
e2fsck 1.42.9 (4-Feb-2014)
e2fsck: Invalid argument while trying to open /dev/sdb1
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
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>
or
e2fsck -b 32768 <device>
I believe it's in the standard ubuntu repositories. Haven't used it myself but it might be worth a try.
You should also eliminate the possibility that this is a hardware problem. Go to the hard drive manufacturer's website and download their hard drive diagnostic utilities. Seagate, Western Digital and some of the other major hard drive manufacturers provide them for free. You want to get the bootable iso version, burn the iso as an image, boot with the cd and run the diagnostics in thorough mode. If the diagnostics reveal a faulty hard drive, there's not much you can do other than send the drive out to a professional data recovery company which is expensive.
Last edited by kilgoretrout; 07-13-2014 at 09:01 AM.
No. It was on CentOS (I think it was LVM) and I managed to connect it to an Ubuntu server at work and copy part of it, but at a certain point, it stopped working there.
Quote:
There's also a data recovery tool called TestDisk you might want to look into:
I believe it's in the standard ubuntu repositories. Haven't used it myself but it might be worth a try.
I was told to check testdisk, but use it on a clone (using clonezilla). I'll try that during the weekend, if I don't manage to get this solved earlier.
Quote:
You should also eliminate the possibility that this is a hardware problem. Go to the hard drive manufacturer's website and download their hard drive diagnostic utilities. Seagate, Western Digital and some of the other major hard drive manufacturers provide them for free. You want to get the bootable iso version, burn the iso as an image, boot with the cd and run the diagnostics in thorough mode. If the diagnostics reveal a faulty hard drive, there's not much you can do other than send the drive out to a professional data recovery company which is expensive.
It's indeed WD, so I'll check on their site to see if I find the diagnostics tool.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.