Removing a file on external hd
hello ya'll
wonder if anyone could help me out a bit I was browsing my ext hd with nautilus and saw i file i wanted to delete it was part of an old process that horked when the durn kernel crashed last night anyways I selected it chose move to trash , and nautilus tole me i couldnt checked permissions and it said it was owned by root not deterred I opened a terminal cd'd to the folder that housed the misbegotten file ( ok its a directory.... let me get my terminology correct) rm -r -i <directoryname> out put was [HOST 4.7]# rm -r -i Directoryname rm: descend into directory `Directoryname/'? y rm: descend into directory `Directoryname/subDirectoryname'? y rm: descend into directory `Directoryname/subDirectoryname/VIDEO_TS'? y rm: remove regular file `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_0.BUP'? y rm: cannot remove `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_0.BUP': Input/output error rm: remove regular file `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_0.IFO'? y rm: cannot remove `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_0.IFO': Input/output error rm: remove regular file `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_0.VOB'? y rm: cannot remove `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_0.VOB': Input/output error rm: remove regular file `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_1.VOB'? y rm: cannot remove `Directoryname/subDirectoryname/VIDEO_TS/VTS_01_1.VOB': Input/output error rm: remove regular file `Directoryname/subDirectoryname/VIDEO_TS/VTS_02_0.VOB'? y rm: cannot remove `Directoryname/subDirectoryname/VIDEO_TS/VTS_02_0.VOB': Input/output error rm: remove regular file `Directoryname/subDirectoryname/VIDEO_TS/VTS_02_1.VOB'? y rm: cannot remove `Directoryname/subDirectoryname/VIDEO_TS/VTS_02_1.VOB': Input/output error then the ls confirms the files are in fact there hmm I sure i missed some simple step root have been able to wax any of it can any one point me in the right direction I read at oreillys that the rmdir command was only for empty folders and the rm -r was for full ones I used the -i , cuz i recently tried to wax a symbolic link and took out half my home folder thanks ya'll |
I recommend cd'ing (as root) manually into that dir and running
ls -la so you/we can see what's going on. |
ok did that
heres the out put drwxrwxrwx 1 root root 4096 2009-06-08 19:31 . drwxrwxrwx 1 root root 0 2009-06-09 18:22 .. -rwxrwxrwx 1 root root 18432 2009-06-08 19:31 VTS_01_0.BUP -rwxrwxrwx 1 root root 18432 2009-06-08 19:31 VTS_01_0.IFO -rwxrwxrwx 1 root root 6416384 2009-06-08 19:31 VTS_01_0.VOB -rwxrwxrwx 1 root root 32768 2009-06-08 19:31 VTS_01_1.VOB -rwxrwxrwx 1 root root 32768 2009-06-08 19:31 VTS_02_0.VOB -rwxrwxrwx 1 root root 262504448 2009-06-08 19:32 VTS_02_1.VOB VIDEO_TS]# rm -f VTS* rm: cannot remove `VTS_01_0.BUP': Input/output error rm: cannot remove `VTS_01_0.IFO': Input/output error rm: cannot remove `VTS_01_0.VOB': Input/output error rm: cannot remove `VTS_01_1.VOB': Input/output error rm: cannot remove `VTS_02_0.VOB': Input/output error rm: cannot remove `VTS_02_1.VOB': Input/output error ok the ext hd is formated as NTFS sose i can use me winders box with it would that maybe affect how i move stuff round? maybe cuz it locked up last night during the process of creating these files i dunno but root should have had its way with the files, but din't dang it thanks Edit windows had no prob removing the file and its contents |
All times are GMT -5. The time now is 04:27 PM. |