LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-09-2009, 06:52 PM   #1
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
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
 
Old 06-09-2009, 07:16 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
I recommend cd'ing (as root) manually into that dir and running

ls -la

so you/we can see what's going on.
 
Old 06-09-2009, 07:33 PM   #3
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Original Poster
Rep: Reputation: 30
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

Last edited by ehdwuld; 06-16-2009 at 06:38 PM. Reason: condition resolved
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing file sahel Programming 3 01-23-2006 12:29 AM
removing file sahel Programming 1 01-21-2006 06:15 AM
removing the file junaid18183 Linux - Newbie 2 04-05-2005 09:55 PM
Removing lines from file Aylar Programming 2 04-22-2004 06:34 AM
removing a file (--exclude is the name of the file) Santinelli Linux - General 2 01-14-2004 09:03 AM


All times are GMT -5. The time now is 05:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration