Re: rm

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Oyen
Date:  
To: Main PLUG discussion list
Subject: Re: rm
wow.
It sounded like you had some really nasty issues with that filesystem. It’s didn’t want to unmount, fsck wouldn’t behave and rm couldn’t delete files. Yep, that’s a hard core FUBARED filesystem alright.

Well, you got the problem resolved.

Btw, sometimes I encounter stubborn files like this. It usually turns out to be a permissions issue. The only problem then becomes resetting the perms (as they sometimes won’t stick).

Usually though, if an FS shows corruption, using fsck should solve it (unless there is some kind of bug that is causing read/write operations to fail.

-Eric


> On Nov 22, 2018, at 8:49 AM, Michael <> wrote:
>
> I ran fsck. It just returned through. So then I reformatted it with gparted. So all is well (I guess). I did have to restart the computer after the reformat though (don't remember why) but everything seemed okay. Oh yeaaaaa! I think I had to restart it because it would not unmount and I figured I would try to restart it and if it would gracefully do so it would be good. And it did and upon restart the drive auto mounted.
>
>
> On Wed, Nov 21, 2018 at 11:56 PM Eric Oyen < <mailto:eric.oyen@icloud.com>> wrote:
> Ok, unmount the drive, then run
> Sudo fsck <your device here>
> When completed, remount and then try to remove the files using:
> Sudo rm -rf <name of files here>
>
> -Eric
>
>
>> On Nov 21, 2018, at 8:53 PM, Michael < <mailto:bmike1@gmail.com>> wrote:
>>
>> this is interesting: I tried accessing 'Neil' from the GUI but get an error:
>> Sorry, could not display all the contents of "Neil": Error when getting information for file '/media/bmike1/Seagate Expansion Drive/Documents/Business/CablingJobs/Neil/IMG_20150205_180721.jpg': Input/output error)
>> and when I attempt to access it from a tty get:
>> $ ls Neil/
>> ls: cannot access 'Neil/IMG_20150205_180604.jpg': Input/output error
>> ls: cannot access 'Neil/IMG_20150205_180721.jpg': Input/output error
>> ls: cannot access 'Neil/IMG_20150205_180827.jpg': Input/output error
>> ls: cannot access 'Neil/IMG_20150205_180903.jpg': Input/output error
>> ls: cannot access 'Neil/IMG_20150205_180917.jpg': Input/output error
>> ls: cannot access 'Neil/quote.docx': Input/output error
>> IMG_20150205_180559.jpg IMG_20150205_180827.jpg quote.docx
>> IMG_20150205_180604.jpg IMG_20150205_180903.jpg
>> IMG_20150205_180721.jpg IMG_20150205_180917.jpg
>>
>>
>> On Wed, Nov 21, 2018 at 10:44 PM Michael < <mailto:bmike1@gmail.com>> wrote:
>> how do I delete the following files>?
>>
>> /media/bmike1/Seagate Expansion Drive/Documents/Business/CablingJobs $ sudo rm -rf Neil/
>> rm: cannot remove 'Neil/IMG_20150205_180604.jpg': Input/output error
>> rm: cannot remove 'Neil/IMG_20150205_180721.jpg': Input/output error
>> rm: cannot remove 'Neil/IMG_20150205_180827.jpg': Input/output error
>> rm: cannot remove 'Neil/IMG_20150205_180903.jpg': Input/output error
>> rm: cannot remove 'Neil/IMG_20150205_180917.jpg': Input/output error
>> rm: cannot remove 'Neil/quote.docx': Input/output error
>>
>> these are the only files on the drive.
>>
>> --
>> :-)~MIKE~(-:
>>
>>
>> --
>> :-)~MIKE~(-:
>> ---------------------------------------------------
>> PLUG-discuss mailing list - <mailto:PLUG-discuss@lists.phxlinux.org>
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss <https://lists.phxlinux.org/mailman/listinfo/plug-discuss>
> ---------------------------------------------------
> PLUG-discuss mailing list - <mailto:PLUG-discuss@lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss <https://lists.phxlinux.org/mailman/listinfo/plug-discuss>
>
> --
> :-)~MIKE~(-:
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss