Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a USB cooldisk 8.0 GB. it was full of Windows viruses. I tried to delete them under Ubuntu 13.04, but it didn't allow me to delete anything!

I formated it by the software 'Disks' to FAT filesystem and overwrite all data by zero. Again, I can't delete anything! I can't change permission of any file!

But, I can do anything by Terminal (CLI). I can create folder by mkdir. I can copy files by cp. etc. I ran sudo chmod 777 -R /media/me/USB/*, but the permission did not change: enter image description here

I want do all by Natilus. It does not allow me to create folder, copy, change permission, ..., by Natilus (Files).

What's the problem?

share|improve this question
    
Please post the output of mount after you plugged in an mounted the USB stick. –  Manuel Jun 6 '13 at 12:26

3 Answers 3

OPTION 1

Delete All files

If you run Disk Management, and click on the usb drive (SD card in the example below)

enter image description here

Click on the gear symbol (circled in red) and format the drive. this will clear it of all files.

OPTION 2

Delete individual files

if you do not want to delete them all, open terminal with Ctrl + Alt + T and type in the following

sudo nautilus

Then navigate to your drive and delete should then work as the sudo command before nautilus gives Nautilus root privileges.

OPTION 3

If you still can not access files

You should be able to change permissions by

  • mounting it with root nautilus (su then after entering the password, type nautilus)
  • then navigate to the drive and transferring permissions to 'guest'.
share|improve this answer
    
As I said, I've formatted it once! I also ran gksudo nautilus /media/me/USB => failed to copy/paste/delete/etc. –  mini Jun 6 '13 at 18:23
    
Try formatting to one of the Linux formats –  SimplySimon Jun 6 '13 at 18:42
    
It should be FAT! I use it in my car for listening to music. the player of car just supports FAT systemfile! –  mini Jun 6 '13 at 19:00
    
You should be able to change permissions by mounting it with root nautilus (su then after password, nautilus) and transferring permissions to 'guest'. –  SimplySimon Jun 6 '13 at 19:11

Try formatting it into ext4 format, then again format it in FAT. And you can also try the command , sudo rm /media/me/USB/* . Be sure to copy your files before formatting.

share|improve this answer

I had the same problem. I don't know how it happened, I also used the gnome disk management app, and somehow my directory in /media had the wrong ownership:

drwxr-x--- 1 root  root  0 Sep 28  2012 me

I deleted it (after unmounting all media), plugged in a usb drive and the directory has been recreated correctly:

drwx------ 1 me    root 18 Mai  1 01:59 me

Now everything's fine again.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.