Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 was deleting a partition on my root drive through the disk utility, and now the disk utility shows my root disk is entirely free space.

My system is still running and I can access all my files just fine - lsblk shows the partitions just as they should be.

Is it even possible to delete the root partition, or is this likely just a bug with the disk utility?

share|improve this question

closed as unclear what you're asking by Braiam, falconer, Eric Carvalho, guntbert, Lucio Jan 22 '14 at 23:02

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

What do you mean by a "..a partition on my root drive..." ? Please post the output of lsblk. – precise Jan 21 '14 at 9:22
up vote 0 down vote accepted

With such attempt, even if you're unable to delete / entirely, you could still get your system to crash! But for that you'll need root privileges.

The command,

sudo rm -rf /


sudo rm -rf /*

will delete every files from all the RW mounts. This will case the system to crash because of possible deletion of important system files.

So it's said that you should take extreme care while working as root.

"...with great power comes great responsibility."

Protection of the filesystem root: source

In modern contex, Sun Microsystems uses rm -rf / protection so that executing the command reports removal of / is not allowed. The same functionality was introduced into FreeBSD version of rm utility. GNU rm refuses to execute rm -rf / if the --preserve-root option is given, which now is the default behaviour for the command.

share|improve this answer

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