[Solved] Not write folders and files in partition NTFS (problem after restart) / Problem with memory cache SSD

Bug #1202021 reported by Cristian Aravena Romero

This bug report was converted into a question: question #232826: [Solved] Not write folders and files in partition NTFS (problem after restart) / Problem with memory cache SSD.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ntfs-3g (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello!

1) I'm writing files/folders in partition /dev/sda6 (my-doc); /dev/sda2 (win7) , and create folders and files :)
2) Reboot
3) Start Win7
4) Partition my-doc and win7 with old file/folders. Not saving files/folders in point "1)"

caravena@caravena-530U3C-530U4C:~$ LANGUAGE=C sudo fdisk /dev/sda

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): p

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: 0xb888892e

   Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 293175597 146484375 7 HPFS/NTFS/exFAT
/dev/sda3 930347008 976773119 23213056 27 Hidden NTFS WinRE
/dev/sda4 293177342 930347007 318584833 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 922347520 930347007 3999744 82 Linux swap / Solaris
/dev/sda6 390834176 922339327 265752576 7 HPFS/NTFS/exFAT
/dev/sda7 293177344 390832127 48827392 83 Linux

Partition table entries are not in disk order

Command (m for help):

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: ntfs-3g 1:2013.1.13AR.1-2ubuntu1
ProcVersionSignature: Ubuntu 3.10.0-3.12-generic 3.10.1
Uname: Linux 3.10.0-3-generic x86_64
ApportVersion: 2.10.2-0ubuntu4
Architecture: amd64
Date: Tue Jul 16 21:55:37 2013
InstallationDate: Installed on 2013-07-05 (11 days ago)
InstallationMedia: Ubuntu-GNOME 13.10 "Saucy Salamander" - Alpha amd64 (20130621)
MarkForUpload: True
SourcePackage: ntfs-3g
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Revision history for this message
Jean-Pierre (jean-pierre-andre) wrote :

1) Please post the formatting parameters of sda2 and sda6 :
sudo ntfsinfo -fm /dev/sda2
sudo ntfsinfo -fm /dev/sda6
2) Are the files created on Win7 shown by Linux ?

Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Revision history for this message
Cristian Aravena Romero (caravena) wrote :

2) Are the files created on Win7 shown by Linux ?

Yes.

Revision history for this message
Jean-Pierre (jean-pierre-andre) wrote :

Do you use some special hardware (such as a cache on SSD) ?

To discriminate "Linux does not write the data" from "Windows does not get the data", please try the following (on sda6, to avoid putting Windows at risk) :
1) Boot on Linux and create some file.
2) Reboot on Linux (without starting Windows in-between).
3) Still on Linux, check whether you can access the file created at step 1.

Note : your formatting parameters appear to be valid, though suboptimal on a 4K-sector disk.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Do you use some special hardware (such as a cache on SSD) ?
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Yes, I use a SSD cache memory

$ LANGUAGE=C sudo fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdb: 24.0 GB, 24015495168 bytes
255 heads, 63 sectors/track, 2919 cylinders, total 46905264 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: 0x74f02dea

   Device Boot Start End Blocks Id System
/dev/sdb1 2048 40603647 20300800 73 Unknown
/dev/sdb2 40603648 46895103 3145728 84 OS/2 hidden C: drive

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
To discriminate "Linux does not write the data" from "Windows does not get the data", please try the following (on sda6, to avoid putting Windows at risk) :
1) Boot on Linux and create some file.
2) Reboot on Linux (without starting Windows in-between).
3) Still on Linux, check whether you can access the file created at step 1.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
If you can access the files in step 1 in my partition sda6

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Note : your formatting parameters appear to be valid, though suboptimal
on a 4K-sector disk.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
What should I do to be optimal?

summary: [Saucy-Development] Not write folders and files in partition NTFS
- (problem after restart)
+ (problem after restart) / Problem with memory cache SSD [Solved]
summary: [Saucy-Development] Not write folders and files in partition NTFS
- (problem after restart) / Problem with memory cache SSD [Solved]
+ (problem after restart) / Problem with memory **cache** SSD [Solved]
summary: - [Saucy-Development] Not write folders and files in partition NTFS
- (problem after restart) / Problem with memory **cache** SSD [Solved]
+ [Solved] Not write folders and files in partition NTFS (problem after
+ restart) / Problem with memory **cache** SSD
summary: [Solved] Not write folders and files in partition NTFS (problem after
- restart) / Problem with memory **cache** SSD
+ restart) / Problem with memory cache SSD
Revision history for this message
Jean-Pierre (jean-pierre-andre) wrote :

"Yes, I use a SSD cache memory"
Windows and Linux do not use compatible cacheing. On a dual-boot computer, you have to disable the cacheing altogether. See for instance http://useranswer.com/answer/dual-boot-installation-of-ubuntu-12-04-lts-on-hp-ultrabook-envy-4-1002tx/ However this is a risky operation, do a full backup before trying.

"What should I do to be optimal?"
You should format your partitions for 4K sectors. As your primary and logical partitions start on a sector boundary, you need not repartition. On sda6 you have no data, so reformating is easy :

sudo mkntfs -f -L mis-doc -s4096 -c4096 /dev/sda6

Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Thanks Jean-Pierre!

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Now work fine (Cache SSD disable)

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

I'ts not bug.

Changed in ntfs-3g (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.