Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 52
  • Last Modified:

Using TestDrive to recover Windows XP partition mistakenly chosen as Ubuntu swap

Hello, in this thread http://www.experts-exchange.com/OS/Linux/Q_27375189.html I found out that I lost my windows xp partition because mistakenly chosen as swap partition when installing ubuntu 10.04.

I used Gparted to turnoff the swap. Then used TestDrive to change the partition type back to ntfs. It is set as "primary bootable". see screenshot.  I could see my windows files in testdrive. But after I reboot, Ubuntu does not see the partition and again gparted shows ubuntu is using it as swap.

How do I get out of this circle - I mean how do i set the partition as a ntfs partition that ubuntu no longer sees as a swap partition?

 testdrive ntfs gparted after I booted.
0
polaatx
Asked:
polaatx
  • 4
  • 3
  • 2
1 Solution
 
rindiCommented:
Remove the swap entry from your /etc/fstab file.
0
 
Duncan RoeSoftware DeveloperCommented:
rindi is correct. Also, you could have used the swapoff command when Linux was running to stop paging to the disk. If you have plenty of RAM, then quite possibly swap was not used much but there will likely be some corruption of your XP partition all the same.
0
 
polaatxAuthor Commented:
Hello, thanks for the responses.

I tried deleting the swap entry from fstab file. It says file is readonly and won't save it, saying I don't have enough privilages. Under Permissions, it says I'm not the owner of the file. But this is very account that installed Ubuntu. See screenshots.

How do I save this fstab file?
Screenshot--fstab--Read-Only----.png
Screenshot-fstab-Properties.png
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
rindiCommented:
you have to open the file using sudo (sudo gedit /etc/fstab) so your privileges are elevated.
0
 
polaatxAuthor Commented:
Hello, thanks for response.

sudo gedit /etc/fstab worked. I took out the line for swap.

I restarted machine. Now it won't login into Ubuntu, saying:

The disk drive for / is not ready yet or not pre....
Continue to wait; or Press S to skp mounting or M for mounting.

What do i do now? Please note, the fstab looks just like the screenshot above, with the line for swap taken out.
0
 
polaatxAuthor Commented:
Oh, neither typing S nor M makes anything happen. Just sits there.  just sits there - ubuntu
0
 
Duncan RoeSoftware DeveloperCommented:
It looks to me that you may have accidentally changed the UUID for the root disk. Even so, this is puzzling- in my experience the fstab line for / is all but ignored, because the boot loader tells Linux where / is.
You will need to boot from your install DVD in rescue mode in order to investigate further. That should give you a shell prompt, then you can cat /proc/partitions to see what is available. You should then be able to mount the root partition. After that you can cd into its /etc and re-edit fstab - I would change / back to /dev/sda2 for now.
If you can't see your root from the rescue system then we have a bigger problem - post back what you find.
0
 
polaatxAuthor Commented:
I am out of town and won't get back to the affected machine for another 10 days.
0
 
rindiCommented:
The Question itself is answered.

https:#a36961287

The rest is a new problem for which there was no feedback from the Asker.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now