Fedora Hardware :: Added Second Disk - Bad Sectors?
Jun 19, 2010
I've just added a second disk to one of my computers. It is a 500GB SATA. It is the second drive according to the BIOS. Fedora calls it /dev/sdb. So far so good. This box is running Fedora 13 final. Never any problems until the addition of the new disk. Palimpsest says that this disk has a LOT of bad sectors. This disk is a storage drive. I want to address the problem but don't know what to do first. My thought is to rsync all the data to my external 250GB disk bedore I do anything else but I'm mot sure if I should just yet. Maybe I should run some diagnostics on the drive? If so, what? How about the tools Disk Utility offers? Should I use the Smart Utilities? What other Linux tools are available and are they reliable? Maybe I should install XP on the main disk and use Windows' disk tools? If I should lose all data it wouldn't be the end of the world but I'm not sure how "in sync" the 2 storage drives actually are.
View 10 Replies
ADVERTISEMENT
Sep 7, 2010
I have some errors on my drive and I fear it may be faulty. However there are a few things I would like to try before replacing it through the manufacture or buying a new drive of my own seeing as this is a brand new computer.
Here is my computer and drive:
Acer 5251-1513 Laptop
Toshiba MK2565GSX
Running Fedora 13...now
Here is what is going on. Tried several version of Ubuntu 10.4 (studio, 64bit, 32 bit) and was having many errors during startup and having to press F to fix. Then I lost something with Gnome and the GUI would not function, and I did not know how to replace it. Tried a few other distros but could not get them to work (mostly on my part I am sure.) Then after some forum talk, thought it might just be Ubuntu unable to handle my drive. Now on Fedora 13 and a warning comes up every time I startup. "Disk has many bad sectors"
In the disk utility under the SMART Data it has 2 of the following warnings:
5- Reallocated Sector count..with a value of 72 sectors
197 Current Pending Sector count...with a value of 35 sectors
Total Bad Sectors 108.
The next day that went up to 110
I have used Fsck several times through a live CD, but the problem persists. Trying to understand bad blocks and how to write them to a file?
View 3 Replies
View Related
Dec 19, 2010
How to scan and fix Bad Sectors on Hard Disk without damaging data?
View 5 Replies
View Related
Apr 17, 2011
To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command. Is there a possible problem with the source being copied onto bad sectors on the destination disk? If so is there a way to prevent this from happening? A typical dd command I use looks like: dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror. Is this the recommended command for cloning to a disk of equal size?
View 1 Replies
View Related
Jan 26, 2011
I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it has the following configuration.
Code: $> sudo fdisk -l /dev/loop0
Disk /dev/loop0: 10 MB, 10977280 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/loop0 doesn't contain a valid partition table Now what I want to do is develop a c++ program to read & write files to this loop back device,which I'm using to simulate an actual hard disk,at the blocks & sectors level. So far I've come up with the following code. But I'm still unable to read files from the hard disk one block at a time.
Code: #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char block[512]; int length=0;
cout<<"Implementation of the File Handler Read Method..."<<endl;
FILE *f = fopen("/dev/loop0", "r");
if(f == NULL) {
cout<<"Error In Opening the HardDisk File Retuning Error..."<<endl; return -1; }
//Read One Block of Data to Buffer length = fread(block, 1, sizeof(block), f);
/* Do something with the data */ cout<<"Length : "<<length<<endl;
return 0; }
When I run this Program All what I get is the message for NULL. "Error In Opening the HardDisk File Retuning Error...". So I could open the loopback device as a file an access it at the sectors & block level.
View 1 Replies
View Related
Feb 21, 2010
I recently tried Fedora on my laptop (previously Debian; I was bored one day) and gnome-disk-utility (palimpsest) warned me that my hard drive had numerous bad sectors. I re-installed Debian to find that this software was installed before so why had it not warned me?
When I load the disk utility, it says SMART is not available. I've got smartmontools installed, I can run a self-test with smartctl but I don't think this shows bad sectors. I've tried starting smartd on startup but the disk utility never changes from "SMART is not available". It is possible for it to work with this hardware as it works in Fedora on this laptop; any ideas?
View 3 Replies
View Related
Sep 29, 2010
I recently buy a Corsair F60, and F14 (and F11) said there is MANY bad sectors on my SSD. Is it a smartctl bug ? how can I confirm or infirm that ?
[root@localhost ~]# smartctl /dev/sdc -a
smartctl 5.39.1 2010-01-28 r3054 [x86_64-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
[code]....
After scanning selected spans, do NOT read-scan remainder of disk.If Selective self-test is pending on power-up, resume after 0 minute delay.
View 2 Replies
View Related
Apr 11, 2010
I'm currently using Fedora 12 as seen in the subject, and I'm fairly new to it, but recently I've had a problem with my HDD. The problem is bad sectors and I've read up on how they occur but not many placessearched actually explains how to deal with this. When I start up my laptop (Acer 5610z) I get a SMART error saying "predicted disk failure, please back up data and replace drive." Along those lines, so I got curious and used Disk Analyzer this roughly what it says:
Reallocated Sector Count: Failing Normalized:129
Worst:129
Threshold:140
[code]...
View 7 Replies
View Related
Aug 31, 2011
I've recently added a new hard disk and due to mother board controllers this new hard disk is known as sda.Before that my boot partition was /dev/sda3 and know this changed to sdb3.Whenever grub menu appears and I choose opensuse,it can't find /dev/sda3 .It seems that I should edit menu.lst or change boot loader parameter.something like root (hd1,2).But I don't how I can do this with opensuse boot loader.Though I could do this with CentOS easily.
View 7 Replies
View Related
Jun 6, 2011
Can someone please tell me how a second fedora line was added to my grub. I took a look at my /boot/grub/ menu.lst file and noticed it has 2 very similar fedora lines.
View 4 Replies
View Related
May 6, 2010
Will this come with updates or or do we need to move to F13 for 3D capabilities?
View 2 Replies
View Related
Jul 22, 2011
I just started playing with iscsi and have some issues.
This below works great (I can connect to this new device from my clients):
Code:
tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2011-07.home.joma:jomamgmt01.data
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sdb
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
[Code].....
The backing-store does not get added.
View 3 Replies
View Related
Mar 9, 2011
How can I add a user? I used the command "useradd -m <username> -p <password> but I cannot login to this account. It says " Authentication Failure". I want a single Command to Add user with password.
View 2 Replies
View Related
Mar 6, 2009
Yum 'pre-upgrade' added new kernel to menu.lst, but I don't boot from that GRUB; I boot from GRUB on another partition. The new kernel is ready to install, but the GRUB that I boot with ain't linking' to the pre-loaded kernel.
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,3)
# kernel /boot/vmlinuz-version ro root=/dev/sda4
# initrd /boot/initrd-version.img
# boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,3)/boot/grub/splash.xpm.gz
hiddenmenu
title Upgrade to Fedora 10 (Cambridge)
kernel /boot/upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade stage2=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/install.img ks=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/ks.cfg
initrd /boot/upgrade/initrd.img
title Fedora (2.6.23.1-42.fc8) <---This is the current entry from OTHER GRUB.
root (hd0,3)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.23.1-42.fc8.img
View 2 Replies
View Related
Sep 10, 2009
After new kernel update I noticed that I have 2 different versions of 1 kernel installed.
Kernels are:
2.6.30.5-43.fc11.i686.PAE (this one I use because previous kernels are all .PAE)
and
2.6.30.5-43.fc11.i586
Should I now expect any problems with later kernel releases or can I leave it this way? I boot in the .PAE kernel.
View 14 Replies
View Related
Feb 18, 2010
I installed qt-creator 4.5.3 in fedora 12 (gnome) . I then created an empty Qt projet and added a main.cpp as below
Code:
#include <QApplication>
#include <QPushButton>
[code]....
View 2 Replies
View Related
Mar 3, 2010
I have recently added 2 500GB sata drives to my machine. I have a Supermicro X6 mobo (yes its rather old) and the Bios recognizes the drives as Master 2 and Master 3 ide , but the linux will not recognize the drives. The system is running RH8 kernel 2.4.31 and i dont have the option of upgrading the kernel at the moment. Is there any way to get the linux to recognize the drives?
View 8 Replies
View Related
Dec 2, 2010
is it possible to join a Fedora box to a Windows Domain. Will the box be automatically added in DNS?How do I configure Fedora afterwards so I can login with a domain user on the box?
View 1 Replies
View Related
Jun 10, 2009
Anyone running fedora 11 have any luck getting a smart card reader added as a security device under firefox?
Specifically from firefox: Edit-Preferences-Advanced-Encryption tab-Security_Devices-Load;
Enter arbitrary name and "/usr/lib64/libcoolkeypk11.so" as the module.
This worked fine in fedora10 and was the necessary step to getting a card reader to work with firefox. In fedora11 (with firefox beta) the browser just comes back with nothing, it doesn't even respond. Note I am familiar with the concept of pki and certificates as well as certutil, pkcs11_inspect, pklogin_finder, etc. Also note utlities like pkcs11_inspect and pklogin_finder and esc all work and communicate with the reader and read the contents of the card but smart card login configured via the authentication applet (as working in fedora 10) is not working either.
View 3 Replies
View Related
Feb 16, 2011
I've just upgraded my serv from fedora8 to fedora12 and got a problem. The httpd and vsftpd add a junk in the beginning of html files. Png, tar and other files are ok. When I make a request to localhost everything is ok.
Code:
#telnet localhost 80
GET /1.html
<html>
</html>
but from any other computer.
Code: .....
But this is not an apache problem. When I dl html files from ftp I got the same problem. Iptables is swithed off.
View 6 Replies
View Related
May 12, 2011
I have added a new user by following command :
root# useradd -u 100 -g 120 -d /product -s /bin/bash sandesh
I am not able to access it in /export/home directory..?
View 1 Replies
View Related
Aug 3, 2010
I have an Acer tiny desktop using laptop components and I want to replace its small laptop hdd running Vista with a Kingston SSDNow V Series Boot Drive 30GB and install Ubuntu, since it will support TRIM. I am aware of the current issues on some new hard drives with 512 vs. 4k sector sizes and the necessity to align sectors for those drives. And I know I've seen some posts or discussion of aligning sectors for SSD's.
I'll be doing more searching for info on this, but my previous searches on the 4K sector alignment issue for the new WD hdd's on linux were confusing. Does anyone have definitive information on the necessity of aligning 4k sectors on current Linux kernels, or on whether aligning sectors is necessary for SSD's?
View 9 Replies
View Related
Oct 16, 2009
my Fedora 11 system is not starting anylonger. It stops with the message:
Code:
VFS: Can't find ext4 filesystem on dev dm-0
The system told me since a while, that a lot of the sectors of one disk of the (software) RAID compound are failed already. So tried to disconnect each of the disks and start them separately. Unfortunaltly this is not working (for one its is not working at all, the other wents the same far as with both), when I tried to recover the system with the Fedora DVD, it said no distribution found. I am quite new and do not know so much about linux system, so i do not know what further information you could need. Maybe it can be important, that both disks are encryped (the system wents so far, that I can type in the password).
View 2 Replies
View Related
Feb 20, 2011
I have a massive ZFS array on my fileserver. Whenever a disk reports bad sectors to smartmon, I order a replacement, and I shelve the failing one.
And by "shelving the failing one", I mean that I give it a low-level format if applicable, or a destructive badblocks run to possible claim spare sectors to replace the bad ones, then use it to dump my DVDs (and lately BluRays) on, so that I can use it with my HTPC and bring it with me when going to my friends to watch movies. It's just a really easy and portable way to watch movies with XBMC. I have the stuff on pressed discs already, so I'm not dependent on their reliance, and the dying drive just gets a hospice life serving as quick-access media storage. Keeping in mind Google's reports that drives are 39x more likely to die within 60 days after their first SMART error, I'm expanding that period by the fact that these drives mostly remain on their shelves and are only plugged into the SATA bay once or twice every year.
I'm just saying this to make clear that I'm not confused about these drives dying, and I'm not looking to elongate their lives ;)
So. Sometimes these drives, after a badblocks run, simply claim fresh sectors from the spare pool, but sometimes there aren't any left, and I face the fact that there are bad sectors in my FS. That's not a problem if you use one of a set of linux filesystems, as mkfs.* often takes a badblocks list as input. But seeing as I sometimes bring a drive or two to my girlfriend's (Mac) or one of my friends (usually Windows), I've decided to use NTFS for these things. Up untill now, when a drive had unrelocatable bad sectors, I've just written data to it, re-read it, and files that were bad were put in a "BAD_SECTOR_FILES" folder on the drive.
Sure, it works, but it would be really nice to be able to just mark those sectors bad instead. It's a lot of hassle the other way around.
So I read some posts, of which most quickly switch subject to the often accurate one of "replace your drive!", and some suggest spinrite, but really, I don't see why I should pay that much money for such a trivial task.
The alternative is to use ext3, but I'd like to hear if someone knows how I can feed badblocks output to mkfs.ntfs, so that the bad blocks aren't used. Or if there are other tools (I could use Windows in a VM) that do the same. I'm confused about chkdsk, it seems the bad sectors thing is FAT only?
View 1 Replies
View Related
Jan 10, 2010
I have some bad sectors on the primary HD and want to move everything to a new HD. What would be the steps to do this. I have 5 running websites on the server. The HD are the same make and model. My current HD setup is
Code:
1 Linux LVM 232.65 GB 1 30370 LVM VG server1
2 Extended 243.17 MB 30371 30401
5 Linux 243.17 MB 30371 30401
View 5 Replies
View Related
Jan 20, 2010
I recently got a bad virus that wouldnt let me reinstall Windows so I figured I would install Ubuntu and give it a go, but now it says my hard drive has "many bad sectors" a quick Google search shows many ways to fix this in Windows, but how do I do it in Ubuntu?Easily since Im just getting the hang of things.
View 8 Replies
View Related
Feb 17, 2010
Since a few days all of my computers (3) running Ubuntu 9.10 report on startup that my external drive has "lots of bad sectors".I have checked this disk on Windows XP with chkdsk and with the SeaTools diagnostic tool dowloaded from Seagate. Both report no problems.Does anyone else suspect these Ubuntu "bad sector" warnings are unreliable?
View 9 Replies
View Related
Jan 15, 2011
having problems loading any OS because of bad sectors. will only load off live cd 9.10
View 1 Replies
View Related
Mar 31, 2011
I used to have windows xp. But recently I started having a message at startup telling me that my disk might be failing and I should run the test (which would crash and reboot th laptop). Then after a while windows wont even start. So I tried to use ubuntu netbook live from a usb and it is working fine ! I can even access all my data on the hard disk, although it is telling me that the hard disk is failing and that it has 1024 bad sectors. I have only one hard disk and one partition (120 GB). Can I just install ubuntu and somehow block the bad sectors? (I don't want windows anymore) and is there any way I could keep my old data on the hard disk without backing it up (it is not really important btw).
View 8 Replies
View Related
May 24, 2011
Just came up my mind about repairing the bad sectors using software.Does using a software really repair the bad sectors in the hard disk?
View 5 Replies
View Related