Unable to read some movies that reside on NTFS partition

I can’t read some movies located on my NTFS partition. I’m getting some errors in /var/log/messages like this one :

Apr 23 22:28:12 opensuse ntfs-3g[731]: Inode 4724 has corrupt attribute flags (0x0 <> 0x220): Input/output error

What does that mean ? The same movies play perfectly well on Windows and Windows check disk doesn’t show any errors on the partition.

Best regards,
Greg

Some pointers ? :slight_smile:

Thanks in advance for help.

Best regards,
Greg

I don’t know what it means

Can you copy the file form ntfs to ext4 and play it?

Nope. I can’t read the file. Trying to copy results in :

opensuse:~ # cp /windows/D/Downloads/\!Anime/Naruto/\[Narutoverse\]_NARUTO_Shippuden_258.avi ./                                                                
cp: cannot open `/windows/D/Downloads/!Anime/Naruto/[Narutoverse]_NARUTO_Shippuden_258.avi' for reading: Input/output error                            

Maybe I have some strange mount options ? :


opensuse:~ # mount                                                                                                                                                                              
devtmpfs on /dev type devtmpfs (rw,relatime,size=1467644k,nr_inodes=212717,mode=755)                                                                                                            
tmpfs on /dev/shm type tmpfs (rw,relatime)                                                                                                                                                      
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)                                                                                                                        
/dev/sda7 on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)                                                                                                                    
proc on /proc type proc (rw,relatime)                                                                                                                                                           
sysfs on /sys type sysfs (rw,relatime)                                                                                                                                                          
debugfs on /sys/kernel/debug type debugfs (rw,relatime)                                                                                                                                         
/dev/sda8 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)                                                                                                                
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)                                                                                                                                  
/dev/sda2 on /windows/C type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)                                                        
/dev/sda5 on /windows/D type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw,relatime)

Best regards,
Greg

Is there a entry /windows/D in fstab?

Try changing the line to

defaults 0 0
As shown here: http://forums.opensuse.org/how-faq-read-only/unreviewed-how-faq/413463-fstab-editing-manually.html

and if necessary

chown -R greg /windows/D/

where greg is your username

My fstab entries for NTFS are :

/dev/disk/by-id/ata-ST9320325AS_5VE83YJB-part2 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=122,locale=pl_PL.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_5VE83YJB-part5 /windows/D           ntfs-3g    users,gid=users,fmask=113,dmask=002,locale=pl_PL.UTF-8 0 0

Are You sure chown is needed ? :

grzes@opensuse:~> ls -la /windows/D/Downloads/\!Anime/Naruto/
razem 150481
drwxrwxr-x 1 root users      8192 04-28 21:22 .
drwxrwxr-x 1 root users         0 12-24 21:56 ..
-rw-rw-r-- 1 root users       121 04-21 18:13 .directory
-rw-rw-r-- 2 root users 154082034 04-17 06:43 [Narutoverse]_NARUTO_Shippuden_258.avi

Ls reports this with a defaults in fstab :

grzes@opensuse:~> ls -la /windows/D/Downloads/\!Anime/Naruto/
razem 150481
drwxrwxrwx 1 root root      8192 04-28 21:22 .
drwxrwxrwx 1 root root         0 12-24 21:56 ..
-rwxrwxrwx 1 root root       121 04-21 18:13 .directory
-rwxrwxrwx 2 root root 154082034 04-17 06:43 [Narutoverse]_NARUTO_Shippuden_258.avi

Mount :

grzes@opensuse:~> mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1467644k,nr_inodes=212717,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda7 on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda8 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda2 on /windows/C type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
gvfs-fuse-daemon on /home/grzes/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/sda5 on /windows/D type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

So you changed this /dev/disk/by-id/ata-ST9320325AS_5VE83YJB-part5 /windows/D ntfs-3g users,gid=users,fmask=113,dmask=002,locale=pl_PL.UTF-8 0 0

to this /dev/disk/by-id/ata-ST9320325AS_5VE83YJB-part5 /windows/D ntfs-3g defaults 0 0

Did you reboot

Have you looked at the individual permissions of the files that work and those that don’t.
You can also use dolphin super user to browse to /windows/D, right click, properties, And change permissions

No I didn’t reboot. Just unmounted this partiotion and then issued

mount -a

The permissions of some files that I’m able to play :

grzes@opensuse:~> ls -la /windows/D/Downloads/\!Anime/Girls\ Bravo/
razem 2325096
drwxrwxrwx 1 root root      8192 12-03 22:18 .
drwxrwxrwx 1 root root         0 12-24 21:56 ..
-rwxrwxrwx 1 root root 178341888 11-28 10:13 [AnY]_Girls_Bravo_Second_Season_-_01_[0F2DF293].avi
-rwxrwxrwx 1 root root 178239488 11-28 10:15 [AnY]_Girls_Bravo_Second_Season_-_02_[3E17524F].avi
-rwxrwxrwx 1 root root 179052544 11-28 10:16 [AnY]_Girls_Bravo_Second_Season_-_03_[EBAFC660].avi
-rwxrwxrwx 1 root root 179062784 11-28 10:17 [AnY]_Girls_Bravo_Second_Season_-_04_[99065E7C].avi
-rwxrwxrwx 1 root root 183476224 11-28 10:17 [AnY]_Girls_Bravo_Second_Season_-_05_[DE214F77].avi
-rwxrwxrwx 1 root root 183527424 11-28 10:16 [AnY]_Girls_Bravo_Second_Season_-_06_[7C91BAE3].avi
-rwxrwxrwx 1 root root 178884608 11-28 10:17 [AnY]_Girls_Bravo_Second_Season_-_07_[8119EACA].avi
-rwxrwxrwx 1 root root 183920640 11-28 10:12 [AnY]_Girls_Bravo_Second_Season_-_08_[49A1CFCA].avi
-rwxrwxrwx 1 root root 186114048 11-28 10:17 [AnY]_Girls_Bravo_Second_Season_-_09_[AF94B8F9].avi
-rwxrwxrwx 1 root root 178980864 11-28 10:16 [AnY]_Girls_Bravo_Second_Season_-_10_[Happy_20th_Birthday_Joon]_[CC6F7261].avi
-rwxrwxrwx 1 root root 187203584 11-28 10:16 [AnY]_Girls_Bravo_Second_Season_-_11_[0CCBDEBB].avi
-rwxrwxrwx 1 root root 184811520 11-28 10:16 [AnY]_Girls_Bravo_Second_Season_-_12_[D84FC527].avi
-rwxrwxrwx 1 root root 199260160 11-28 10:13 [AnY]_Girls_Bravo_Second_Season_-_13_END_[E5367515].avi

Thanks for help.

Best regards,
Greg

I have to go out now

On 2012-04-29 08:56, glistwan wrote:

> No I didn’t reboot. Just unmounted this partiotion and then issued
>
> Code:
> --------------------
> mount -a
> --------------------

That’s Ok.

What about the file names? Maybe ntfs-3g doesn’t like the names.

> The permissions of some files that I’m able to play :

Is it the same directory?


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Good idea but it doesn’t seem to do the trick :

grzes@opensuse:~> cd /windows/D/Downloads/\!Anime/Naruto/
grzes@opensuse:/windows/D/Downloads/!Anime/Naruto> mv Narutoverse_NARUTO_Shuppuden_258.avi /windows/D/Downloads/
grzes@opensuse:/windows/D/Downloads/!Anime/Naruto> cd /windows/D/Downloads/
grzes@opensuse:/windows/D/Downloads> vlc Narutoverse_NARUTO_Shuppuden_258.avi 
VLC media player 2.0.1 Twoflower (revision 2.0.1-0-gf432547)
[0x912be30] dbus interface: listening on dbus as: org.mpris.MediaPlayer2.vlc
[0x91183f0] main libvlc: Uruchamianie vlc z domyślnym interfejsem. Użyj 'cvlc' aby używać vlc bez interfejsu.
[0x948bdf8] filesystem access error: cannot open file /windows/D/Downloads/Narutoverse_NARUTO_Shuppuden_258.avi (Input/output error)
[0x91a3718] main input error: open of `file:///windows/D/Downloads/Narutoverse_NARUTO_Shuppuden_258.avi' failed
grzes@opensuse:/windows/D/Downloads&gt; mv Narutoverse_NARUTO_Shuppuden_258.avi nar_shup_258.avi
grzes@opensuse:/windows/D/Downloads&gt; vlc nar_shup_258.avi 
VLC media player 2.0.1 Twoflower (revision 2.0.1-0-gf432547)
[0x82cce30] dbus interface: listening on dbus as: org.mpris.MediaPlayer2.vlc
[0x82b93f0] main libvlc: Uruchamianie vlc z domyślnym interfejsem. Użyj 'cvlc' aby używać vlc bez interfejsu.
[0x8630b10] filesystem access error: cannot open file /windows/D/Downloads/nar_shup_258.avi (Input/output error)
[0x8347590] main input error: open of `file:///windows/D/Downloads/nar_shup_258.avi' failed

I’ve tried windows checkdisk on the partition and it doesn’t report any errors. I guess I might be having a similar problem to this :
Tuxera Support - View topic - Can’t delete a file - corrupt attribute flags & index block

Best regards,
Greg

On 2012-04-30 03:06, glistwan wrote:

> Good idea but it doesn’t seem to do the trick :

Mmmm.

> I’ve tried windows checkdisk on the partition and it doesn’t report any
> errors. I guess I might be having a similar problem to this :
> ‘Tuxera Support - View topic - Can’t delete a file - corrupt attribute
> flags & index block’ (http://tuxera.com/forum/viewtopic.php?f=2&t=1100)

Something of the sort…

If you have space somewhere else, you could try moving over the files,
formatting, then replacing the files back. It is the only thing it occurs
to me. If the files are readable in Windows, you will have to do it there.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Carlos E. R. wrote:

> On 2012-04-30 03:06, glistwan wrote:
>
>> Good idea but it doesn’t seem to do the trick :
>
> Mmmm.
>
>> I’ve tried windows checkdisk on the partition and it doesn’t report any
>> errors. I guess I might be having a similar problem to this :
>> ‘Tuxera Support - View topic - Can’t delete a file - corrupt attribute
>> flags & index block’ (http://tuxera.com/forum/viewtopic.php?f=2&t=1100)
>
> Something of the sort…
>
>
> If you have space somewhere else, you could try moving over the files,
> formatting, then replacing the files back. It is the only thing it occurs
> to me. If the files are readable in Windows, you will have to do it there.
>

I’ll just live with this for now. If I can access the files from windows
it’s enough for me. My guess is that cygwin might have caused this but
that’s just a guess.

Anyway thank You both for help.


Best regards,
Greg