LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-28-2013, 09:24 AM   #1
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Rep: Reputation: Disabled
how to repair external USB harddisk formatted as ntfs


Sir recently I have bought external USB harddisk of size one TB and it was previously formatted as ntfs.I have made all my backup of size 750GB. I am unable to read from this drive on windows8 and I am able to read from this drive on opensuse12.2 OS. I have tried a lot to make this harddisk working like running chkdsk in elevated mode, using partition recovery tools etc., but none worked.

Are there any tools or softwares in Linux to fix this problem without losing of data.


Regards,
Rupesh.
 
Old 02-28-2013, 08:14 PM   #2
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware 14, Debian 7, FreeBSD, OpenBSD
Posts: 158

Rep: Reputation: 32
Can you still read it in opensuse? If so, then the data is safe.

When you say "it was previously formatted as ntfs", are you saying that it is no longer formatted as ntfs? If so, what filesystem is it formatted as now?
 
Old 02-28-2013, 10:40 PM   #3
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 158

Rep: Reputation: 22
If you can read the partition from your Linux system, you can always copy all content to a local harddisk and then re-format the partition, in case there was something wrong with the partition.

You might wanna try "ntfsfix /dev/sdXN" to force Windows to do a full file system check next time you boot into Windows.

Maybe you should still backup the files from that partition before you proceed with any action that might apply changes to the fs which could result in some kind of data loss.
 
Old 02-28-2013, 11:11 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993
It sounds like its been re-formatted using a Linux filesystem like ext3 or ext4.
Mount it on Suse and run
Code:
df -Th
If you can read it from Suse, do NOT try to 'fix' it.
If it is using a Linux fs, then MS will not be able to read it without the proper driver (not std on MS).
 
Old 02-28-2013, 11:21 PM   #5
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 158

Rep: Reputation: 22
Quote:
Originally Posted by chrism01 View Post
If you can read it from Suse, do NOT try to 'fix' it.
My above post was referring to ntfsfix which will do nothing but marking an NTFS file system as "dirty", so Windows will do a file system check during boot.

If the partition is not NTFS, ntfsfix will spew a few error messages but eventually abort without any action taken.
 
Old 03-01-2013, 12:04 AM   #6
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
Sir when I buy it I have checked filesystem type it was ntfs and now also when I run the command fdisk -l it is showing filesystem type as ntfs. I have done chkdsk in Windows8 elevated mode still I am unable to access the drive on Windows8 but I am able to access it on suse.
 
