Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Moved XP partition with Gparted, bunch of boot/GRUB problems

  1. #11
    Join Date
    Oct 2011
    Beans
    71

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    Quote Originally Posted by oldfred View Post
    I did run chkdsk from a Windows 7 repair USB. It worked better than the chkdsk from XP disk, but wrote a Windows 7 PBR. (Testdisk showed difference between backup & new PBR). I was able to reinstall a Windows XP PBR with the Windows 7 repair USB.
    So... I can attempt to remove the drive and put it on a USB and use Windows Vista to CHKDSK it. Or should I boot using a Vista Recovery Disc and running CHKDSK. And won't it wipe out my GRUB again?

    Pardon me, but it seems the lack of sleep is getting to me. Can you detail what you did step-by-step?

  2. #12
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    I only had XP and wanted to see if I could make a Windows 7 repair disk in case friends needed help. Back then you could download Vista or 7 repair ISO for free, now $10 from that site. But you can make the same CD or USB flash drive from a Vista or 7 install.

    Make your own Windows repairCD (not vendor recovery):
    http://forums.techarena.in/guides-tutorials/1114725.htm
    Windows users only - Silverlight
    http://windows.microsoft.com/en-GB/w...em-repair-disc

    Windows 7 repair USB, Also Vista if service pack installed
    http://www.intowindows.com/how-to-re...tion-dvd-disc/
    http://www.webupd8.org/2010/10/creat...usb-drive.html

    I never was able to directly from Ubuntu create a Windows repairUSB. But I created a RepairCD and used the CD to create the USB by copying itself to the USB flash drive.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #13
    Join Date
    Oct 2011
    Beans
    71

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    Sounds like a plan. I have a Viata recoveryCD I'll try in the meantime. I presume I use the liveCD to enter recovery mode, enter a console/terminal, and run CHKDSK /B until something clicks? Also. In case I screw up and lose GRUB again, what's a safer way of recoverying GRUB with only liveCDs for Puppy, Damn Small, and I think AntiX? (Machine is very limited when it comes to boot options -- USB devices are out.)
    Last edited by pakopako; October 26th, 2012 at 05:16 PM.

  4. #14
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    Not sure if Boot-Repair works with any of those or not. It works with most Debian based installs, but needs the default apps & scripts that Debian/Ubuntu have. It also has its own repair liveCD.

    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair
    You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration and diagnose advanced problems.

    How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10 and later with grub2) by talsemgeest
    https://help.ubuntu.com/community/Re...ta/7Bootloader

    The new versions of grub2 now seem to need you to have the same version liveCD to make the easier repairs. Full chroot should work with any install.
    Reinstall grub2 - Short version & full chroot version
    https://help.ubuntu.com/community/Gr...alling%20GRUB2
    Grub2 info & full chroot version - also see METHOD 3 - CHROOT:
    https://wiki.ubuntu.com/Grub2#Recove...20via%20LiveCD
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #15
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    Quote Originally Posted by oldfred View Post
    Not sure if Boot-Repair works with any of those or not.
    i haven't tested, but i think it doesn't work with Puppy, Damn Small, AntiX. I only tested Debian-based, Fedora, OpenSuse and Arch.

  6. #16
    Join Date
    Oct 2011
    Beans
    71

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    Ah, what a good rest will do. Still, it's bloody annoying that the Vista recovery CD takes 30 minutes to load, and another 10 to process everything.

    I've run chkdsk /x /b on the C: drive (sda1), but to no avail. It detects the reordered space on the drive, but doesn't really do anything. (It can't even write a log file. ""failed to transfer logged messages to the event log with status 50" -- likely because it would have written the log to the temporary "X:" drive the RecoveryCD created.)

    I rebooted back into Ubuntu 11.04 and ran BootInfoScript again, and only one line had changed and it was in the Mount Point section (my Ubuntu partition, sda3; commit=600 changed to commit=0):
    Code:
    /dev/sda3        /                        ext4       (rw,errors=remount-ro,commit=0)
    I'm apprehensive about loading the Vista RecoveryCD and running FIXMBR -- last time I did that, I had to use a Puppy liveCD to restore much older MBR into my drive and borked my partition-table so much that I needed TestDisk to recover it.

    Should I make a backup of my current MBR in case Microsoft's FIXMBR flubs, or should I avoid using FIXMBR altogether? This is the only method I know of to back up my MBR, are there any better ways out there?
    Code:
    sudo dd if=/dev/sda of=SDA-backup bs=512 count=1

  7. #17
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    If you backup with dd and use 512 which includes partition table, then change partition table your backup will destroy your system. Back to testdisk.

    Better just to use Boot-Repair or manual ways to use a Ubuntu liveCD to restore grub2's boot loader or install lilo or syslinux boot loaders to the MBR, which are Windows like boot loaders and will boot Windows directly.

    How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10 - grub2) - talsemgeest
    https://help.ubuntu.com/community/Re...ta/7Bootloader

    Restore basic windows boot loader - universe enabled if error on lilo not found
    Simply open Synaptic and Settings > Repositories and tick the box against the Universe repo in the Ubuntu Software tab. Close that window and click on reload before installing lilo with Synaptic or command line.
    sudo apt-get install lilo
    sudo lilo -M /dev/sda mbr
    May show error messages about the rest of lilo missing, ignore, we just want MBR with bootloader.

    per meierfra. mbr.bin may cause problems in some cases better to use lilo
    Boot live cd - knoppix syslinux also in Ubuntu
    sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  8. #18
    Join Date
    Oct 2011
    Beans
    71

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    Quote Originally Posted by oldfred View Post
    With SSD you have to turn on AHCI for trim to work and XP does not normally have drivers for that.
    Wait, XP can run TRIM? (Even with drivers?)

    Quote Originally Posted by oldfred View Post
    All NTFS partitions have in the PBR - partition boot sector info on the NTFS sector start and size that has to match what is in partition table... Normally running chkdsk will update that, but sometimes MFT interferes and reinstall is the only solution.
    This sounds... odd.

    CHKDSK /B /X (Vista) fixes two bad sectors, but nothing was fixed. Bootrec (Vista) wiped something from the drive (computer saw it as an empty drive, even though the partition tables were intact when I loaded it as a USB drive). FixBoot (XP) did nothing, FixMBR (XP) wiped away the boot record.

    I ran Puppy, restored the MBR and got Ubuntu back (and the Grub menu). The odd thing is that running HIREN's CD, I can get to the XP loader and load XP.

    I even tried running XP installer... but after a reboot, I still get to the black screen (because it gets rid of GRUB).

    I can't run LiLo to create a new boot sector?

  9. #19
    Join Date
    Oct 2011
    Beans
    71

    Re: Moved XP partition with Gparted, bunch of boot/GRUB problems

    Nevermind.

    Started up TestDisk to fix the MBR again when I noticed there was a Boot management option. Fooled around with the XP partition and managed to fix the size mismatch.

    Woo-hoo, TestDisk!

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •