Recommended Posts

Why did you run testdisk? It is designed to recover your partition table. By virtue of the fact that Ubuntu still boots from the same hard disk, the partition table is probably OK. Even if it wasn't, you should NEVER use testdisk to modify the partition table on your system disk! Can you elaborate on why Vista is not booting? It might be more productive if we started this discussion from there.

Might run Fix BOOT from Vista command prompt:

http://www.proposeds...covery-console/

Nevermind , that's gone from Vista -- probably need to do a Repair install of Vista.

Save, back-up important personal files first.

In order to start the Windows Recovery Environment you must boot your computer off of the Windows Vista DVD that you purchased or that came with your computer. To start this process, insert the Vista DVD into your DVD drive and turn your computer on. Your computer will start and you should see your BIOS listing your hardware and other information.

http://www.bleepingc...startup-repair/

The Windows Vista disc can fix a lot of startup issues. Though honestly it's not clear what the problem is on your end, you haven't mentioned any errors, or even what happens when you attempt to start Windows on your computer.

The Testdisk output seems to indicate that all your partitions are there, but like xorangekiller mentioned you probably don't need Testdisk unless you specifically have an issue with your partitions(s) or need to recover data off the hard drive.

I ran Testdisk because I thought there might be a problem with the Windows partition on the hard disk (I'm a novice). I get different behavior when I try to boot Vista. Sometimes I'm forced into a chkdsk that never finishes. Other times, the desktop loads, but if I click anything, the machine just hangs. I have to force shutdown with the power button.

Vista came already installed on the computer and I don't have a repair disk.

Not much you can do then.

I think it's clear that your Vista partition is messed up.

Maybe you can borrow a Vista dvd from someone to repair it.

I don't know if something like Partition Magic would help.

Example:

http://www.partition-tool.com/

It sounds like your hard drive may be developing problems. Is Ubuntu installed on the same hard drive or a different one? If its on the same one, is it slow to boot or does it report any disk I/O errors?

In Ubuntu, open Disk Utility, select your hard disk, and click "SMART Data". That should tell you whether the hard drive is physically having problems (most likely developing bad sectors by your description), or the issue lies elsewhere. Particularly pay attention to the "Read Error Rate", "Reallocated Sector Count", "Seek Error Rate", and "Current Pending Sector Count". Those are the most likely attributes to indicate a problem. DON'T GO BY THE OVERALL ASSESSMENT! It will often say "Disk is Healthy" unless your disk is in VERY bad shape.

Also, testdisk is an expert tool. You definitely shouldn't be using it if you're not sure EXACTLY what you're doing. While it can be used to recover from complex failures, it can also very easily be used to cause damage that is difficult to repair.

You're right Hum; I forgot the OP said it is a laptop. He may have two hard disks in his laptop, but its very unlikely. I should have assumed that Ubuntu is installed on the same disk as Vista. Consider my previous post amended accordingly. (I can't edit it anymore.) My main point and instructions are still valid, though. In context, its a fairly trivial detail.

Bad sectors are "reparable" in some cases. Your hard disk has a reserved area where a very small number of sectors can be remapped. However, if a sector cannot be remapped, either because the reserved space is full or for some other reason, then its time to backup your data and get a new hard drive.

Try running HDAT2 to repair the bad sector. After it completes, reboot back into Ubuntu and check the "Current Pending Sector Count" in Disk Utility again. If it has dropped to zero, make sure there are no other errors reported by SMART, and try starting Vista again. Even if all the bad sectors have been repaired, its likely you will have to run chkdsk on your Windows partition before it will boot.

Thanks for your help! Here's the result of Disk Utility...looks like bad sectors. Is this the end for my laptop? Will the Ubuntu side die eventually too?

You should really back up your data ASAP. The more you use the laptop the more bad sectors you're going to get.

Back up the data onto a USB drive or something similar. Ubuntu & everything else on the hard drive will eventually be unreadable.

The laptop itself is fine, you'll just need to have a new hard drive installed & then re-install Windows/Ubuntu from scratch.

It is definitely a good idea to backup your important data - which you should be doing regularly anyway - but a couple of bad sectors does not automatically mean the end of your hard disk. It is sometimes possible to remap bad sectors and for the disk to be completely usable for years after. However, the fact that your disk somehow developed bad sectors does make it more likely that you will get more, even if the ones you have can be remapped. If this is your primary computer, I would recommend preemptively ordering a new hard drive for it. Otherwise if you don't rely on it every day, I would wait to see if the sectors can be remapped before ordering a new disk.

This topic is now closed to further replies.
  • Posts

    • Microsoft had to shut down 70+ GitHub repos after getting hacked, brings back some by Aditya Tiwari The self-replicating malware campaign known as Miasma took the open-source world by storm. It was reported that almost 73 Microsoft GitHub repositories were infected by the worm and had to be temporarily shut down to determine how attackers compromised projects and stuffed password-stealing malware in the code. These GitHub repos span across different organizations, including Microsoft Azure, Azure-Samples, Microsoft, and MicrosoftDocs. The malware enabled attackers to steal passwords and credentials when compromised tools were opened in popular AI coding apps, including Claude Code, Gemini CLI, VS Code, and Cursor. The security firm Cloudsmith, malware analysis site OpenSourceMalware, and 404 Media were among the first to report the hack. For background, Miasma is a variant of the Mini Shai-Hulud worm, open-sourced by the threat group TeamPCP. It started its journey by compromising a Red Hat employee's GitHub account to attack the @redhat-cloud-services npm namespace. Earlier this month, Microsoft Threat Intelligence reported that the Miasma attackers published 32 malicious packages across more than 90 versions under the @redhat-cloud-services npm scope to steal cloud credentials. The worm didn't take long to start attacking source repos directly rather than package registries. It is known to skip the npm registry entirely for several targets and plant malicious code straight into public repos like "icflorescu/mantine-datatable." The delivery approach was designed to weaponize AI coding tools. Miasma's malicious payload embedded into projects can trigger automatic code execution when the infected repo is opened in an AI coding tool or IDE. The list of affected projects includes "durabletask", a Python package compromised by TeamPCP a month earlier to deliver an information stealer designed for Linux systems. That said, Microsoft has begun restoring some repos affected by the malware campaign, The Hacker News reports. A company spokesperson stated the following: Microsoft will continue to investigate the attack. It has notified a small number of customers who may have removed their content from the affected repos. The company will reach out to customers again through established support channels "if anything further is identified that requires customer action."
    • Why is Opera doing this notification at all? They have their own extension store. They don't have to obey anything dictated by Google. Others like Brave and Vivaldi that rely on Chrome's extension store, not so much. Firefox is entirely separate as well with its own extensions store. I honestly don't understand why entire world is just insisting on Chrome. Like, why? It's a stupid fat browser with barely any functionality. But sure, it's installed on everything by default. I don't understand how people even use web that's filled with tracking garbage and ads all over the place.
    • Just for anyone reading, AdGuard (the free, standalone MV3 extension) is quite good now, a direct competitor to uBlock Origin Lite and much more built-out than it.
  • Recent Achievements

    • Week One Done
      rubentuben8 earned a badge
      Week One Done
    • Week One Done
      ARaclen earned a badge
      Week One Done
    • One Year In
      jojodbn earned a badge
      One Year In
    • One Month Later
      jojodbn earned a badge
      One Month Later
    • Week One Done
      jojodbn earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      531
    2. 2
      PsYcHoKiLLa
      231
    3. 3
      +Edouard
      130
    4. 4
      ATLien_0
      88
    5. 5
      Steven P.
      83
  • Tell a friend

    Love Neowin? Tell a friend!