Old 03-01-2013, 12:11 AM   #7
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
I can't copy all the 750GB to other because I don't have space so please suggest how to make it readable from Windows OS`s.
 
Old 03-01-2013, 05:46 AM   #8
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 158

Rep: Reputation: 22
fdisk -l only shows the partition type, but not which filesystem it really contains. The partition type is a numeric id that is added to the partition. fdisk is reading this and displays it in the output.

I suggest to run the "blkid" command (as root) in a shell which will output the eventual name of the filesystem ("TYPE=xxxx"), amongst other infos. It will tell if the file system really is ntfs, or something different.

If the file system is not ntfs, you will have no other option than to borrow a harddisk so you can backup all files before you change the filesystem, i.e., use mkntfs to format the partition with ntfs, or use Windows8 for that task.

Last edited by bloody; 03-01-2013 at 05:57 AM.
 
Old 03-01-2013, 06:45 AM   #9
Randicus Draco Albus
Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Debian
Posts: 795
Blog Entries: 2

Rep: Reputation: 192Reputation: 192
Quote:
Originally Posted by rupeshforu View Post
I can't copy all the 750GB to other because I don't have space
If you need to, you can burn those files onto a DVD or a couple CDs.

Quote:
Sir recently I have bought external USB harddisk of size one TB and it was previously formatted as ntfs.I have made all my backup of size 750GB.
Did you do anything else?
Did you simply copy files to the drive or did you tinker with the drive first?
Did the drive work with Windows before you put your files on it?
 
Old 03-01-2013, 06:49 AM   #10
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 158

Rep: Reputation: 22
750 GB onto "a" DVD? That's at least 160 DVDs (or "a couple" of 1072 CDs)..
 
Old 03-01-2013, 10:57 AM   #11
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,283

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
copy/paste your results from df -Th from your Linux with that external HDD plugged in and mounted. that will help us help you further.

If it is ext2/3 there are some tools that you can install on the windows computer to gain access to the data, but if it truly is formatted NTFS and windows can not read it, sorry then windows is just being windows and there will not be much you can do.
 
Old 03-01-2013, 01:14 PM   #12
purevw
Member
 
Registered: Jan 2007
Location: Texas
Distribution: OpenSuSE 13, Kernel 3.13.3
Posts: 83

Rep: Reputation: 43
If you try to read a Windows disk that was not a disk on your current computer, there may be a problem with "ownership". You may be able to have Windows take ownership of the filesystem on the disk, depending on what version of 8 you are running. Linux can read it because fuse ignores many of the file permissions.

In your Windows file manager, right click on the drive, and look for "security". If your version of Windows has that feature, you can find the permissions and ownership information and change it.
 
Old 03-01-2013, 04:33 PM   #13
Randicus Draco Albus
Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Debian
Posts: 795
Blog Entries: 2

Rep: Reputation: 192Reputation: 192
Quote:
Originally Posted by bloody View Post
750 GB onto "a" DVD? That's at least 160 DVDs (or "a couple" of 1072 CDs)..

I saw GB and thought MB. My bad. Ignore me and carry on.

But given the OP's posting history both here and at DebianForumNet, asking exactly what he has done was the main purpose of the post. Was anything done to the drive before or after storing every package in the repositories on it?

Last edited by Randicus Draco Albus; 03-01-2013 at 07:42 PM.
 
Old 03-01-2013, 10:13 PM   #14
iHateInventNames
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
try testdisk program
 
Old 03-02-2013, 05:08 AM   #15
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
I am providing the output of blkid below
linux-k4gi:~ # blkid /dev/sdc1
/dev/sdc1: LABEL="Elements" UUID="1ADC8962DC893951" TYPE="ntfs"
linux-k4gi:~ #

I am providing the output of fdisk -l below
linux-k4gi:~ # fdisk -l /dev/sdc

Disk /dev/sdc: 1000.2 GB, 1000202043392 bytes
255 heads, 63 sectors/track, 121600 cylinders, total 1953519616 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: 0x0002846e

Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 1953519615 976758784 7 HPFS/NTFS/exFAT
linux-k4gi:~ #

I am providing the output of df -Th below
linux-k4gi:~ # df -Th
Filesystem Type Size Used Avail Use% Mounted on
rootfs rootfs 217G 121G 96G 56% /
devtmpfs devtmpfs 3.7G 60K 3.7G 1% /dev
tmpfs tmpfs 3.7G 1.0M 3.7G 1% /dev/shm
tmpfs tmpfs 3.7G 760K 3.7G 1% /run
/dev/sdb9 ext3 217G 121G 96G 56% /
/dev/sdb8 ext3 20G 173M 19G 1% /home
tmpfs tmpfs 3.7G 760K 3.7G 1% /var/lock
tmpfs tmpfs 3.7G 760K 3.7G 1% /var/run
tmpfs tmpfs 3.7G 0 3.7G 0% /media
/dev/sdc1 fuseblk 932G 702G 230G 76% /run/media/root/Elements
/dev/sr0 iso9660 4.4G 4.4G 0 100% /run/media/root/openSUSE-DVD-x86_640167
linux-k4gi:~ #

On examining suggest what to do now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount external windows formatted usb hard drive markyramone Linux - Hardware 4 01-21-2013 09:36 PM
where on /dev/ is a non-formatted external (USB) hard disk? dahliash Linux - Hardware 4 07-16-2010 06:44 PM
Mounting of USB sticks (not formatted as FAT32/NTFS) milomak Linux - General 25 11-17-2009 06:59 PM
Error formatted new external usb HDD and now won't mount CT_0000 Linux - Newbie 10 11-17-2009 04:13 PM
Trouble mounting external usb hard drive ufs formatted hexstar Linux - Hardware 1 05-24-2007 04:13 PM


All times are GMT -5. The time now is 07:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration