LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I am not able to mount a hard drive (https://www.linuxquestions.org/questions/linux-software-2/i-am-not-able-to-mount-a-hard-drive-4175540114/)

Linuxc5 04-18-2015 09:54 PM

I am not able to mount a hard drive
 
I am not able to mount a hard drive

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 234420479 117210208+ 7 HPFS/NTFS/exFAT


below is one command I tried and the error I got. I accidentally removed this partition when installing windows and need to re-add it. Please help?



sudo e2fsck -f -y -v /dev/sdb1
e2fsck 1.42.9 (4-Feb-2014)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
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>

Linuxc5 04-19-2015 03:48 PM

mount -t ntfs /dev/sdb1 /mnt
NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Linuxc5 04-19-2015 04:32 PM

I just fixed the issue. I found the software called test disk, it was in my software repository. I ran the software through the command prompt and readded the ntfs partition. All my data is now accessible again.

Pearlseattle 04-19-2015 07:24 PM

Hi
Please mark the thread as solved - thanks :D


All times are GMT -5. The time now is 08:47 AM.