Question

Mounting NTFS hard drive with Ubuntu

Asked by: hlh_admin

First off, I have never used Linux before and need answers explained where I can understand them..lol... I have a windows pc and the hard drive failed on me.. I took the hard drive out and mounted it on another box that has windows on it.. (so i have two drives, one is good with windows on it and the other is the bad drive).. I downloaded the Ubuntu boot cd and booted to Ubuntu and when I try to mount the drive I get an error Unable to mount drive.. Again, I dont know anything about Linux and need someone that can explain what I need to do to mount this drive so that I can understand. I need to get some info off of drive.. I read some possible fixes online but dont understand any of it.. Thanks..

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-14 at 11:35:10ID24569796
Tags

Ubuntu

,

NTFS

,

Linux

Topics

Ubuntu

,

Miscellaneous Hardware

,

Computer Hard Drives

Participating Experts
5
Points
500
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Ubuntu
    I just finished finally being able to get XP and Ubuntu dual-booting. I'll be the first to admit that I'm a total Linux newbie, so any assistance someone could provide would be most appreciated. Here's the scenario: I had 2 NTFS 40gb hdd's, C and D to make it easier. XP w...
  2. Accessing NTFS drives in Ubuntu
    How can I find out where my NTFS partition is (like dev/hd1 etc), and how can I then mount it to be accessed in Ubuntu, I'm an Ubuntu n00b, so consider that when answering.
  3. Ubuntu no longer mounts NTFS partitions on startup
    I'm dual-booting Ubuntu 7.10 and Windows XP SP2 with four NTFS paritions, one Linux swap and two ext3 paritions. I had a problem starting up so I unplugged all of my cables from my motherboard and reinserted them. When I booted up to Ubuntu my NTFS paritions are no longer av...
  4. Unable to write to certain sub-folders on NTFS mounted dri…
    I have Ubuntu 7.04 (feisty) installed and I've loaded the ntfs-3g package. I also have a second harddrive with with Windows XP installed on it (NTFS). The drive mounts automatically to /media/windows and is writable at the "root" of the "c:" drive (/medi...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: fosiul01Posted on 2009-07-14 at 11:46:10ID: 24852742

Ok have a look to this one

http://www.sajithmr.com/mount-ntfs-file-system-in-ubuntu-debian/
to mount ntfs you need to install few packages

sudo apt-get install ntfs-3g

after installing those then try to mount

 

by: gsnshankarPosted on 2009-07-14 at 11:48:30ID: 24852761



You have to use Terminal window to type commands in Ubuntu. To find how and where the terminal will be... Click the following link..

http://www.psychocats.net/ubuntu/terminal

Then to get steps to mount NTFS volume click the link

http://ubuntuguide.org/wiki/Dapper#Windows

Hope this helps. Try and ask if any doubts arise...

 

by: hlh_adminPosted on 2009-07-14 at 11:49:40ID: 24852776

So do i need to be on the internet to download these packages? and is this some type of command your have there.. Like I said I have never used Linux.. I am using Ubuntu 9.04 Desktop Version if this matters..

 

by: fosiul01Posted on 2009-07-14 at 11:51:19ID: 24852796

i prefer redhat,

but if you put ubuntu CD in their then if you type this
apt-get install ntfs-3g


it should install from the CD , if cd has this software

normaly i install from Internet  

 

by: hlh_adminPosted on 2009-07-14 at 11:51:59ID: 24852804

Does it matter that i have two drives.. Do I have to specify which drive im mounting or when I type these commands it just knows? Sorry guys im a huge newb to linux... and have never tried to recover HD before.. I am new to the IT field you could say and am still learning so I appreciate all your patience..

 

by: fosiul01Posted on 2009-07-14 at 11:56:00ID: 24852849

you need hardrisk number
when you will run
fdisk -l
it will show you the harddisk name like this

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20480008+ 7 HPFS/NTFS
/dev/sda2 2550 7493 39707451+ f W95 Extd (LBA)
/dev/sda3 7494 9729 17960670 83 Linux
/dev/sda5 2550 7394 38911288+ b W95 FAT32
/dev/sda6 7395 7493 795186 82 Linux swap / Solaris



you need to tell which hardisk to mount

example, if its /dev/sda6

then you will have to tell that

