Hardware :: Command To Close "bad Sectors" From Ubuntu Via Fsck?
Dec 25, 2010
Palimpsest Disk Utility shows that /dev/sda3 partition has too many Bad Sectors: 1732.
I know, that my HDD is dying. But if I'm not mistaken I can close this sectors from system, because when Linux tries to read file with bad sectors - it just stops.
Can I ask you to give me terminal command to do so? I've searched on Wiki and in Man, but.. i'm bad searcher
View 10 Replies
ADVERTISEMENT
Nov 14, 2015
I am running Wheezy 7.9 (32 bit) and using Gnome Classic desktop. I have recently had several issues with system "crashes" and such, see some of my recent posts, and for now things seem to be working okay. As part of my attempts to "fix" the problems I looked at the hard drive using the SMART disk utility, and also ran "smartctl". The SMART utility reports that there are 3 bad sectors on the drive. When I run fsck, from a live CD, it does not report finding bad sectors. So why would fsck not find something that is reported by smartctl? Which one should I believe?
As a precaution I am now making daily backups of my /home directory and purchased a new HD just in case. Have not yet installed the new HD but at least I am prepared.
View 10 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
Feb 25, 2010
I have Ubuntu 9.10 installed on my HP desktop, but I'm running an older version (8.10) on a live CD so I can at least get online to ask for some When I tried to log on earlier it went to a command prompt and said the 'file system check failed' and to run fsck manually. I entered 'sudo fsck' at the prompt and I selected "y" to fix all the bad inodes, when it was complete it told me to restart, I then entered 'sudo restart' at the prompt and it said 'sudo uuid unknown'. I have not installed anything recently and I'm not sure what to do.
View 3 Replies
View Related
Sep 25, 2009
When I do a forced fsck, I would like to have a log file to look at after boot.
When I check /var/log/ there are no files there with fsck output
I've run force fsck in these ways:
shutdown -rF now
-and-
touch /forcefsck
View 1 Replies
View Related
Jan 19, 2011
how to close thunderbird fromterminal? I don't mean to kill the process,I just would like a "clean" exit.I'm asking this because my setup is so that the thrash should be cleared at exit so and the deleted email are deleted from the server. I then set a cron task so that thunderbird is killed but apparently doing so the emails are not deleted from the thrash (whereas they are if I close the application), and I'd like to change the task to close thunderbird rather then kill the process.
View 6 Replies
View Related
Jun 14, 2011
i know the command to start the x server is "startx" and ctrl alt delete is the keyboard short cut or atleast on slackware, to close X. i wanted to know what the comand is though.
View 5 Replies
View Related
Feb 3, 2011
I'm running into some problems using pkill in my scripts. I'm using a program that needs to dump.
View 4 Replies
View Related
Sep 24, 2010
I am using Ubuntu 10.04 and installed Wally 2.4.
I have few questions:
1) Currently I run wally with command line by running
Code:
It works, but as soon as I close my terminal, wally terminates. Is there anyway I can make it not terminate?
2) why is that option disabled?
View 4 Replies
View Related
Mar 12, 2011
I would like to Close/Open port 21 using command line. I have an FTP server and I don't want to have the port open all the time. I need only two hours by week to be open port 21 from outside to inside.So I need to know the command line for opening and closing the port 21 then I will implement this in a script into cron.hourly.
View 2 Replies
View Related
Aug 11, 2010
I'm trying to close the CD tray with the command eject -T on a laptop. It works only to open it, but not to close it, i have to do it with my hands
View 2 Replies
View Related
Sep 14, 2010
How can I force all currently open sockets in linux to close from the command line?
View 2 Replies
View Related
Nov 12, 2010
I would like to know which command should I enter in the execute dialog (opened with Alt+F2) so the dialog to close session and change the user opens.
View 5 Replies
View Related
Jan 17, 2011
i am working on a project that uses message queues. i am able to successfully create them and they are working fine. now the problem is to close/remove message queues without software or mq_close / mq_unlink command. earlier when i worked on rh9, there is ipcs utility. we use ipcs to see all the existing message queues and ipcrm to remove them. however ipcs is not working for message queues in RHEL 5.3. Neither ipcs shows the exisiting message queues and neither we are able to use ipcrm. Plz guide to close/remove the queues with ipcs or any other command/utility from shell itself.
View 1 Replies
View Related
Jul 22, 2010
Can anybody tell me what kind of fsck errors are found on a system?
View 5 Replies
View Related
Jul 17, 2011
1. I didn't like the icon theme and changed it to Ubuntu Mono Light. But is there a way to get the Min/Max/Close buttons to how they are in Radiance when maximized, or is that dependant on something else?
2. Is there a way to disable the Unity dock, but not the Unity feature where the Min/Max/Close go into the command bar?
View 3 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
Sep 12, 2010
I was looking in the disk utility and my primary slave has a few bad sectors, is there a way to fix this? I have attached a screen shot.
View 4 Replies
View Related
May 24, 2010
since i've installed lucid, when booting up between the splash screen and the desktop i get lines of multiple i/0 errors. i checked disk utility and it's reporting multiple bad sectors on my hard drive
i don't think that the lucid install is the culprit but since i have no idea i was curious if anyone thinks it's related. not worried about the hard drive, i have a back up formatted and ready to go if this one goes nuclear.
View 1 Replies
View Related
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
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
Apr 1, 2010
A hard disk occasionally fails. Standard checks like fsck and scandisk fail to report any problem. Is there other software to exercise the disk much more thoroughly so that bad sectors have no chance of being missed?
View 1 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
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
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
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