Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-23-2012, 02:49 PM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 5
Rep:
|
hdd issues
hello,
I was having a hdd issue on windows, so I decided to come to linux. My hdd was formatted with ntfs but it wasn't recognized as such anymore. Windows said 'The disk in drive F is not formatted. Do you want to format it now ?'. Fortunately, linux was able to read its contents with no error. I didn't know how to format it to ntfs again without losing its contents, so I decided to use another hdd that I hadn't used for some time to make a copy just in case I messed it up. So I tried both cp and dd to copy it from sdb to sdc, but in both cases, after a few minutes, it said 'in/out error'. I don't know how to access whether this second hdd is damaged or not, nor how to repair the ntfs file system in the first hdd so that windows can read its contents.
So there are I am with two different problems on two hdds. I'm losing hope. Can you help me ?
Thanks.
Last edited by KBell135; 04-23-2012 at 02:52 PM.
|
|
|
04-23-2012, 03:20 PM
|
#2
|
Member
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594
Rep:
|
You can check your disk with smarttools if you download gparted and put that on a usb stick or a cd you get a bootable disc including the smarttools which you can use to check your disc for errors. It seems your disc has serious errors and it is difficult to analyse if it is only the file-system that is corrupt or that there are physical errors on the disc. Because dd gives i/o errors it looks like physical errors. dd has a option noerror to continue copying despite read errors. It probably won't give you a bootable drive but it will allow you to save (some) of your data.
|
|
|
04-23-2012, 04:43 PM
|
#3
|
LQ Newbie
Registered: Apr 2012
Posts: 5
Original Poster
Rep:
|
I'm not sure you understood what I meant.
I have two disks, and one is fine but his filesystem is damaged, while the other is perhaps dead. These are two different disks, so there are two different questions:
1. On the disk with the ntfs problem, how can I make windows see the contents of the disk again, as Linux does ? To put it differently, what does linux do that windows don't, regarding ntfs files ? Why is linux able to see the contents, and not windows, and how to make it so that windows is able to see the files again, without deleting the files ?
2. From my newbie point of view, the second disk seems dead, because of the in/out errors. But then again, I'm a newbie, and it's all the weirder than this disk was just barely ever used.
The in/out error returned when I use dd is "error splicing file input/output error". How can I make sure that it is dead, and if not how to repair it ?
Thanks
|
|
|
04-23-2012, 04:52 PM
|
#4
|
Member
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594
Rep:
|
1)The disk with the ntfs problems has probably hardware problems you can use the above program to look at the smart data of the disc. To look if the disc really has hardware problems. If so you shouldn't use the disc anymore and get as much data from it as possible. If it's only the file system thats corrupt then you should also save your data and reinstall the os and then put your data back.
|
|
|
04-23-2012, 05:01 PM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Would be really a strange coincidence that your first disk has problems with its file-system while your second disk is having problems.
It is much more likely that your first disk is having problems with the file-system, because it is dying. I would recommend to download the manufacturers' diagnosis tools to test the disks.
|
|
|
04-24-2012, 03:07 PM
|
#6
|
LQ Newbie
Registered: Apr 2012
Posts: 5
Original Poster
Rep:
|
Yeah I know this is all very unlikely and that's why I'm so sad it's happening to me. But I really think I have two unrelated problems happening at the same time, since I checked copying from a third disk to the second one, and I still get these "error splicing file input/output error".
I haven't found any diagonistic tools for my hard drive, which is a wd caviar green 2TB. Are there even any for this disk?
But doesn't linux provide some tools to detect whether it's working properly or not?
And how about the first hdd ? It's really weird that linux sees no problem, but windows does and asks me to reformat it. How can I repair it, whether from windows or linux, so that I can read it again in windows ?
Thanks
|
|
|
04-24-2012, 03:17 PM
|
#7
|
LQ Newbie
Registered: Apr 2012
Location: Cyberspace
Posts: 26
Rep:
|
This would be my suggestion:
If windows is your issue remove windows as a factor. Partition a HDD, install a Linux Distro (aka dual boot), boot up in the new Linux Distro partition and copy the necessary files over to a clean HDD/Partition as DATA versus an INSTALL. If they're corrupt, you don't want to mess up another HDD entirely.
As for the HDD issues, they're addressing your HDD due to the title of the thread versus what you want, which is a quick fix for the file incompatibility.
Good luck!
|
|
|
04-24-2012, 03:33 PM
|
#8
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by KBell135
YI haven't found any diagonistic tools for my hard drive, which is a wd caviar green 2TB. Are there even any for this disk?
But doesn't linux provide some tools to detect whether it's working properly or not?
|
Linux has rather generic tools for that, I would recommend to use the manufacturer's tool. The one for WD can be found here: http://support.wdc.com/product/downl...sid=30&lang=en
Download the iso version and burn it as image to a CD, then start the computer from that CD.
|
|
|
04-24-2012, 06:27 PM
|
#9
|
LQ Newbie
Registered: Apr 2012
Posts: 5
Original Poster
Rep:
|
Hi TobiSGD,
I tried to do what you said. I Downloaded the iso version and burnt it as image to a CD, then started the computer from that CD, but it said: "error 120: no disk found". I'm 100% that a WD caviar green is connected to that computer though.
|
|
|
04-24-2012, 08:35 PM
|
#10
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Sometimes those testprograms have problems with the AHCI mode of modern disk drives, due to the fact that they run on DOS. Change it to IDE mode for the time of testing and it should work.
|
|
|
04-25-2012, 01:46 PM
|
#11
|
LQ Newbie
Registered: Apr 2012
Posts: 5
Original Poster
Rep:
|
I'm sorry I'm not familiar with the procedure you want me to do. What is it you want me to do exactly ? My disk uses sata, but if what you're asking is to connect it to a IDE port using an adaptator, I'm afraid I don't have it.
Change what to IDE mode, and how ? (what is IDE mode and anyway?)
And are you sure the fact that the CD doesn't find hdd is due to that issue ? I've just read on the net that AHCI is only supported by Vista and newer OSes, but I could read the hdd from XP, so perhaps the HDD is not AHCI at all ?
Last edited by KBell135; 04-25-2012 at 01:55 PM.
|
|
|
04-25-2012, 02:53 PM
|
#12
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by KBell135
I'm sorry I'm not familiar with the procedure you want me to do. What is it you want me to do exactly ? My disk uses sata, but if what you're asking is to connect it to a IDE port using an adaptator, I'm afraid I don't have it.
Change what to IDE mode, and how ? (what is IDE mode and anyway?)
And are you sure the fact that the CD doesn't find hdd is due to that issue ? I've just read on the net that AHCI is only supported by Vista and newer OSes, but I could read the hdd from XP, so perhaps the HDD is not AHCI at all ?
|
He's referring to the setting in the BIOS. The CD is booted from the BIOS, there is no OS being loaded (be it any version of Windows or Linux). The disk utility might not support AHCI mode, so you'd need to change the hard drive to IDE mode in the bios before being able to run the disk check utility on it.
|
|
|
04-26-2012, 06:22 AM
|
#13
|
Member
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252
Rep:
|
IDE mode means ICE compatibility mode. The drive is connected to the SATA port, the setting is changed only. There is usually a page in the BIOS setup that lists the available SATA ports and related settings.
AHCI is older than vista. It comes with the SATA technology. win xp can use it, by installing special drivers during the installation, same as RAID mode.
You first have to verify that the drive is detected by the BIOS. If it has serious problems, it can die in the next day or even in the next reboot (it happened to me with a cdrom drive). If you hear any strange clicks you didn't hear in the past and data access is quite slow, perhaps there is problem.
Please, verify cables and connectors, too. A loose or defective connector can cause random errors.
Try another SATA port, to exclude the case one of them is defective.
An idea is to boot with just one hard drive connected to the computer each time, so you have to check for this one only. Perhaps it is not highly probable that both problems happened together, however it is not impossible. So, you have to check every case.
Perhaps you need to set a jumper on the hard drive, to run in basic SATA I mode (1.5 GB/s). WD doesn't provide such a jumper with their drives (I bought 3 of these drives last year), so you have to look for a jumper on any other drive.
These new WD drives (marked Advanced format) are somehow tricky because they have sectors of 4096 bytes but the firmware shows them as being 512 byte/sector drives. This can be a problem with some hard drive tools. To use such drives in a xp system, it is better to format them with a software like GParted using the align to MiB option. The xp format doesn't align correctly the partitions. vista format uses the MiB alignment by default. Nevertheless, this is related rather to performance issues, it wouldn't make the drive "invisible". I used myself them on a xp system, even formatted with the wrong alignment.
|
|
|
All times are GMT -5. The time now is 09:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|