LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-18-2013, 02:04 PM   #1
mitra86
LQ Newbie
 
Registered: May 2009
Posts: 15

Rep: Reputation: 0
Problem with my external hard drive


Hi,
Please help me. today I tryed to mount my external hard drive in fedora bud i couldn't. I found a solution from this website. I did this command "mkfs.ext3 /dev/hdb1".
Now I cannot see my external hard drive in windows. What should I do? I have a lot of important data on it.
Thanks
 
Old 11-18-2013, 02:09 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I hate to be the bearer of bad news but that command formats the hard drive with the ext3 file system, removing all data on it. There's a possibility you could use a data recovery program to get your files back if you've not done much else, but I would be getting used to the idea that the data is gone.

Last edited by 273; 11-18-2013 at 02:27 PM. Reason: typo correction
 
Old 11-18-2013, 02:21 PM   #3
mitra86
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by 273 View Post
I hate to be the bearer of bad news but that command formats the hard drive wit the ext3 file system, removing all data on it. There's a possibility you cold use a data recovery program to get your files back if you've not done much else, but I would be getting used to the idea that the data is gone.
how can I see my hard drive in windows.....I want to try to recover my data (((
 
Old 11-18-2013, 02:26 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
You may be able to use something like Photorec, though I have never used it so cannot vouch for its effectiveness:
https://en.wikipedia.org/wiki/Photorec
http://www.cgsecurity.org/wiki/TestDisk_Download
http://www.cgsecurity.org/wiki/File_...ed_By_PhotoRec
However, as I said, you do need to be prepared to face the possibility that some or all of your data is lost. Now is, sadly, too late to make that backup you should have of any data you care about.
 
Old 11-18-2013, 02:36 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
What distribution/version are you running?

/dev/hdb1 references an internal IDE/PATA drive connected to the 1st controller as a slave. Any external drive should be something like /dev/sdb1. I assume what you posted was a typo.

testdisk and photorec are two utilities that can be useful in recovering lost data.
 
Old 11-21-2013, 03:50 PM   #6
mitra86
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks alot.
I used Recovermyfile. it is scanning for about 16 hours and I estimate it will last till tomorrow. I hope that my files will be recoverd because i can see some of them in this software now.
 
Old 11-27-2013, 10:09 PM   #7
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 14.1 kernel 4.1.13 gcc 4.8.2
Posts: 246

Rep: Reputation: 22
I would suggest learning what the different commands that can manipulate disk drives do before following any guide online. This will save you from problems such as this. A couple to watch out with are dd and rm. Back in the mid 90's when I was new to Linux and I had just finished installing Slackware, I type this command in while as root: 'rm *'. I ended up kissing my Slackware install good bye and ended up installing again. I did learn to have a healthy respect for that command after that. Another thing I would recommend doing is keep a backup of anything that is important.

Edit:
If the disk had NTFS on it originally but your Linux kernel does not have support for it built in then, you would not be able to mount it under Linux. In which case you'd need to compile your own kernel, configuring in NTFS. As for Windows, don't expect it to mount any Linux file systems at all.

Last edited by Arcosanti; 11-27-2013 at 11:37 PM.
 
Old 11-28-2013, 02:10 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
we still do not know what OS was used
/dev/hd???
is still used in RHEL5
but RHEL6 is using sd for BOTH

if this was say fedora 19
then that hd location would be useless and nothing would have been wrote
 
Old 12-05-2013, 08:34 AM   #9
Tech7
Member
 
Registered: Oct 2013
Location: Maine
Distribution: BT 5
Posts: 68

Rep: Reputation: Disabled
You most certainly should not run commands if you do not know what they do!! OUCH! To answer some other questions you had, if it was recognized by Windows originaly it is probably NTFS or Fat, or WAS one of those. If they are not recognized in your Linux OS version, you need some components set up for that file system.

As far as formatting it to the ext3 "mkfs.ext3", ext3 is a Linux format, and will only be recognized by Windows if you install special tools to read the drive. Overall, if you intend to use the drive on both Windows and Linux, you should not only choose NTFS, but install the components into your Linux system for the NTFS as well.

Or, you could shun any Windows machines and convert completely to Linux formats! : )
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hard drive problem Mart1962 Linux - Newbie 2 10-07-2011 09:33 AM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
External USB Hard Drive Problem amx Linux - Hardware 0 07-05-2007 07:49 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
External hard drive problem anyone? ultimatenoob Linux - Newbie 2 11-08-2005 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration