On Debian 9, is /root part of the /home partition?

Chaim Eliyah

I am encrypting my /home partition and I would also like any secrets /root (not /) contains to be encrypted. Is the /root folder considered part of the /home partition by default, or do I need to explicitly add that folder to the encrypted volume? Thanks!

Gilles 'SO- stop being evil'

/root is normally on the root partition. It's meant to be available even if something goes wrong and other partitions can't be mounted.

Note that /root only contains what you put yourself. Sensitive data created by the system ends up under /etc or /var.

These days, with most CPUs having accelerated AES instructions, disk encryption is very cheap. So if you're concerned about confidential data outside of your home directory, you should encrypt the whole system except /boot. This is a good idea anyway because confidential data can end up in other places: wifi passwords in /etc, printed documents in /var/spool/cups, logs showing what wifi networks you connected to and when in /var/log, etc.

If you really want to encrypt only /home and not the whole system, which I repeat is not a good idea, you can make /root a symbolic link:

mv /root /home
ln -s /home/root /

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

No root partition in the Debian example partition scheme

From Dev

Is it safe to resize home and root partition

From Dev

How can I move my /home directory to another partition if it's already part of the / partition?

From Dev

Is it safe to resize home and root partition

From Dev

Debian/Grub2: Moving root partition to new drive?

From Dev

How can I move my /home directory to another partition if it's already part of the / partition?

From Dev

One primary partition left: Root or home?

From Dev

Software installed on root partition or on home partition

From Dev

Shrink Root partition and allocate free space to Home partition

From Dev

Installing Debian with encrypted root: installer does not see EFI /boot partition

From Dev

How can I resize my root partition in Debian?

From Dev

Root home is not /root on my debian?

From Dev

moving free space before other partition (to resize the root part.)

From Dev

What is the root password for raspbian jessie or debian 9

From Dev

How to change home partition after reinstalling Debian 8?

From Dev

What is the difference between a "/" (root) and a /home partition at installation?

From Dev

Which program runs $XDG_CONFIG_HOME/autostart in Debian 9?

From Dev

Does deleting the root partition affect the home partition?

From Dev

Resizing partitions : give memory to root from home partition

From Dev

Applications loading slightly more slowly after shrinking Debian 9 root partition

From Dev

How to increase size of root partition when not in order with home?

From Dev

Resize debian10 home partition

From Dev

Debian Extending Primary (root) partition without data loss

From Dev

increasing the size of root partition and reducing the size of home

From Dev

If the size of my home directory is 9GB and I want to increase it, should I increase size of my home partition or root partition?

From Dev

No root partition in the Debian example partition scheme

From Dev

Grub2/Debian10 change root partition on boot

From Dev

Resize root partition from home partition space ubuntu 18.04

From Dev

increasing the size of root partition and reducing the size of home

Related Related

  1. 1

    No root partition in the Debian example partition scheme

  2. 2

    Is it safe to resize home and root partition

  3. 3

    How can I move my /home directory to another partition if it's already part of the / partition?

  4. 4

    Is it safe to resize home and root partition

  5. 5

    Debian/Grub2: Moving root partition to new drive?

  6. 6

    How can I move my /home directory to another partition if it's already part of the / partition?

  7. 7

    One primary partition left: Root or home?

  8. 8

    Software installed on root partition or on home partition

  9. 9

    Shrink Root partition and allocate free space to Home partition

  10. 10

    Installing Debian with encrypted root: installer does not see EFI /boot partition

  11. 11

    How can I resize my root partition in Debian?

  12. 12

    Root home is not /root on my debian?

  13. 13

    moving free space before other partition (to resize the root part.)

  14. 14

    What is the root password for raspbian jessie or debian 9

  15. 15

    How to change home partition after reinstalling Debian 8?

  16. 16

    What is the difference between a "/" (root) and a /home partition at installation?

  17. 17

    Which program runs $XDG_CONFIG_HOME/autostart in Debian 9?

  18. 18

    Does deleting the root partition affect the home partition?

  19. 19

    Resizing partitions : give memory to root from home partition

  20. 20

    Applications loading slightly more slowly after shrinking Debian 9 root partition

  21. 21

    How to increase size of root partition when not in order with home?

  22. 22

    Resize debian10 home partition

  23. 23

    Debian Extending Primary (root) partition without data loss

  24. 24

    increasing the size of root partition and reducing the size of home

  25. 25

    If the size of my home directory is 9GB and I want to increase it, should I increase size of my home partition or root partition?

  26. 26

    No root partition in the Debian example partition scheme

  27. 27

    Grub2/Debian10 change root partition on boot

  28. 28

    Resize root partition from home partition space ubuntu 18.04

  29. 29

    increasing the size of root partition and reducing the size of home

HotTag

Archive