Ask Your Question
0

What partitions are root and home directories on?

asked 2017-07-12 10:56:42 -0500

wolfv gravatar image

updated 2017-07-14 05:21:48 -0500

I am trying to figure out my current Fedora 25 workstation setup before planning my Fedora 26 install.

$ sudo fdisk -l
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A461B70B-918B-4F49-A54B-97F8DC38DA38

Device       Start       End   Sectors   Size Type
/dev/sda1     2048    411647    409600   200M EFI System
/dev/sda2   411648   2508799   2097152     1G Linux filesystem
/dev/sda3  2508800 488396799 485888000 231.7G Linux LVM


Disk /dev/mapper/fedora-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytesv
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-swap: 7.8 GiB, 8401190912 bytes, 16408576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-home: 173.9 GiB, 186684276736 bytes, 364617728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

From Nautilus:

root  52.7 GB
home 173.9 GB

How to find out what partitions my root and home directories are on?

UPDATE:

The LVM diagram on https://en.wikipedia.org/wiki/Logicalvolumemanagement is helpful. You can think of LVM logical volumes as virtual disk partitions.

The following is based on https://unix.stackexchange.com/questi...

The entries in /dev/mapper are LVM logical volumes.

The disk is divided in MBR partitions, one of which (/dev/sda3) is an LVM physical volume. The LVM physical volume is the single constituent of the volume group fedora, which contains three logical volumes:

/dev/mapper/fedora-root
/dev/mapper/fedora-swap
/dev/mapper/fedora-home

Fedora is installed on /dev/mapper/fedora-root. Fedora's home directory is mounted on /dev/mapper/fedora-home.

Whether to use PC partitions or LVM volumes for a Linux installation is often merely a matter of convenience. There are things you can't do with PC partitions, such as spread them on multiple disks, or simply resize them and move them around easily, or create snapshots with them, so an installation over LVM is a lot more flexible. But if you don't need this flexibility, you can install directly onto PC partitions.

edit retag flag offensive close merge delete

Comments

1

have you looked in fstab?

SteveEbey73701 gravatar imageSteveEbey73701 ( 2017-07-12 11:12:41 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-07-12 11:34:29 -0500

villykruse gravatar image

updated 2017-07-12 11:38:09 -0500

The are all on a local volume (LVM) found on /dev/sda3 . More information is at https://docs.fedoraproject.org/en-US/...AdministrationGuide/ch-lvm.html

/dev/sda2 would then be the /boot file system and /dev/sda1 the /boot/efi file system.

edit flag offensive delete link more

Comments

Not sure where that link is supposed go to. Is it the same content as https://docs.fedoraproject.org/en-US/... ?

wolfv gravatar imagewolfv ( 2017-07-14 03:26:42 -0500 )edit
1

answered 2017-07-12 12:01:58 -0500

florian gravatar image

The command lsblk will illustrate how your LVM setup looks like.

df -h tells you how much space you are using on the different volumes/drives.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-07-12 10:56:42 -0500

Seen: 2,456 times

Last updated: Jul 14 '17