Ubuntu :: 9.10 Live Cd Fixing Bad Sectors
Jan 15, 2011having problems loading any OS because of bad sectors. will only load off live cd 9.10
View 1 Replieshaving problems loading any OS because of bad sectors. will only load off live cd 9.10
View 1 RepliesI did set up a new server (with mail, apache and lots of other stuff) and was not aware that the new harddisks of type WD10EARS-00Y5B1 were using 4KB sectors internally. The problem became visible after going live because of the lousy performance of the harddisk drives.
Present situation: openSUSE 11.2 i586, 4 GB RAM, 2x 1TB HDD
Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000efdd0
[code]....
I already did re-partition /dev/sdb with parted-2.2 (compiled from source) and set the alignment starting with sector 64 (instead of the default 63) making sure that the sector count of every partition divides by 8. Now comes the tricky part: I must partition /dev/sda as well. I can backup everything to /dev/sdb. What is the recommended course of action here? Make sdb active and boot it? That would give me all the time I need to deal with sda. Then reverse again. Any backup of /dev/sda will be outdated soon (running system)Rescue DVD only offers parted-1.9.0
I had installed 10.10 on another partition, and then I wiped it, so I need to reinstall grub on my 9.10 partition. I have tried a few methods, including one that had worked for me in the past.But every time I boot my computer, it just says "GRUB loading.", and hangs. How should I fix this?
View 7 Replies View RelatedI have been using Ubuntu Live CD to get forensic (can't be modified in any way) images off of drives, but on dirty filesystems it does some type of fix on dirty Windows filesystems.
It has the message: File system wasn't safely closed on Windows fixing
How do I turn that off?
I create my own live CD, so I can modify what ever. Where is it? Initrd?
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
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 RelatedSince 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 RelatedI 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 RelatedI recently come across some bug reporting things. I know what is bug but don't know how to use bug information that i got . can anybody explain it for me .
View 3 Replies View RelatedI 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 Relatedsince 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.
without thinking, reinstalled my windows installation after already having the dual-boot set up and it wrote over the GRUB with Windows MBR. I let my girlfriend's friend borrow the disc before this and decided to just wait it out. Then, when getting the disc back, I carelessly forgot it at their house and have never been able to retrieve it, nor do I think that I ever will.
At this point my only live discs either only have GRUB1 or are corrupted. My only tools now are a netbook with a wubi installation of Xubuntu(no CD drive) and a 1GB flash drive, it seems. Any suggestions on how to access my ubuntu installation?
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?
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?
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 RelatedAhm my question is, how can i adjust or redo the size of my hard disk in ubuntu? i mean i have the windowsXP OS then decided to install ubuntu 10.04 so i install it inside windows... i forgot to adjust the size or something?? because every time i boot ubuntu my free storage was 5 gb... but the real size of my HDD is 112gb in HOST directory but when im looking in home directory/home folder its shows that 5gb remaining, so what am i going to do? And what is my mistake?
View 2 Replies View RelatedI am having problems with either my boot list (/boot/grub/grub.cfg) or my Master Boot Record. It is possible that something else in this area is causing the problem, however.
Configuration overview:
Machine:Sony Vaio VGN-NS140E laptop
Systems: Dual-booting Vista and Ubuntu
Partitions:Vista Recovery (NTFS)
Vista OS
[code]....
Below is some information on how I believe I created this problem and an overview of steps I took while trying to fix the problem. Several days ago, I ran GParted off of an Ubuntu Natty Narwhal (11.04) LiveUSB to remove an older, broken linux partition containing either the Maverick Meerkat (10.10) or the Lucid Lynx (10.04) release.
That partition had been my original linux partition for this machine. For reference, the partition originally had Intrepid Ibex (8.10) installed. I was unable to load it properly after downgrading from Maverick Meerkat to Lucid Lynx. Maverick had some glaring functionality issues with my laptop model.I needed to remove the partition in a Live session because it was located within an extended partition alongside my currently used Ubuntu partition.
After deleting this partition and rebooting the laptop, it was either the Grub Loader menu or a grub-rescue prompt that appeared. I'm pretty sure that it was the grub-rescue prompt at this point. Unable to move forward from this prompt, I turned off the computer and re-inserted my USB drive to boot into a Live session again. Booting into a Live session worked successfully.
At this point I was able to browse the web for possible solutions. I read somewhere that I should run sudo update-grub from the terminal. After doing this and rebooting the computer, I was taken to the Grub Loader menu. Unfortunately, all of the entries I tried to boot from brought me to the grub-rescue prompt. There were 3 error lines above the prompt, but I don't remember all of them at the moment. I know that one of them did say "Error: You need to load the kernel first."
At the time, I was hoping this could be a fairly easy fix. I had the idea to simply create a new Ubuntu partition where the old one had been. I installed Natty Narwhal to a new partition within my extended partition. When I restarted my computer after the install had been completed, I did not have the results I'd expected or hoped for. The grub-rescue prompt still came up when I attempted to boot into any of the entries listed in the Grub Loader. Also, the new install I had created was not available in the list.
I tried to get information from various commands in either the grub or grub-rescue prompt. Somehow, I was able to determine the kernel name I needed and edited the boot command (the screen accessed when you press 'e' on the Grub Loader) to include it. This was no help at the time. I again restarted the computer and booted into a Live session. I re-installed Natty Narwhal on top of the install I just created, thinking that there may have been a problem with it. After restarting the computer, I was still having the same problems as with the first installation attempt. I ran another Live session.
By looking at other user's Boot Info Script RESULTS.txt files on this forum and following some links, I was able to gain a better understanding of the Grub boot command. With this information and some more experimentation in the grub-rescue prompt, I was able to determine the UUID of my Natty Narwhal partition, edit the boot command mentioned two paragraphs ago, and boot into Ubuntu with only one error. In this new Ubuntu installation, I ran sudo update-grub in the terminal. The command returned entries that matched with those I saw in GParted, but I still had the same problems and incorrect entries when I restarted the computer.
While it is possible that I could determine all of the necessary start-up boot commands to manually enter each of my bootable partitions, this is really rather inconvenient. I want to know how I can permanently fix the Grub or other necessary files so that my bootloader can take back responsibility for this task. It would also be nice to get back into my Lucid Lynx partition because Natty is a bit buggier than I'm okay with. Fixing my problems with Natty is a topic for another post, however.
Code:
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos6)/boot/grub on this drive.
[code]....
I am having problems with either my boot list (/boot/grub/grub.cfg) or my Master Boot Record. It is possible that something else in this area is causing the problem, however.
Computer overview:Make/Model/Type: Sony Vaio/VGN-NS140E/laptop
Operating Systems: Dual-booting Vista and Ubuntu
Partitions: Vista Recovery
Vista OS
Data Files (for sharing between Vista and Ubuntu partitions)
Extended partition containing:Ubuntu 10.04.2 LTS
Ubuntu 11.04
Swap
Note: Vista is 32-bit and Ubuntu is 64-bit
Below is some information on how I believe I created this problem and an overview of steps I took while trying to fix the problem.
Several days ago, I ran GParted off of an Ubuntu Natty Narwhal (11.04) LiveUSB to remove an older, broken linux partition containing either the Maverick Meerkat (10.10) or the Lucid Lynx (10.04) release. That partition had been my original linux partition for this machine. For reference, the partition originally had Intrepid Ibex (8.10) installed. I was unable to load it properly after downgrading from Maverick Meerkat to Lucid Lynx. Maverick had some glaring functionality issues with my laptop model.
I needed to remove the partition in a Live session because it was located within an extended partition alongside my currently used Ubuntu partition.
After deleting this partition and rebooting the laptop, it was either the Grub Loader menu or a grub-rescue prompt that appeared. I'm pretty sure that it was the grub-rescue prompt at this point. Unable to move forward from this prompt, I turned off the computer and re-inserted my USB drive to boot into a Live session again. Booting into a Live session worked successfully.
At this point I was able to browse the web for possible solutions. I read somewhere that I should run sudo update-grub from the terminal. After doing this and rebooting the computer, I was taken to the Grub Loader menu. Unfortunately, all of the entries I tried to boot from brought me to the grub-rescue prompt. There were 3 error lines above the prompt, but I don't remember all of them at the moment. I know that one of them did say "Error: You need to load the kernel first."
At the time, I was hoping this could be a fairly easy fix. I had the idea to simply create a new Ubuntu partition where the old one had been. I installed Natty Narwhal to a new partition within my extended partition. When I restarted my computer after the install had been completed, I did not have the results I'd expected or hoped for. The grub-rescue prompt still came up when I attempted to boot into any of the entries listed in the Grub Loader. Also, the new install I had created was not available in the list.
I tried to get information from various commands in either the grub or grub-rescue prompt. Somehow, I was able to determine the kernel name I needed and edited the boot command (the screen accessed when you press 'e' on the Grub Loader) to include it. This was no help at the time.
I again restarted the computer and booted into a Live session. I re-installed Natty Narwhal on top of the install I just created, thinking that there may have been a problem with it. After restarting the computer, I was still having the same problems as with the first installation attempt. I ran another Live session.
By looking at other user's Boot Info Script RESULTS.txt files on this forum and following some links, I was able to gain a better understanding of the Grub boot command. With this information and some more experimentation in the grub-rescue prompt, I was able to determine the UUID of my Natty Narwhal partition, edit the boot command mentioned two paragraphs ago, and boot into Ubuntu with only one error.
In this new Ubuntu installation, I ran sudo update-grub in the terminal. The command returned entries that matched with those I saw in GParted, but I still had the same problems and incorrect entries when I restarted the computer.
While it is possible that I could determine all of the necessary start-up boot commands to manually enter each of my bootable partitions, this is really rather inconvenient. I want to know how I can permanently fix the Grub or other necessary files so that my bootloader can take back responsibility for this task. It would also be nice to get back into my Lucid Lynx partition because Natty is a bit buggier than I'm okay with. Fixing my problems with Natty is a topic for another post, however.
I am attaching RESULTS.txt from Boot Info Script. Please let me know if you need any other reports of this nature.
Code:
Boot Info Summary:
I accidentally killed the dhclient processes. I am unable to access the Internet wirelessly or with Ethernet. It's a little irritating because now I have to post this using my phone. I'm looking for a way to reformat the network files to how they looked when I first installed ubuntu. I don't know quite what these are, or really anything about it.
The /etc/network/interfaces file has the following information:
I'm pretty sure there's supposed to be more.
iwconfig typed into the terminal gives me this:
According to lshw, the logical name for my Ethernet interface is eth1. I think it used to be eth0. It's an 88E8055 PCI-E Gigabit Ethernet Controller.
The wireless interface has logical name wlan1. I think this used to be wlan0. It's a PRO/Wireless 3945ABG [Golan] Network Connection. The driver is iwl3945 - [phy0]
Was running 10.10 64-bit on Thinkpad X201. I mistakenly clicked on upgrade this morning (really meant to just do a plain old update)... I tried to stop the process, but nothing that I did could get me out of the upgrade loop... so I eventually was forced to go ahead. Machine boots into 11.04; however, keyboard and mouse doesn't work. I have an external keyboard/mouse combo and that will intermittently work, but questionable. I was able to turnoff Unity; however, Classic doesn't seem to work with either external keyboard or laptop builtin.
My root and home are on separate partitions. I have a very fresh copy of home backed up on a separate drive. I don't have a recent backup of root. If I could get Natty working with Classic (including minimize/maximize) I'd be OK...I'd be also OK with going back to 10.10 if I could do it without too much pain. Meanwhile, I'm using another machine with Windows 7 so that I can at least do some work and come back to resurrecting my machine after I've had a bit of a timeout..
I have Googled. I have searched these forums and others. I have ripped my hair out in frustration. As many are aware, custom resolutions- "What the hell" by "that's just messed up" or "Jesus Christ" by "you've got to be kidding"- are very hard to set under the new "xorg.conf isn't really used" paradigm. This should not be. Many Ubuntu users are running the OS on displays with either nonstandard display resolutions or devices which overscan the display but do not offer a 1:1 pixel display setting- such as myself, on my 50" Samsung 1080p DLP television, connected via its HDMI port.
After more than a year trying to find a hard-and-fast process for fixing this overscan problem (note that I did not say "a hard-and-fast FIX for this problem"), I have decided to turn to the collective wisdom of the Ubuntu user community in an effort to put this issue to bed for good. To that end, I create this thread.
Recent research via the web has led me to believe that the problem lies in the X server not being aware of any sort of valid modeline for my- or your- nonstandard resolution. I am well-aware that each solution for each user will be different; if you're reading this, you're probably a geek like me in the first place, and your chops are more than sufficient to tackle both biting off this huge issue and chewing it.
My question to the community is this: How do I determine the correct modeline to add to xorg.conf, how do I make it available to the X server, what do I need to do to format the modeline in a valid way in xorg.conf (if necessary), and how do I make it appear in the list of valid resolutions when I run nvidia-settings (or whatever the command is)?
Keep in mind, I'm more interested in establishing the correct pipeline for fixing the problem and allowing arbitrary resolutions to the limit of the given device's capacity, rather than an exact solution for my particular hardware. In other words, I don't want an exact answer for my situation; what I'm looking for is a method for finding the proper solution given situations similar to mine.
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.
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?
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 RelatedBeen living with apt-get not working for a while now, don't know how it broke but i'm running a 2.6.26.8 kernel for vmware and maybe thats it?
Code:
The following extra packages will be installed:
The following packages will be upgraded:
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.
I do not like the new volume and battery notifications in the notification area of the panel in Ubuntu 10.04. I found out how to add back the old volume control by adding gnome-volume-control-applet to the startup applications. It is much nicer to use. I just stop on it (step 1) and scroll my mouse wheel up and down (step 2) and it shows me what is going on. With the default one for 10.04 I have to stop on it (step 1), then click it (step 2), then run up to the slider (step 3), then stop on the slider (step 4), then run my mouse wheel to adjust the volume (step 5), then click some were else to make it go away (step 6).
So now that I have the old volume controller back I would like to remove the new dysfunctional one from the notification area. It seems that I should right click and choose add and remove notifications, but I do not see any thing like that. I found a command to remove the envelop from the notification area (something else I never use). Does someone know a way to remove the volume controller from the notification area?Also, does someone know how to put the old battery monitor back on the panel. With the old one I could just stop on it to see how much battery was left. With the new one I have stop on it, then click to see it, then click to hid it? Finally, does anyone know how to remove the battery form the notification area?
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 View RelatedQuestion 1. Does gparted etc. just write to the MBR? Question 2. Is this the only record of the partition table? Question 3. How do i find the sectors that the partitions occupy?
View 2 Replies View RelatedI'm running a Debian homeserver, with a 3-disk (1GB each) raid 5 array using mdadm (the OS is on a separate disk).Now, smartmontools noticed some bad sectors on one of the disks, and I'm not sure what to do next (except for backup of valuable data).I found some articles on how to fix these sectors, but I'm unaware what the result on the whole array will be.
View 4 Replies View Related