Results 1 to 3 of 3
Hi All,
I have a problem with linux running on my Apple TV.
I don't know how it happend, but it seems I have few corrupted (?) files in my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-14-2012 #1Just Joined!
- Join Date
- Apr 2012
- Posts
- 2
I cannot delete files
Hi All,
I have a problem with linux running on my Apple TV.
I don't know how it happend, but it seems I have few corrupted (?) files in my Movies folder, and I cannot delete them.
Please have a look at below copy of my session. File1.avi is corrupted. File222.avi is normal.
File1.avi does not show any owner, size, permissions, dates, nothing, when directory contents is listed.
I can delete File222.avi, but File1.avi does not want to go away.
I also had file system check done during startup, but it does not help.
Any hints would be appreciated.
Thanks, Robert
-----------------------------------
atv at atv-xbmc: /media/Media/Movies$ ls -l
ls: cannot access File1.avi: No such file or directory
-????????? ? ? ? ? ? File1.avi
-rw-r--r-- 1 atv atv 733366272 2006-05-10 08:01 File222.avi
atv at atv-xbmc: /media/Media/Movies$ rm File1.avi
rm: cannot remove `File1.avi': No such file or directory
atv at atv-xbmc: /media/Media/Movies$ rm -f File1.avi
atv at atv-xbmc: /media/Media/Movies$ ls -l
ls: cannot access File1.avi: No such file or directory
-????????? ? ? ? ? ? File1.avi
-rw-r--r-- 1 atv atv 733366272 2006-05-10 08:01 File222.avi
atv at atv-xbmc: /media/Media/Movies$ sudo rm File1.avi
rm: cannot remove `File1.avi': No such file or directory
atv at atv-xbmc: /media/Media/Movies$ rm File222.avi
atv at atv-xbmc: /media/Media/Movies$ ls -l
ls: cannot access File1.avi: No such file or directory
-????????? ? ? ? ? ? File1.avi
atv at atv-xbmc: /media/Media/Movies$ sudo rm -f File1.avi
atv at atv-xbmc: /media/Media/Movies$ ls -l
ls: cannot access File1.avi: No such file or directory
-????????? ? ? ? ? ? File1.avi
- 04-14-2012 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,232
Can you boot from a recovery/live cd/dvd/usb drive and run fsck on the system disc?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-15-2012 #3Just Joined!
- Join Date
- Apr 2012
- Posts
- 2
Thank you. I'm not sure how to boot appletv from recovery disk, but anyway, this is what I did so far.
The folder with corrupted files is on separate non-system file system. So unmounted it and ran fsck with different arguments few times. It reported fixing some problems, but after mounting back, corrupted files were still there.
I also would not mind reformatting this partition, but my unix skills are a bit rusty. How would I go about it.
I had a look at fdisk, but not sure what the device file name is for my disk. How to find it out?
I know that the device for my file system with problems is /dev/sda4. But when I use it with fdisk, I do not see any partitions. I think I need to know the device file name for my disk.
This is a basic question, but please let me know how to format a partition under Linux.
R


Reply With Quote
