Ubuntu :: How To Fix A Hard Drive With Bad Sectors

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


ADVERTISEMENT

Ubuntu :: Hard Drive Sectors Lead To A Really Sluggish System?

Jul 26, 2011

My sister's laptop (toshiba satellite l550 running lucid) often runs really, really slow, even after a fresh install. Going through the gnome main menu, everything just lags by several seconds. Closing applications often takes a while, etc. I've run top and iostat to determine what the problem is and it seems to be IO-related. User processes and system processes don't take up more than a few percent, but the average load is usually over 2 even when I'm barely doing anything. Top shows that, whenever everything slows down, the 'wait' criterion is pretty high.

Now, I've also tried installing lucid to an external USB hard drive and that works fine. I'm currently running the S.M.A.R.T. diagnostic and so far I've got the attached screenshot to show. Only the criterion shown and the 'current pending sector count' are showing warnings.Any thoughts? Could the performance issue be related to the hard drive warning? I'm not planning to replace the hard drive just yet, because this laptop still has a two-year warranty.

View 8 Replies View Related

Software :: Determine USB Hard Drive Capacity In Sectors?

Mar 24, 2011

How would one determine the capacity in sectors or LBAs of a USB Hard Drive? If I know the USB device number, like from 'lsusb', is there someplace on the system to get other information about the drive? What I want to do is have a program go out and get this information just for the number of LBAs on the drive itself. Partition info doesn't matter for what I am doing.

View 2 Replies View Related

General :: Gnome Disk Utility Warned That Hard Drive Had Numerous Bad Sectors / Fix It?

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

Ubuntu :: Code To Access Hard Disk Sectors (LoopBack Device)

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

Hardware :: Scan And Fix Bad Sectors On Hard Disk Without Damaging Data?

Dec 19, 2010

How to scan and fix Bad Sectors on Hard Disk without damaging data?

View 5 Replies View Related

CentOS 5 Hardware :: Partitioning Hard Drives With 4K Sectors (WD20EARS)?

Jun 10, 2010

would anyone here happen have gotten one of these successfully up, running &, aligned on 5.5? i only want two partitions. one 2gig for swap and the rest mounted @ /. i've googled myself into complete and utter confusion.[Moderator edit: changed the title to something more informative

View 4 Replies View Related

General :: Software For Finding Bad Sectors On A Usb Drive?

Aug 6, 2010

I can't seem to find any programs or applications for linux that will find bad sectors of a usb drive. I have seen plenty for Windows, but I was wondering if there are any for linux.

View 8 Replies View Related

CentOS 5 Hardware :: 4k Sectors (Advanced Drive Format In WD Lingo) And RAID1

Dec 29, 2010

I have 2 WD20EARS hard drives on the way (2 TB green WD disks with 4k sectors) and I'll be installing Centos 5.5 in RAID1 on them (2 partitions, one 16 GB / at the beginning and the rest in its own partition). I read the following thread: [URL]

and it seems that I might be having problems with the 4k sectors (Advanced Drive Format in WD lingo). I'm confused as to what exactly to do. I was thinking of downloading Fedora 14 Live CD and partitioning there and then switching to Centos 5.5 to install. Will that work? Seems I want the md 0.9 metadata because it doesn't have the space limit for me (2 TB) and it's stored at the end of the partition so it avoids alignment issues. Will I be able to make that happen with Fedora 14?

View 2 Replies View Related

General :: Upgrade Internal 2.5" Hard Drive Vs External Usb Hard Drive For An Old Laptop?

Jan 25, 2010

I got a dell inspiron 1501 laptop with a 80Gb sata drive what is the best solution to add data storage space for someone that love to have multiples operating systems at hand Note: I use mostly linux so I won't need to change my laptop for many years maybe ...

View 2 Replies View Related

General :: Move Smaller Hard Drive To Partition On A Larger Hard Drive?

Mar 16, 2010

My parents bought a new hard drive for a laptop that I've owned for several years. It's much larger than the current one, so I plan on splitting it up to dual boot it with Ubuntu.I have no problem with partitioning a drive (I always keep a LiveCD handy), but my question is this: how can I go about moving the existing partition to the new drive? This is a laptop, so I can't simply plug the new drive into another slot.

Also, even if I manage to move it, will Windows still work on the new drive in a larger partition? I've had this laptop for quite a while, and I've lost the recovery discs that came with it a long time ago. I also have a lot of software without CDs to reinstall them with. This makes not reinstalling Windows a high priority.

