How fix NTFS partition messed up by qparted resize?

I used QParted to size one my hard drive’s NTFS partition to make unallocated space available to install SUSE. QParted created the the unalloacted space fine and I got SUSE up and running.

However, the NTFS partition is messed up. The QParted GUI and the SUSE’s Disk management GUI shows it as NTFS drive with 319 GB space. However, nothing seem to be able to read/write to it. QParted gives a warning “Unable to read contents of this file system! Because of this some operations maybe unavailable.” Is there any way to fix this NTFS partition so I can recover data from it?

Do you have suse installed?
If so, can you open a terminal and post the result of this:

cat /etc/fstab

I posted my /etc/fstabs below. But that doesn’t even have partition in question listed, so now sure what help that would be.

/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ9BQC11070-part3 swap swap defaults 0 0
/dev/disk/by-id/ata-ST3500630AS_5QG089V5-part4 swap swap defaults 0 0
/dev/disk/by-id/ata-ST3500630AS_5QG089V5-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST3500630AS_5QG089V5-part3 /home ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ9BQC11070-part1 /windows/SamsungRootI ntfs-3g defaults 0 0
/dev/disk/by-id/ata-ST3250823AS_5ND0M0X1-part5 /windows/storage ntfs-3g defaults 0 0
/dev/disk/by-id/ata-SAMSUNG_HD103UJ_S13PJ9BQC11070-part5 /windows/storageMain ntfs-3g defaults 0 0
/dev/disk/by-id/ata-ST3250823AS_5ND0M0X1-part1 /windows/storageSmallFat vfat defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/disk/by-id/ata-ST31500341AS_9VS3HZ6V-part1 /windows/storage5 ntfs-3g defaults 0 0
/dev/disk/by-id/ata-ST3250823AS_5ND0M0X1-part3 /data1 auto noauto,user 0 0
/dev/disk/by-id/ata-ST3500630AS_5QG04TFP-part1 /windows/storage3 ntfs-3g user,users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0

There are a number of ntfs partitions there…

Please post then from a su terminal

fdisk -l

Two common possibilites:

  • If you didn’t defrag the NTFS partition before you altered it, it could cause a problem
  • If you shrank it beyond the size adequate to contain all the files, it would cause a problem

It would be a good idea to boot to a windows operating system and from windows run “chkdsk x: /f”. Than might fix it. If you can’t boot then try an installation CD/DVD and run “chkdsk x: /p” on it. See here for more info: Resetting the “dirty” bit in windows. Bit of a longshot but worth a try.

I tend to agree with you on this

I would also like to see fdisk -l output, for repairing NTFS the windows tool chkdsk, I also feel needs to run.
TestDisk may be able to fix problems remaining after the check,(or allow recovery of files) but fdisk -l for a clearer picture.

Here is the fdisk -l output, drive is question is in bold (last one, sde).

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x20b420b3

Device Boot Start End Blocks Id System
/dev/sda1 * 1 31871 256003776 7 HPFS/NTFS
/dev/sda2 31872 114735 665605080 f W95 Ext’d (LBA)
/dev/sda3 114736 115779 8385930 82 Linux swap / Solaris
/dev/sda5 31872 114735 665605048+ 7 HPFS/NTFS

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2ec02ec0

Device Boot Start End Blocks Id System
/dev/sdb1 1 159353 1280002941 7 HPFS/NTFS

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcab0a5d8

Device Boot Start End Blocks Id System
/dev/sdc1 1 60801 488384001 42 SFS

Disk /dev/sdd: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2ebdef41

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 3697 29696121 c W95 FAT32 (LBA)
/dev/sdd2 3723 30402 214296768 f W95 Ext’d (LBA)
Partition 2 does not end on cylinder boundary.
/dev/sdd3 3698 3710 104422+ 83 Linux
/dev/sdd5 3723 30402 214296736+ 7 HPFS/NTFS

Partition table entries are not in disk order
**
Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5f88886b

Device Boot Start End Blocks Id System
/dev/sde1 1 41679 334786536 7 HPFS/NTFS
/dev/sde2 41680 45595 31455270 83 Linux
/dev/sde3 45596 48206 20972857+ 83 Linux
/dev/sde4 48207 48728 4192965 82 Linux swap / Solaris**

Problem with doing anything from windows, is that my windows is broken currently. I can boot with recovery console BUT I just can’t figure out which drive letter the broken NTFS partition is. There seems to be way to list the disk from the windows recovery console. I tried running chkdsk on bunch of random drive letters without much luck.

You already have a well edited /etc/fstab and I can’t be sure what is what in there.

But do this in a su - terminal first.

mkdir /windowsSDE

Now edit fstab adding this

/dev/sde1 /windowsSDE ntfs-3g defaults 0 0

reboot when done

FSTAB - Editing Manually - openSUSE Forums

Maybe run the console commands in the windows recovery disk, the command to reveal the filr and directory structure in the root of c: is “dir c:” Run that for ther letter c:, d:, e:, f: and so on. You should recognise the drive letter for the drive in question from the results of "dir x:"Then you’ll know what to use for x in “chkdsk x: /p”

You might need (later) to remove the Linux partitions on the dodgy drive and restore it to just NTFS. Then you can do it properly the next run through.

Don’t worry! You can recover NTFS partition very easily. I also faced the same problem a few months back. I lost my NTFS partition. I found a software to [Recover data from NTFS partition using Remo Recover data recovery software recover data from NTFS partition](http://(http://www.remosoftware.com/download#rwin) here.. It can recover data from bad NTFS partition also. Needy one can [download)