由于要和其它Windows机器交换数据,不得不在移动硬盘上使用NTFS。用gparted创建了NTFS分区,结果在Windows 7下无法识别。
用不同硬盘,不同系统做了对照实验,确定(EDIT:不确定?)是由在Linux下创建NTFS导致的。
逆向工程出来的还是不够完善?
有人遇到过吗?

代码: 全选
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa18470c7
Device Boot Start End Blocks Id System
/dev/sda1 2048 52600831 26299392 83 Linux
/dev/sda2 * 52600832 97656831 22528000 7 HPFS/NTFS/exFAT
/dev/sda3 97656832 974725119 438534144 83 Linux
/dev/sda4 974727166 976771071 1021953 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 974727168 976771071 1021952 82 Linux swap / Solaris
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
14 heads, 12 sectors/track, 23256126 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd981045a
Device Boot Start End Blocks Id System
/dev/sdb1 2048 3907024895 1953511424 83 Linux
代码: 全选
Model: ATA Hitachi HTS54505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 26.9GB 26.9GB primary ext4
2 26.9GB 50.0GB 23.1GB primary ntfs boot
3 50.0GB 499GB 449GB primary ext4
4 499GB 500GB 1046MB extended
5 499GB 500GB 1046MB logical linux-swap(v1)
Model: Generic External (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 2000GB 2000GB primary ntfs
代码: 全选
GParted 0.18.0 --enable-libparted-dmraid --enable-online-resize
Libparted 2.3
Create Primary Partition #1 (ntfs, 3.75 GiB) on /dev/sdb 00:00:04 ( SUCCESS )
create empty partition 00:00:01 ( SUCCESS )
path: /dev/sdb1
start: 2048
end: 7864319
size: 7862272 (3.75 GiB)
clear old file system signatures in /dev/sdb1 00:00:00 ( SUCCESS )
write 68.00 KiB of zeros at byte offset 0 00:00:00 ( SUCCESS )
write 4.00 KiB of zeros at byte offset 67108864 00:00:00 ( SUCCESS )
write 4.00 KiB of zeros at byte offset 4025479168 00:00:00 ( SUCCESS )
flush operating system cache of /dev/sdb 00:00:00 ( SUCCESS )
set partition type on /dev/sdb1 00:00:00 ( SUCCESS )
new partition type: ntfs
create new ntfs file system 00:00:03 ( SUCCESS )
mkntfs -Q -v -L "" /dev/sdb1
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
Creating root directory (mft record 5)
Creating $MFT (mft record 0)
Creating $MFTMirr (mft record 1)
Creating $LogFile (mft record 2)
Creating $AttrDef (mft record 4)
Creating $Bitmap (mft record 6)
Creating $Boot (mft record 7)
Creating backup boot sector.
Creating $Volume (mft record 3)
Creating $BadClus (mft record 8)
Creating $Secure (mft record 9)
Creating $UpCase (mft record 0xa)
Creating $Extend (mft record 11)
Creating system file (mft record 0xc)
Creating system file (mft record 0xd)
Creating system file (mft record 0xe)
Creating system file (mft record 0xf)
Creating $Quota (mft record 24)
Creating $ObjId (mft record 25)
Creating $Reparse (mft record 26)
Syncing root directory index record.
Syncing $Bitmap.
Syncing $MFT.
Updating $MFTMirr.
Syncing device.
mkntfs completed successfully. Have a nice day.
========================================
可以用 fdisk或 gdisk命令中的t修改分区表中的system id,和文件系统没什么关系.Device Boot Start End Blocks Id System
/dev/sdb1 2048 3907024895 1953511424 83 Linux
代码: 全选
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
14 heads, 12 sectors/track, 23256126 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd981045a
Device Boot Start End Blocks Id System
/dev/sdb1 2048 3907024895 1953511424 83 Linux
Disk /dev/sdc: 4026 MB, 4026531840 bytes
136 heads, 30 sectors/track, 1927 cylinders, total 7864320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003d8ba
Device Boot Start End Blocks Id System
/dev/sdc1 2048 7864319 3931136 7 HPFS/NTFS/exFAT
1. 建議硬盘中已有大量重要数据
類似案例mkntfs -Q -v -L "" /dev/sdb1
什麼原因需要啟動這兩個參數GParted 0.18.0 --enable-libparted-dmraid --enable-online-resize