Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found having a folder called /debian in the root folder (/) which is 2.5GB of size. It contains a single subfolder called dbgtmp that contains several other subfolders.

contents of the /debian folder

I'm almost sure that they're the remains of my custom kernel compiled because of the missing touchpad driver from 14.04 stock kernel.

$ uname -a
Linux asus-UX303LA 3.17.2-custom #2 SMP Wed Nov 5 08:59:54 AEDT 2014 x86_64 x86_64 x86_64 GNU/Linux

My question is whether is it to safe to delete that folder or not?

share|improve this question
up vote 2 down vote accepted

This is the default hierarchy in a default Linux system:


As you can see there are no folders named /debian . So, as you have stated those are left-overs of your custom kernel compilation. You may delete it to free up some space. But if possible you might want to back-up your system to be on the safe side.

Also, from free-electrons, on line 82 you will see that this type of directory is created in order to generate a deb package for a Linux kernel:

share|improve this answer
Correct, deleted it, rebooted and everything works as before. Thanks for the explanation. – Attila Fulop Jan 23 at 15:28
Glad! It worked! – Raphael Jan 23 at 15:29
Whenever I do such things, I merely rename the directory. If nothing breaks on a restart, usually I just delete it. When I'm not sure, I'll keep it on some backup drive (along with a text file describing where I got the directory from and when I did that) until I forget about it. Then, after some time has passed and I attach that backup drive again, I delete that directory. If I remembered it before, that's because it was important and had to be restored. A kinda lazy approach ;D – Kreuvf Jan 23 at 18:47

Your Answer


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.