1 (edited by Deemon 2007-01-12 05:26:36)

Topic: [SOLVED] XP partition thinks its FAT16

I had a dual boot system with a 40GB disc split evenly in two between XP and Vista.

/dev/hda
[          WinXP          |          Vista          ]
/dev/hda1                 /dev/hda2

I got tired of Vista and wanted to get rid of the OS and resize my XP partition to be larger.

Knowing Vista, I knew that it had done something with the boot loader where it had set its own as the default loader so before erasing the Vista partition I looked up what I had to do in order to set XP's loader as the default.

After looking through some forums I found two important pieces of information:

" Fras   says:

I was unable to modify the boot order and defaults from within XP. Vista uses a new system. So, if you wish to remove Vista, be very careful. Don't just blunder in from XP and remove the partition... The technique that I used was to boot off the XP CD and enter a recovery console. Then, after logging is as administrator, type FIXBOOT followed by FIXMBR and exit to reboot. It goes without saying that you should be sure that you have a backup before doing this. You do, don't you? This will get you back to your original XP boot process."

...AND...

"the easiest way to revert back from a dual boot scenario.


Uninstall
After playing around with Vista for a few days, you may want to remove it from your system, and reclaim the hard drive space. Microsoft has made this step very simple as well.

Boot your computer in to Windows XP.
Ensure you have the Vista DVD image emulated or in the DVD drive.
Go to "Start" and "Run". Type in "e:\boot\bootsect.exe /nt52 ALL /force" (without quotes, and replacing e: with the drive letter of your Vista DVD).
Restart the computer, and you will notice the boot selection menu is gone.
Format the partition/drive where you had Vista installed.
Remove two files (Boot.BAK & Bootsect.BAK) on your XP drive's root folder (C: ), these were backup files of your previous bootloader, now no longer useful.
Optional: Restart to ensure it still works.
Use your partition software to merge your partitions together.

Now, feeling I knew what I needed to know, I did the following.

put in the Vista dvd and ran
d:\boot\bootsect.exe /nt52 ALL /force

It worked, when restarting the PC I didn't see it use Vista's boot loader and simply boot straight into XP.

I then restarted and booted off the GParted 0.3 cd.

Now, remember my main goal was to expand my primary partition's size and basically reformat the rest as my 2nd partition.

Here's where I believe things went wrong.

When the PC finished booting and loading, I used GParted to
1) remove the Vista partition
2) remove the extended partition in which the Vista partition was in
3) RESIZED the XP partiton from about 20 gigs to around 30 gigs

I closed GParted and tried to boot normally.

I got the following error:
A disk read error occurred.
Press CTRL-ALT-DEL to restart

At this point I wasn't really thinking clearly (due to the panic setting in) and I assumed the boot loader swapping steps I took earlier didn't work so I tried the other setps.

I booted off a XP setup disc and entered the Recovery Console.

I then ran FIXBOOT and FIXMBR.

At this point, just to make sure, I used the DIR command in the XP partition and the files were all still intact and fine.

I rebooted.

I got the same error again so I tried the Recovery Console again and ran the two commands again, out of order.

I rebooted again and now I was getting a different error.  I can't remember what the error was but I don't think its too important as the next things I'll say will tell you clearly what the problem was.

I booting up with GParted but when it booted, I noticed an oddity.  The XP partition was shown as a white rectangle with a green outline but instead it was outlined in grey/black and was being recognized as an unformated/erronious space.

At this point, my memory gets foggy and I don't remember what I did but it was surely more attempts at the previous steps.

The next time I booted into GParted, the partition was showing up as a FAT12.

I then took the drive out of my PC and put it into a working XP machine.

I opened up Partition Magic and all it said about it was that it was erronious.

I tried looking at it with Restorer2000, a file non-intrusive recovery program which you can use recover deleted files and it was finding just a few non-deleted files that were named using what appeared to be random ascii characters for file names.

At this point I went over to irc.gnome.org #gparted and asked for help.

I managed to confuse someone there as much as I was confused but they were able to suggest that I boot in using the GParted disc, run fdisk and try setting the type to 7, NTFS.

I tried this but before I set the type, noticed that the type was already NTFS.  I exited fdisk without making any changes and mounted the partition.

I used LS -L in the mounted partition and now I saw a listing that was more familiar to what I would see when I used DIR on a day that the drive was working fine.  The file names were still random ascii characters but it felt like I was getting closer.

I re-opened GParted.  At this point, the partition was showing up as a FAT16 drive.  Of course, the drive usage and maximum size was completely wrong as it had been since the first time it showed up as FAT12, last time.