have a look this one aswell
http://www.arsgeek.com/2006/09/25/ubuntu-tricks-how-to-mount-your-windows-partition-and-make-it-readwritable/

 

by: hlh_adminPosted on 2009-07-14 at 12:07:23ID: 24852977

i will try these steps and post back.. Thanks..

 

by: JT92677Posted on 2009-07-14 at 17:18:44ID: 24855252

It seems that your issue is a need to get data from a failing (or partially failing) hard disk.  Why go to UBUNTU to do this?

If you put the drive in your computer as a second drive (with the one that works) Windows will boot on the first disk with an active partition  (the one that works).

Once it boots, you can inspect the other drive from windows.

I think you're concerned about some sort of conflict, but if the failing drive is the 2nd drive in your computer, it will be fine, and won't boot if the primary disk is booting.

I like Ubuntu, it has it's place, but going down that path to get data from a hard disk is like buying an aircraft and learning to fly it so you can see what's in your back yard.

Just view the drive from your working windows installation.

If you don't want to install the drive inside the computer, get one of these cute devices from compgeeks

http://www.geeks.com/details.asp?invtid=2020-OTB&cat=HDD

It has a power supply for the drive, can handle IDE and SATA drives, and ends up allowing access through a USB port on your working computer, and can be hot-inserted once your main machine is up and running.

 

by: apochimongitusPosted on 2009-07-14 at 19:15:41ID: 24855776

JT92677, I reckon linux is great for recovering failed/failing hard disks that are no longer accessible through windows.

