Damaged files or something...?

Discussions Regarding Software

Moderator: Moderators

Damaged files or something...?

Postby ace-cro » Mon Nov 21, 2011 2:17

Hi

For some reason several of my files on a NTFS partition are not visable. When i do:

Code: Select all
$ ls /media/<disk>/<mydir>


I get these:

Code: Select all
ls: cannot access /media/...


Although they take up space and show in terminal. When I try to access them it would appear that they do not exist. Could anyone suggest anything?
ace-cro
Young Hen
 
Posts: 24
Joined: Fri Mar 04, 2011 10:39

Re: Damaged files or something...?

Postby batvink » Mon Nov 21, 2011 8:53

hi there.

Which version of SL are you running? Desktop Environment...
did you had access before, and suddenly not anymore?
Also, for example: if i want to list the content of '/mdeia/server' in a terminal,
you type: 'ls /media/server/' (end with a slash...) if you forget that last slash, you get the message: can not access....
[edit]
sorry, that's not true. i made a typo....
-------
is the package: sys-fs/ntfs3g-2011.4.12 installed?
Can you paste here the content of '/etc/fstab' ?
User avatar
batvink
Old Dear Hen
 
Posts: 495
Joined: Sun Oct 28, 2007 11:44
Location: the netherlands

Re: Damaged files or something...?

Postby ace-cro » Mon Nov 21, 2011 15:02

Yes, I had access before and not all of the files in the specified directory have this problem. I happened all of a sudden. I have ntfs3g and it worked fine before. Also I have one more linux distribution and win7. All of them have the same problem.

Code: Select all
#
# /etc/fstab
# Created by anaconda on Sun Nov 20 09:16:16 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=b1ce13d7-8262-47a5-bdbf-e5eda2042768 /                       ext4    defaults        1 1
UUID=f5cc4c5c-c609-4559-8523-c927474c4ae4 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0


Sry i wasn't clear before:
example
Code: Select all
ls: cannot access /media/DE3EB9043EB8D6AD/Downloads/sample.AVI: No such file or directory


but also lists as part of directory
ace-cro
Young Hen
 
Posts: 24
Joined: Fri Mar 04, 2011 10:39

Re: Damaged files or something...?

Postby ace-cro » Mon Nov 21, 2011 15:13

And also this is strange:
Code: Select all
$ls -l

-????????? ? ?     ?              ?                ? sample.AVI
-rw------- 2 bojan bojan    5259247 2010-03-21 16:27 Advanced 3D Game Programming with DirectX 10.0.pdf


This is the a "healthy" file and a "damaged" or whatever file.
ace-cro
Young Hen
 
Posts: 24
Joined: Fri Mar 04, 2011 10:39

Re: Damaged files or something...?

Postby batvink » Mon Nov 21, 2011 16:13

the partitions you don't have access to, can you access them as root?
It's not a proper solution, but if so,
you can mount them pemanently, and add them to /etc/fstab
as root, create the mountpoints in /media
and modify /etc/fstab
example:
Code: Select all
/dev/sda5                                         /media/server      ntfs-3g    defaults           0 0
/dev/sdc1                                         /media/Se7en       ntfs-3g    defaults           0 0
/dev/sdc2                                         /media/backup      ntfs-3g    defaults           0 0

This way, you have allways access to your ntfs-partitions as a normal user.
User avatar
batvink
Old Dear Hen
 
Posts: 495
Joined: Sun Oct 28, 2007 11:44
Location: the netherlands

Re: Damaged files or something...?

Postby ace-cro » Mon Nov 21, 2011 18:21

i can access any partition. I can't access several files on one of my partitions :(
ace-cro
Young Hen
 
Posts: 24
Joined: Fri Mar 04, 2011 10:39

Re: Damaged files or something...?

Postby ace-cro » Sat Nov 26, 2011 19:18

Anyone?
ace-cro
Young Hen
 
Posts: 24
Joined: Fri Mar 04, 2011 10:39

Re: Damaged files or something...?

Postby batvink » Sun Nov 27, 2011 11:26

i assume that you have Windows installed, next to Sabayon.
Can you access the files in Windows?
If the files indeed are damaged, you should boot into the MS-Windows environment, and try to repare them from there.
User avatar
batvink
Old Dear Hen
 
Posts: 495
Joined: Sun Oct 28, 2007 11:44
Location: the netherlands


Return to Software in General

Who is online

Users browsing this forum: No registered users and 0 guests