How to mount hard drive
ntfsfix
is a program to perform limited NTFS checking. While it won't fix all NTFS troubles, it will fix some problems.
First, ensure ntfs-3g
is installed:
sudo apt-get install ntfs-3g
Now, run the following to try to repair:
sudo ntfsfix /dev/sda1
and let it try to fix things up.
If this fails, download and install testdisk
. This is a bit more manual but will let you get at any important files that otherwise can't be recovered.
sudo apt-get install testdisk
and run it:
sudo testdisk
You will then see it scanning volumes and then you can select the correct volume. Follow guidelines for what keys do what at the bottom of the terminal window.
All commands are in a terminal. When you open the terminal, wait until you see the prompt
ubuntu@ubuntu:~$
before running the command. Since you are in a live CD, you will lose changes when you reboot. Consider installing Ubuntu to a larger external hard disk to have a permanent Ubuntu installation about.
When you usesudo
, it might prompt you for the password. On the live media it isubuntu
. If you install Ubuntu, it is your user password. When you type it, it will not be seen(not even****
)
Related videos on Youtube
![nanofarad](https://i.stack.imgur.com/tSGzg.png?s=256&g=1)
nanofarad
Updated on September 18, 2022Comments
-
nanofarad almost 2 years
A couple days ago my windows corrupted and I had to mount Ubuntu onto a usb and install it onto a different hard drive that is also connected to the same computer. I have files that I would LOVE to recover off that other computer but if it comes down to it I can get rid of them I would just like to be able to use the hard drive again. However whenever I try to open the hard drive it give me this error
"Error mounting /dev/sda1 at /media/unknown/Gateway: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/unknown/Gateway"' exited with non-zero exit status 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to read NTFS $Bitmap: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details."
Any help would be greatly appreciated. Also if you could break down anything to basic info that would be great I'm new to Ubuntu so I don't really know how to do a lot with it right now.
New Message
"Error mounting /dev/sda1 at /media/unknown/Gateway: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/unknown/Gateway"' exited with non-zero exit status 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to read NTFS $Bitmap: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details."
-
Admin over 11 yearsI'm not sure how to go about that which is part of the problem, I have no access to anything but Ubuntu and I'm not to well acquainted with it.
-
Admin over 11 yearsDo you have a Windows installation you can boot into where you can plug in and access the hard disk?
-
Admin over 11 yearsAs in do I have any access to windows? If so no.
-
Admin over 11 yearsTake a look at my answer and try that.
-
Admin over 11 yearsOK. Can it be mounted now?
-
Admin over 11 yearsIt is not mounting I got a new message though, I edited my Original post with it. Thanks for the help btw
-
Admin over 11 yearsHave you tried Testdisk yet?
-