0

ntfs partition is not visible in windows 7

Hi...

I have installed Ubuntu OS in my laptop and created the partitions in NTFS. And now I have changed the OS to Windows7. But the NTFS partition is not visible to use.

Before changing from Ubuntu I have tried the dual boot also. There exists the same problem only i can view in Ubuntu not in windows... What is the solution....??

NTFS Windows Partition Add a comment
michael
asked Mar 02 2017

Answer

0

May i know what command you have used to create NTFS partition and also if you are using command line or GUI to create NTFS Partition.

Comments
michael
Apr 29 2024
I have created a partition using mkfs.ntfs command.
Add a comment
parthiban
asked Mar 02 2017
edited Oct 05 2018
Post your Answer
0

Creating NTFS partition with mkfs.ntfs command will actually create a NTFS partition with id no 83 (check it using fdisk -l command) which belongs to a linux partition hence it will not be recognized by Windows system. A NTFS partition should contain id no as 7 which is recognized by windows system. So create NTFS partition with correct id no 7. In case you have created it wrongly use the fdisk command to change the id value.

Use the below command to create or manage partitions, type fdisk and your partition name (/dev/sda or /dev/sdb).

# fdisk /dev/sda

after you logged in to fdisk prompt, then press t to change partition type and select the no 7 for NTFS partition, then write changes to disk by pressing w and then quit from fdisk prompt then run below command.

# partprobe /dev/sda
Add a comment
parthiban
asked Mar 03 2017
edited Oct 05 2018
Post your Answer
0

Thanks... Now i can access from windows too:-)))

Add a comment
michael
asked Mar 04 2017
edited Oct 05 2018
Post your Answer
0

Having a NTFS-formatted partition content is not enough, the table of partitions must also flag that partition to make it visible in windows.

So in Windows, use DISPART, list disks ("LIST DISK" and ENTER), select the disk ("SEL DISK n"), look at the list of partitions on that disk ("LIST PART"), try listing the volumes recognized ("LIST VOL"):
If the partition selected is not visible with an asterisk, it has incorrect flags.
So you need to set the paritition type with the correct GUID (when using GPT partition) or correct MBR partition type ("SET TYPE ID=n", for the value of n supported, look at "HELP SET", should be "SET ID=07 OVERRIDE" on MBR disks for a base partition accepted by Windows, or "SET ID=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" for a base partition accepted by Windows)
Then check attributes of the partition on GPT disks: "DET PART"; this is an hexadecimal value containing flags: HIDDEN, REQUIRED, READONLY. Some of them may be changed with "ATTR VOL [ SET | CLEAR ] [HIDDEN | READONLY | NODEFAULTDRIVERLETTER | SHADOWCOPY]"

Note that on MBR-partitioned disks, the attributes for HIDDEN, READONLY, NODRIVELETTER apply not just to the selected partition but to ALL partitions of the disk (because of limtiation of the legacy MBR partitioning format). On GPT disks, these attributes are set independantly for each partition.

Note also that if you partitioned your NTFS partition on Linux with "fdisk", this still does not work, but it works with "gparted" because "legacy versions of "fdisk" forget to allocate and initialize some NTFS structures, notably the $Logfile, $Upcase, or $Quota, and have used legacy NTF3.1 format used in Windows 2000 or before. Now windows allocates "$Quota" as a regular file inside a new "$Extend" directory, and also allocates the special file "$UpCase" (containing a compressed case mapping from specific versions of Unicode known at the time the volume was formatted, as this influences how directories are sorted and lookep up for case insensitive searches; Linux does not care because it prefers case sensitive filenames and some old NTFS drivers on Linux do not properly handle case conversions and equivalences for case insensitive filenames).

If you have data on your Linux partition try making some free space on the volume to reduce its partition size using Gparted, then create a new partition with parted/Gparted and transfer your files to it. This done, you can drop the old partition incorrectly formatted unmount the volume of your backup to "slide" it where the old partition was, then extend it to cover the rest. remount on Linux to see if all is OK.
Now Windows should recognize it... unless your Linux has old NTFS filesystem driver (not those from "NTFS-3G" which have better quality and support more things).

Add a comment
philippeverdy
asked Jul 29 2021
Post your Answer