LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problem after using NTFSResize 1.9.1 and fdisk (https://www.linuxquestions.org/questions/linux-general-1/problem-after-using-ntfsresize-1-9-1-and-fdisk-170108/)

StE_gUy 04-14-2004 01:18 PM

Problem after using NTFSResize 1.9.1 and fdisk
 
Ok, here's the story.

I had these partitions:
* Primary 69GB NTFS (Active)
* Extended Linux Parttiton Containing:
- 2.3GB Ext3
- 3.6GB Ext3
- 499MB Swap
I found a web page which guided me to resize ntfs, making more room for the linux partitions to be resized. (Search google for libranet ntfsresize and click first result)

So, I ran NTFSResize in linux (mandrake 10.0), after unmounting the NTFS partition. This process seemed to go smoothly, so i continued on to the repartitioning.

I opened up fdisk from the command line in Mandrake. My goal was to resize the NTFS partition to 61440MB. Up until this point, i had followed the instructions on the webpage which i pasted earlier. So i followed the steps for repartitioning exactly (or so i thought) aside from the different partition size.

But then, after i wrote the changes to the partition table, something went terribly wrong. My NTFS partition had become FAT16, and was only 36GB in size! When I tried to boot into windows, I got the error "NTLDR Cannot be found"

I determined that my problem for the wrong size was that i entered the cylinder number instead of the disk size (writing 61440 instead of 61440M in fdisk). This had made the size of the first partition 36GB instead of 61GB.

From this point, i started with the repartitioning instructions (at the website I pasted) from the beginning. Only this time, entering all of the settings correctly.

I then booted a system rescue cd (search in google for sysresccd), and enetered QTParted to see the partition info. I found that the size problem was fixed, but the filesystem type was still FAT16. And also when i mounted the drive, all of the filenames and folder names were corrupted, with irregular names such as "c.b?" or other names with strange characters. Although, when in Mandrake linux, DiskDrake reported that the filesystem is NTFS. And in Mandrake, I was not able to mount the drive (the error was "bad fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems")

What can i do now? Is there any way of recovering the data, or returning the partition to being bootable?

Any help greatly appreciated.

igu 04-18-2004 12:56 PM

It seems you forgot to set the partition type 7 (NTFS) and you created it at the wrong starting disk cylinder or sector.

One possible solution is set the partition type to the right value, 7 then run gpart. It can find and restore the exact NTFS partiton starts and ends. There are more info what might help at http://mlf.linux.rulez.org/mlf/ezaz/...l#troubleshoot


All times are GMT -5. The time now is 12:59 PM.