This is what happened,
I inserted my (important) external HDD into a RedHat 6 machine, did my task's, unmounted the drive via Nautilus, and physically detached the drive from the machine (and now I realized that, I detached the drive in a hurry while Nautilus (of RHEL6) was writing some thing to the disk).
That hardisk had 3 partitions, 100GB ext4, 50GB ext4 and remaining about 148GB ntfs.
Later I connected it again to my Ubuntu 14.04 machine, and now the two ext4 partitions of the drive are not mounting.
Here is what Gparted says,
and,
also, here is the sudo fdisk -l
command's output,
Disk /dev/sdb: 320.1 GB, 320072932352 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142446 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: 0xf909bf11
Device Boot Start End Blocks Id System
/dev/sdb1 2048 209717247 104857600 83 Linux
/dev/sdb2 209717248 314574847 52428800 83 Linux
/dev/sdb3 314574848 625141759 155283456 7 HPFS/NTFS/exFAT
I am not that familiar to fsck
or fsck.ext4
command, please provide me a direction.
fsck.ext4
. Include the device number as the argument (fsck.ext4 /dev/sdb1
). Also, when in doubt, man pages help (man fsck.ext4
).fsck.ext4
and how to run it, but I don't know it's exact outcomes. Like will it reset the file system tables? or Will I be able to get my data back?, because I don't want to lose the data present in it.ext4
superblock and try to complete any writes that weren't fully written to the disk (is currently in a journal). You can use the-n
option initially to mount the filesystem in a read-only mode to get a status report.sudo dd if=/dev/sdN of=/dev/sdNN
. Any suggestion has the potential of damaging your data even further and if this data is truly important, please back it up!