2

I tried:

# rm -r .Trash-0
# rm -rf .Trash-0

But of no use. This file doesn't get deleted. It says "read only file system cannot be deleted".

Ron
  • 20,518
  • 6
  • 57
  • 72

1 Answers1

0

Boot from ubuntu install media - choose 'Try Ubuntu'.

Mount ubuntu partition : sudo mount /dev/sd* /mnt

Open Nautilus as root : sudo dbus-launch nautilus

Press Ctrl + H - then open 'Computer' => /mnt folder.
Go to the location of the .Trash-0 folder and delete it.

Note : * = disk / partition (e.g. : sda1)
You can use GParted for identification.

cl-netbox
  • 30,845
  • 7
  • 93
  • 131
  • I am trying to move the folder to /mnt n delete it from there. Hope it works that way. – Alister Geek Sep 03 '15 at 08:36
  • 1
    @Meghraj - I think you missunderstood - you have to execute the operation following the steps I described from ubuntu live media ! – cl-netbox Sep 03 '15 at 08:43
  • I just wanted to try this way once. Actually I have installed it in VMware. While deleting it say, cannot be deleted, read only file system. Its located in root.. .snapshot/.Trash-0 – Alister Geek Sep 03 '15 at 08:52
  • 1
    @Meghraj - so you are talking about a VM install, you should have said this before ! Your problem is not ubuntu related - as it seems you are dealing with a snapshot thing, you only can solve it from within VMware machine management. – cl-netbox Sep 03 '15 at 09:04