Page 1 of 1

My Ubuntu Box Hacked?

Posted: Wed Jul 25, 2012 11:15 pm
by Ahso!
All my disk space space has been taken up (400gb). Ubuntu Software Center will not allow me to remove anything.

Any ideas?

My Ubuntu Box Hacked?

Posted: Wed Jul 25, 2012 11:42 pm
by Wandrin
I suggest logging in as root and using a shell command line to see what is taking up the space and who owns it. As root, you should be able to delete unwanted files. If that fails, boot from CD/DVD and do the same thing.

My Ubuntu Box Hacked?

Posted: Thu Jul 26, 2012 12:18 am
by Ahso!
rob@rob-GN561AA-ABA-a6230n:~$ gksudo nautilus

Error copying '/home/rob/.Xauthority' to '/tmp/libgksu-6lFZ7p': No space left on devicerob@rob-GN561AA-ABA-a6230n:~$


My Ubuntu Box Hacked?

Posted: Thu Jul 26, 2012 1:33 am
by spot
Where you've typed "gksudo", type this instead:

ls -ls | less

and page up and down what you see. Find a file you can easily recreate (maybe by downloading it again) that's over 10MB, and (change the filename from fred to what you've found)

rm fred

That'll free up enough space to get you into Nautilus with root permission.

If you need to first change to, eg, your Download directory to do the ls command there,

cd Download

For the future you might try installing a couple of useful command line utilities, mc and ncdu.

My Ubuntu Box Hacked?

Posted: Thu Jul 26, 2012 1:49 am
by Ahso!
It looks like Dropbox, which I installed for my new Samsung Galaxy S3, was the problem. I uninstalled it, restarted and everything seems okay now.

It was weird because the Software Center wouldn't let me uninstall anything until I restarted.

I got into Nautilus as root but still can't get to the trash folder.



My Ubuntu Box Hacked?

Posted: Thu Jul 26, 2012 3:02 am
by spot
Ahso!;1399306 wrote: I got into Nautilus as root but still can't get to the trash folder.It would work if you were logged in locally but ssh won't forward the relevant information to your remote terminal. The words "dbus" and "spawned" ought to be in this answer but I lack the vocabulary.

eta: https://bugs.launchpad.net/ubuntu/+sour ... bug/872841 might be adequate as an explanation.

My Ubuntu Box Hacked?

Posted: Sat Jul 28, 2012 8:06 pm
by yaaarrrgg
Once a system runs out of disk space, anything that was running at the time can crash and be left in a half-corrupted state. Sometimes reinstalling, or reconfiguring package will sync everything back up. This should force a package to reconfigure itself, like a fresh install:

dpkg-reconfigure packagename


I think trash can manually be deleted at /home/username/.local/share/Trash/files/ , but I haven't tested :)

My Ubuntu Box Hacked?

Posted: Sat Jul 28, 2012 9:40 pm
by Ahso!
yaaarrrgg;1399447 wrote: Once a system runs out of disk space, anything that was running at the time can crash and be left in a half-corrupted state. Sometimes reinstalling, or reconfiguring package will sync everything back up. This should force a package to reconfigure itself, like a fresh install:Forgot about that. Thanks!