At this point, I'm thinking I need to undo the resizing I did and somehow rebuild the partition tables and all that kind of configuration/database files.

I asked my irc friend for advice and he suggested I post my problem here in this forum so that I could have more input.

HERE is where I'd like to kind as for your help.

Does anyone have any advice that could help me, at the very least, be able to copy important files off the drive so that I may reformat the whole thing and freshly install my OS's and partitions?

I thank you all in advance for helping me and putting up with me and my problem.

2

Re: [SOLVED] XP partition thinks its FAT16

Hi Dee smile
I have read all what you read, and at the end, i must say : if you want to copy file from your ntfs/fat12/fat16/or_something_else file system, this might not be a problem.
Do you have any external device, or can you plug a second hd ?
I imagine tha tyour borken partition is on sda
You plug a second drive sdb
Booting GParted live cd (always try to find the last version !), on this sdb you create a new partition fat32 sdb1 (primary) or sdb5 (if it logical). Then you mount this last partition

mount /dev/sdb1 /mnt/custom

Now you mount the broken partition :

mount /dev/sda1 /mnt/windows

Then you open a Xterm, maximized it using alt+F10 key, and type mc, which will open Midnight Commander
On the left side you go to /mnt/windows
On the right side you go to /mnt/custom
You go back top the left side (using tab key)
Then using insert key you selcet the files you want to copy
When done you press F5 to copy selected files to /mnt/cutsom
When done, quit mc typing F10 and umount all, and shutdown the machine. Unplug your second drive and plud it on another computer : you might have your data back

It may take some times, depending on the files you need to copy.

I must say what happen is very strange !

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

3

Re: [SOLVED] XP partition thinks its FAT16

Dee, i just made a new test, and have no problem when resizing XP : it reboots twice and then all is okay !
Your problem is really weird  :-/

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

4 (edited by Deemon 2007-01-12 05:25:03)

Re: [SOLVED] XP partition thinks its FAT16

Thanks for your advice LarryT.

My hard drive is /dev/hda.  Here's a picture of what I see when I LS the drive (after mounting).

The contents look just the same in the MC utillity you recommended.

http://img.photobucket.com/albums/v223/Deemon/HDD%20Snafu/IMG_0986.jpg

My file structure seems to not be properly set.  I believe the problem is related to me trying to resize the drive with GParted 0.3.  Is there a way to undo the resize?

5

Re: [SOLVED] XP partition thinks its FAT16

One told me that spinrite should save your soul wink
http://pcworld.about.com/magazine/2209p072id117080.htm
... if you have enough money to smile

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

6

Re: [SOLVED] XP partition thinks its FAT16

and on the page you've got others links too : http://www.handyrecovery.com/?gclid=CNv … ZwodQE51dQ

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

7

Re: [SOLVED] XP partition thinks its FAT16

I used the program you call spinrite and it found my disk to be just fine.

I spoke with some other people and it seems too grim to try anymore.  I've decided to give up and simply start fresh.

I'd like to, for the sake of cataloging this experience, post a little more information regarding the problem.  This way, hopefully, it'll serve as a hint for the next person who happens to try to resize their XP/Vista partition using GParted 0.3.

With this picture I wanted to show what it looked like when I DIR in Window's Recovery Console.

http://img.photobucket.com/albums/v223/Deemon/HDD%20Snafu/IMG_0989.jpg
As you can see, there seems to still be data but its illegible.

This is what it looks like when I look at the drive with DISKPART.  MS' partitioning tool.

http://img.photobucket.com/albums/v223/Deemon/HDD%20Snafu/IMG_0991.jpg
Partition 1 on Hard Disk 0 is supposed to be a NTFS drive but its showing up as FAT.

In an reply from a HDD forensic professional, of whome I asked about my problem, I was advised to try out "a product like Runtime's Fat or NTFS software".  He sounded confident that with the demo version I would be able to see some results so then I could purchase the full version.

Unfortunately, by this time, I was half-way into Window's re-installation.

So there.  The end.  Unhappy ending.

If anything, I verified that I can resize an XP partition with GParted 0.5beta.

I shall title this thread [SOLVED] even tho it really isn't but whatever, I'm done with it, at least.

8

Re: [SOLVED] XP partition thinks its FAT16

Ok. thank you Dee.
As i said before, GParted livecd 0.3.3 wasnt able to resize Vista, since there is ntfsresize 1.13.1, and Vista needs ntfsresize 1.13.1.1 !

Hope you will have more fun wink

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)