To the OP: However, I would say that if you can see the drive in windows, you can probably backup the data from there. Linux has some great tools for doing bit level copying if the NTFS file structure is broken (and for that matter if NTFS is broken on the failing disk, then being able to mount ntfs partitions in linux isn't going to be much use). What I would suggest is to try a live boot cd like knoppix (most recent distros have ntfs3g already installed) and try to get a backup image of the disk using dd. Then you can mount the image file you get from the dodgy disk in a program like GetDataBack for NTFS (costs $ though) and go from there.

 

by: JT92677Posted on 2009-07-14 at 19:31:24ID: 24855879

to apochimongitus - There are windows utilities that can get data from failed drives as well. hlh-admin (the questioner) lacks familiarity with Ubuntu, so I assume it would be more involved trying to work with Ubuntu, or any linux distribution, than to take a more familiar approach.

I've used Steve Gibson's spinrite program to recover data that is weak, and produces high levels of error correction, and also have used some programs that recover data based on one of the two allocation tables, when the directory has been screwed up.

I'm not sure it can be said that Linux has the corner on hard disk utilities or file recovery programs. I've seen 'em in Windows and DOS as well.

My suggestion was based on the idea that going through all the effort of mounting a volume in Ubuntu, seemed a bit like overkill, especially for someone who was not sure about how to mount a volume in Ubuntu.

Sometimes the simplest way is also the most effective.

 

by: apochimongitusPosted on 2009-07-14 at 20:39:23ID: 24856199

JT... Sometimes I can get a bit carried away with things... If you're going to fork out for GetDataBack for NTFS you may as well use the built in imaging software that it has anyway...

And you're right, linux doesn't have the market cornered when it comes to data recovery... but the tools with linux are typically free and they are what I used initially when cutting my 'data retrieval' teeth.

We are kinda assuming, of course, that the OP is actually talking about 'for real' data recovery as opposed to just copying the data from an old disused hdd.

Apochimongitus.

 

by: apochimongitusPosted on 2009-07-14 at 20:51:04ID: 24856244

hlh-admin: I just re-read the original post and noticed you say the HDD failed. If that is so, is it visible in the BIOS, and if it is visible in BIOS, when you go to the disk manager mmc are you able to see the disk in there? If your 'system' can tell that the drive is there, then there is a good chance you will be able to recover the data from any operating system. I would also recommend a program called Get Data Back for NTFS it is a very competent automated data recovery solution. You have to pay for the software but that will be a heap less than what you'd pay for a pro to do it. It is always a good idea to take an image of the drive initially before you start any work on it and work from the image rather than the suspect disk.

Hope this helps.

Apochimongitus.

 

by: JT92677Posted on 2009-07-14 at 21:01:30ID: 24856272

Apochimongitus -- I actually used GetDataBack -- I like their approach. They let you diagnose the hard disk, show you all the stuff you'll recover, and then ask for money so you can actually get the data.  This is better than paying first, and finding out that the drive is so utterly hosed that it's useless to pursue (like a head failure, or motor problem, the worst is that high-speed grinder sound <<grin>>)

As they say about their program "The software can even recover your data when the drive is no longer recognized by the operating system or when all directory information is lost." -- It comes down to reconciling how valuable the data is, and how much one's time is worth. For the inquisitive, I think the current price of GetDataBack is about $80 in round numbers. For me, it was worthwhile when I needed to use it. I got the NTFS version, and it worked very well. This was a couple of years ago, no doubt the latest version(s) are even bettter.

 

by: aschuetePosted on 2009-07-16 at 08:41:21ID: 24870285

If it is the error I'm thinking of this should work.  Let us know what


# Create passwords for your account and root account
passwd
sudo passwd root
# Mount a NTFS partition - replace sda#/sdb# with the appropriate device (sda1, sdb1, hda1, etc..).
# You can find which device you need with the command
sudo fdisk -l
sudo mkdir /mount/oldos
sudo mkdir /mount/goodos
sudo mount -r -t ntfs-3g /dev/sda# /mount/oldos -o force
# If it says ntfs-3g does not exist install it with the command below then repeat
sudo apt-get install ntfs-3g
sudo mount -w -t ntfs-3g /dev/sdb# /mount/goodos -o -force
# Open up the directories with root permission so there are no isssues
sudo nautilus /mount/oldos
sudo nautilus /mount/goodos

 

by: hlh_adminPosted on 2009-07-20 at 08:22:08ID: 24895965

aschuete:

ok this is the error im getting when i go through this..
"ntfs_attr_pread_i: ntfs_pread failed: Input/output/error
Failed to calculate free mft records: Input/output/error
NTFS is either inconsistent, or there is a hardware fault, or its 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.."

I have done everything correct i believe.. The drive shows in Ubuntu / Computer but it wont let me access it..

 

by: hlh_adminPosted on 2009-07-20 at 09:07:29ID: 24896411

Windows does not see drive.. I am trying to use GetDataBack and there is no drive besides the main hd that i see..

 

by: apochimongitusPosted on 2009-07-20 at 14:37:47ID: 24899324

if linux can see the drive but not mount it, this is not a problem. Open up a root console and type:
"dd if=/dev/sda (or whatever the hard drive is being recognised as) of=/media/sda1/<some good backup directory>/harddisk.img conv=noerror,sync bs=512k" or something to that effect. Even if you cannot mount the drive, dd will do a bit level copy of the drive and make an identical (ie. errors corruptions and all) copy. The noerrror and sync switches allow you to continue reading the drive after a bad sector and the sync switch will put all 1's in place of the unreadable data. This may take some time... I have personally had a drive that took over 3 weeks to get an image of only 10GB... luckily the drive didn't die in the process (although it was starting to) and thankfully i was able to recover that person's photos that they hadn't backed up.

Once you have an image of the drive, you can use get data back on the image (rather than the faulty drive) and it will 'hopefully' be able to recover some data for you.

Apochimongitus.

 

by: hlh_adminPosted on 2009-07-20 at 14:58:31ID: 24899506

apochimongitus:

I am linux newb so can you tell me what to type... i see what you have up there but you broke up your command and I dont know whats part of the command and whats not... Also i am backing up everything to a external harddrive if this matters..

 

by: apochimongitusPosted on 2009-07-20 at 16:23:26ID: 24899966

if stands for input file. Linux sees everything as file or byte stream. so you need to specifiy your failed disk in this section, this could be /dev/sda, /dev/sdb it depends on the order that linux sees disks.

of stands for output file. this is the location that you want to store the image... if linux sees your external drive as /media/sdb2/output/file.here (or something then you specify the path that you want to save it to)

so the final string might look something like:

dd if=/dev/sda of=/media/sdb2/backup/harddisk.img conv=noerror,sync bs=512

make sure there is plenty of space on your external disk as the final image will be as large as the failed disk (ie so if the failed disk is 50GB the final image will be 50GB).

Hope this helps.

Apochimongitus.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...