Lost (access to?) Windows partition after Gparted wiped the old Linux one!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Depend on what was loaded yesterday...
Posts: 50
Rep:
Lost (access to?) Windows partition after Gparted wiped the old Linux one!
I realise that this is not a pure Linux Q, but I am hoping for tolerance and even help!
After removing the partitions (/,/home) that held an older Linux installation, gparted showed the original Windows XP partition followed by the new unallocated space. On rebooting, there was a Grub rescue error (text not noted, sorry). A live install running gparted shows a totally empty disk!
The removed OS was booted via Grub2 and I imagine that it is choking when there is no secondary(?) file to be found since it was vaped. I also imagine that this is a fairly straight-forward matter, something like replacing the MBR but I am so far from Windows these days that I am unsure how to progress with rescuing the partition. The machine has no floppy - that's how I would have initially booted it way back when. Is this something that I can do either through a Linux live distro or via a Windows CD?
Boot the XP install CD, and hit "r" for Recovery console when indicated. Then run fixmbr.
If all is well with your XP install, all will be fine. Else we'll get a second installment of this story.
Distribution: Depend on what was loaded yesterday...
Posts: 50
Original Poster
Rep:
Many thanks for the speedy response,syg00. I ran 'fixmbr', read the dire warnings and it did its bit and... rebooted with a GRUB> prompt.
Rebooted with CD and dropped to root from which all other directories but Windows were 'Access is denied'. It's good to see that they are probably there!
From the Recovery Console of the Windows CD run the map command.
Take note of the output then run fixmbr <output of map>
Try to reboot now.
Sometime you need also to run FIXBOOT.
From a linux liveCD, go here, get an run the script and post the RESULTS.txt
That way we can see the actual boot setup on your machine (no personal data).
That looks particularly ugly. You didn't mention you were using Paragon.
If it were me I'd wipe the lot and re-install XP from scratch. You could try deleting all but the first partition, and marking that active (i.e. with the boot flag) and then try the XP install disk again. The fixmbr might work then.
Maybe.
Distribution: Depend on what was loaded yesterday...
Posts: 50
Original Poster
Rep:
You said:
If it were me I'd wipe the lot and re-install XP from scratch. You could try deleting all but the first partition, and marking that active (i.e. with the boot flag) and then try the XP install disk again. The fixmbr might work then.
Maybe.
Very maybe. The Paragon bit must be left over from resizing, etc. from long ago. It wasn't even in the now-lost XP Program Files folder! Gparted shows the whole HDD as 'unallocated' so fiddling with any of it will be problematic without a specialised tool to maybe set the boot flag of an 'invisible' OS and also restore its visibility. Any last ditch tool come to mind - one I have some hope of using to some effect?
I wish I'd paid more attention to the down-and-dirty bits of Windows/DOS when I used it...
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Grub uses the normally forbidden 63 sectors after sector 1. So, you can't get rid of it using Windows rescue tools. When you get the grub prompt, hit e. If you see some lines of text, which you probably won't, just type:
chainloader (hd0,2)+1
where 0 is the drive and 2 is the partition where XP resides. You must adjust those for your specific system. Then, what's left of grub should point to NTLDR in the XP partition. But, if you only require the data on the XP partition, get a USB flash drive, boot with Knoppix live linux CD, mount the NTFS partition, and save the desired files to the flash drive. If you have a CD drive and a DVD recorder in the same machine, you can boot knoppix from the CD and use k3b to copy the windows data to a DVD.
If you rescue the C:\Documents and Settings directory, you can reinstall XP and restore the entire configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.