View 3 Replies View Related

Fedora Installation :: EIDE Hard Drive Recognized As Sda Hard Drive

May 1, 2010

Trying to install Fedora 12 using the 6 CDs. Trying to install on an older x86 box.Problem is that when detecting my hard drive, Fedora 12 recognizes it as a sda hard drive instead of hda hard drive. I have no SCSI connected to my computer what so ever. It's an old fashion PATA Western Digital hard drive.If I proceed with the install, Fedora 12 only installs 200MB of the OS from the first CD only. No options for additional software or anything.

View 1 Replies View Related

CentOS 5 :: Crashing And What Appears To Be Hard Drive Errors / Bad Hard Drive?

Mar 21, 2009

Sometimes when I do anything write heavy such as transferring backup or downloading large files from the net, the machine crashes almost completely.

View 8 Replies View Related

Ubuntu :: Use External Hard Drive For Virtual Box Hard Drive?

Jun 3, 2011

I have a laptop with only 30GB storage and I want to install Lubuntu in virtual box but Lubuntu needs 5GB of storage space which i dont have. Could i use an external 160GB hard drive to act as the hard drive for the virtual machine without affecting the files that are already on the external hard drive

View 6 Replies View Related

Software :: Ubuntu Installed On External Hard Drive, Can't Startup Without External Hard Drive?

Jan 14, 2009

I have 2 ubuntu's: 1 on my ineternal hard drive, 1 on my external

When I startup without my ext drive =>GRUB error 21.

And when I plug it in I can choose: the standard ubuntu kernel is the one on my external, and the original one is listed under other...

I'd like to be able to startup without external hard drive and make the ubuntu on my internal drve the standard.

View 14 Replies View Related

Ubuntu :: External Hard Disk /Hard Drive Mounts As Read Only (Suddenly)?

Jan 17, 2011

I recently bought 320 GB Trancend external hard disk and working fine days back.Earlier i could copy from and to the hard disk with out any issue. I dont know what happened after that now i am not able to write any files in to the external hard disk. This is not NTFS formatted device. here is some of the out put from terminal.

Code:
sundar@sundar-sundar:~$ fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes

[code]...

View 7 Replies View Related

CentOS 5 Server :: Partitioning Hard On Hp Proliant Dl380 Doesn't Detect Hard Drive

Sep 11, 2010

I have been trying to install centos on my hp servers and when i get to partitions my hard drives the OS does not detect any harddrives. I have 4 scsi drives and i believe a intergrated smart array controller.

View 1 Replies View Related

Software :: Write / Unpack .qcow2 Hard Disk Image Directly To Real Hard Drive

May 22, 2011

is there a way to write/unpack .qcow2 hard disk image directly to real hard drive in Linux?(I know it's possible to unpack .qcow2 to .raw and then dd to drive, but I'd like to skip .raw since its large)

View 2 Replies View Related

General :: Hard Drive Malfunctions When Other Hard Drives Are Connected?

Aug 23, 2010

I have a SATA drive that worked fine. Then I installed two more hard drives into my system. When these hard drives are installed, if I try to access the SATA drive in Linux, it will start lightly clicking and then the drive will become unavailable. If I power on the machine without the other two hard drives then it works fine. What could be causing this to happen? I don't think it's heat because the two hard drives are far away from the SATA drive.

View 1 Replies View Related

Ubuntu :: 10.10 Installed On A 40gb Hard Drive And Have Setup Arch On A Seperate 160gb Drive?

Feb 12, 2011

i have ubuntu 10.10 installed on a 40gb hard drive and have setup arch linux on a seperate 160gb drive and am at the Choose bootloader screen of Arch Linux. My question is do i use arch linux to reinstall GRUB or do I choose none and configure GRUB to see both? if its the later can you tell how. Oh and Ubuntu is on sda and Arch is on sdb

View 6 Replies View Related

Ubuntu Installation :: 9.10 Onto A Usb Flash Drive Without Using Computers Hard Drive?

Jan 23, 2010

I wanted to know if i can install 9.10 onto a usb flash drive--without using my computers hard drive at all when running ubuntu off the flash drive-

View 3 Replies View Related

Ubuntu :: Bootable USB Drive Deleted OS On Hard Drive And Replaced It?

Aug 26, 2010

I just booted one of my computers from a usb drive I had installed Ubuntu 10.04 LTS to, and when I booted it up on that computer, it worked fine. Then, when I powered down the computer and booted it back up to the main hard drive, it booted to the same that my flash drive was running, but my flash drive was not plugged in!! How is this possible? Did it copy itself over my other operating system? There is no trace of it. By the way, that, too, was ubuntu 10.04.

View 2 Replies View Related

Ubuntu Installation :: Installing 11.04 On External Hard Drive Drive?

Jun 19, 2011

I would like to install Linux Ubuntu 11.04 on an external hard drive - its partitioned and ready for Linux.I've downloaded and burnt the .iso file to a DVD so its all good so far...First of all... is this possible without messing up my macbook? I don't particularly want to break into my macbook to disconnect the hard drive (I read on a tutorial for a previous version of Ubuntu that I'd have to do that... - does it still apply to 11.04?) - as it voids the warranty (I checked ).The reason I ask this is because I had a friend who partitioned their internal hard drive and installed Ubuntu on it. But after installation was complete they couldn't boot up Windows 7 or Ubuntu... and it resulted in them having to clean install Windows 7... - I don't want to end up in that situation

Second... If it is possible to install it without messing up my macbook... - Do I just follow the install instructions but just make sure that where possible I make sure that everything is installed on my external hard drive?...I really need someone to put my mind at rest that everything will run smoothly and that I'll be able to run Mac OS X as usual but also that I'll be able to boot from my external hard drive to run Ubuntu.

View 2 Replies View Related

General :: Copying A Partition From One Hard Drive To The Same Partition On Another Hard Drive

Mar 23, 2010

I am trying to move a whole bunch of files from one partition on one hard drive to the same partition on another hard drive. Can I mount the same partition (same name, different drives, i.e. /data on /dev/hda1 and /data on /dev/hdb1)and copy those files? Shutdown the server, take out /dev/hda1 and boot up with the new drive and it's /data contents.

View 1 Replies View Related

Ubuntu :: Replace A Hard Drive With Smaller Drive?

Jan 20, 2010

I have ubuntu server acting as a router installed on a 60 gig drive, i'd like to use that drive in another machine and replace it with a 5 gig drive. how can i transfer from the 60 gig drive to the 5 gig drive?

View 9 Replies View Related

Ubuntu :: How Do I Clone A Hard Drive To Different Sized Drive

Jun 23, 2010

I am soon going to have to return my intel ssd for replacement. Therefore, I am going to be cloning the 160gb drive to a 320gb drive to keep my system settings while I am waiting for my new drive. I will not change the size of the partitions to fill the 320gb drive. I'll just change the grub settings if I absolutely have to. After that, I am going to have to clone the 320gb drive back to the replacement 160gb drive. Am I going to have problems doing that since I will be going from a larger to a smaller drive?I typically use Clonezilla with the default settings.

View 2 Replies View Related

Ubuntu :: Access To Ntfs Hard Drive(Drive #2 That Is)?

Oct 7, 2010

I want to load ubuntu on my home pc. I have two hard drives but not have enough dvd's to back everything up on #2 hard drive. If I load ubuntu on drive 1 can I get in two drive two?

View 2 Replies View Related

Fedora Hardware :: When Safely Remove Drive Menu Is Clicked On External Hard Drive

May 30, 2011

I have 350GB external Western Digital USB hard Drive.When I try to remove it from the system by executing Safely Remove Drive menu the fedora 15 system gets stuck.The processor starts giving a hum sound and it goes on even if it is left for half an hour in the stuck state.The Mouse is not working and everything is halted.

View 13 Replies View Related

Hardware :: Hard Drive Replacement - When Disconnect 4GB Drive System Fails To Boot Up And Complains - Error 21

Mar 20, 2010

I have minor problem with upgrading a hard drive. I am running an old pentium lll with two hard drives. On the first hard drive I have two partitions of around 90GB each. On the first partition is installed winXP and on the second partition I have Suse 10.3, both booted by grub and living happily side by side. My second hard drive (which is formatted for windows is only 4GB.

My problem arises when I try to replace the 4GB with a 80Gb hard drive. When I disconnect the 4GB drive the system fails to boot up and complains with error 21.

View 8 Replies View Related

Red Hat / Fedora :: Move Hard Drive Installation To External Drive?

Mar 30, 2011

i have installed fedora 14 with so many libraries ,development tools installed on my pc but i usually have to present some projects which can run on my system .........and can't be executed or compiled due to absence of libraries and tools there so, i there some way to so that i can use this current installation on my hard drive of my pc to some external media like external hard disk and plug and use that installation anywhere on any system..

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved