Fedora/Raspberry Pi: Difference between revisions
Jump to navigation
Jump to search
(22 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
sudo hostnamectl set-hostname fedora | sudo hostnamectl set-hostname fedora | ||
sudo timedatectl set-ntp true | sudo timedatectl set-ntp true | ||
ip link show | |||
| valign="middle" | | | valign="middle" | | ||
Line 31: | Line 32: | ||
sudo nmcli dev wifi | sudo nmcli dev wifi | ||
sudo nmcli dev | sudo nmcli dev | ||
ip addr show | |||
|- | |- | ||
Line 40: | Line 42: | ||
sudo nmcli dev wifi con 'ChorkeOrg' password 'sadaqah!' | sudo nmcli dev wifi con 'ChorkeOrg' password 'sadaqah!' | ||
https://10.19.83.111:9090/ | https://10.19.83.111:9090/ | ||
|} | |} | ||
Line 56: | Line 57: | ||
init 6 | init 6 | ||
</source> | </source> | ||
==DNF Repository== | |||
{| | |||
| valign="top" | | |||
'''Free/Community:''' | |||
<source lang="bash"> | |||
sudo dnf install\ | |||
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release\ | |||
-$(rpm -E %fedora).noarch.rpm | |||
</source> | |||
| valign="top" | | |||
'''Non-Free/Commercial:''' | |||
<source lang="bash"> | |||
sudo dnf install\ | |||
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree\ | |||
-release-$(rpm -E %fedora).noarch.rpm | |||
</source> | |||
|} | |||
==System Update== | |||
<source lang="bash" highlight="2-7"> | |||
sudo su | |||
cat << EOF >> /etc/dnf/dnf.conf | |||
fastestmirror=True | |||
max_parallel_downloads=10 | |||
defaultyes=True | |||
EOF | |||
dnf update | |||
</source> | |||
==Expand Volume== | |||
{| | |||
| valign="top" | | |||
<source lang="bash" highlight="12,26,27,31,35-39,44,46-48,52,65"> | |||
sudo fdisk /dev/mmcblk0 | |||
:<<EOF | |||
Welcome to fdisk (util-linux 2.37.2). | |||
Changes will remain in memory only, until you decide to write them. | |||
Be careful before using the write command. | |||
This disk is currently in use - repartitioning is probably a bad idea. | |||
It's recommended to umount all file systems, and swapoff all swap | |||
partitions on this disk. | |||
Command (m for help): p | |||
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos | |||
Disk identifier: 0x8f4e3975 | |||
Device Boot Start End Sectors Size Id Type | |||
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16 | |||
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux | |||
/dev/mmcblk0p3 3328000 14680063 11352064 5.4G 8e Linux LVM | |||
Command (m for help): d | |||
Partition number (1-3, default 3): 3 | |||
Partition 3 has been deleted. | |||
Command (m for help): n | |||
Partition type | |||
p primary (2 primary, 0 extended, 2 free) | |||
e extended (container for logical partitions) | |||
Select (default p): p | |||
Partition number (3,4, default 3): 3 | |||
First sector (3328000-62521343, default 3328000): | |||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (3328000-62521343, | |||
default 62521343): | |||
Created a new partition 3 of type 'Linux' and of size 28.2 GiB. | |||
Partition #3 contains a LVM2_member signature. | |||
Do you want to remove the signature? [Y]es/[N]o: N | |||
Command (m for help): t | |||
Partition number (1-3, default 3): 3 | |||
Hex code or alias (type L to list all): 8e | |||
Changed type of partition 'Linux' to 'Linux LVM'. | |||
Command (m for help): p | |||
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos | |||
Disk identifier: 0x8f4e3975 | |||
Device Boot Start End Sectors Size Id Type | |||
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16 | |||
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux | |||
/dev/mmcblk0p3 3328000 62521343 59193344 28.2G 8e Linux LVM | |||
Command (m for help): w | |||
The partition table has been altered. | |||
Syncing disks. | |||
EOF | |||
</source> | |||
| valign="top" | | |||
<source lang="bash" highlight="7,8,34,35,50-53"> | |||
lsblk | |||
:' | |||
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | |||
mmcblk0 179:0 0 29.8G 0 disk | |||
├─mmcblk0p1 179:1 0 600M 0 part /boot/efi | |||
├─mmcblk0p2 179:2 0 1G 0 part /boot | |||
└─mmcblk0p3 179:3 0 28.2G 0 part | |||
└─fedora_fedora-root 253:0 0 5.4G 0 lvm / | |||
zram0 252:0 0 7.6G 0 disk [SWAP] | |||
' | |||
sudo umount /dev/mmcblk0p3 | |||
sudo pvresize /dev/mmcblk0p3 | |||
sudo pvs | |||
sudo lvresize -l +100%FREE /dev/fedora_fedora/root | |||
sudo xfs_growfs /dev/fedora_fedora/root | |||
sudo lvs | |||
lsblk | |||
:' | |||
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | |||
mmcblk0 179:0 0 29.8G 0 disk | |||
├─mmcblk0p1 179:1 0 600M 0 part /boot/efi | |||
├─mmcblk0p2 179:2 0 1G 0 part /boot | |||
└─mmcblk0p3 179:3 0 28.2G 0 part | |||
└─fedora_fedora-root 253:0 0 28.2G 0 lvm / | |||
zram0 252:0 0 7.6G 0 disk [SWAP] | |||
' | |||
sudo fdisk -l | |||
:' | |||
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos | |||
Disk identifier: 0x8f4e3975 | |||
Device Boot Start End Sectors Size Id Type | |||
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16 | |||
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux | |||
/dev/mmcblk0p3 3328000 62521343 59193344 28.2G 8e Linux LVM | |||
Disk /dev/mapper/fedora_fedora-root: 28.22 GiB, 30303846400 bytes, | |||
59187200 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/zram0: 7.64 GiB, 8205107200 bytes, 2003200 sectors | |||
Units: sectors of 1 * 4096 = 4096 bytes | |||
Sector size (logical/physical): 4096 bytes / 4096 bytes | |||
I/O size (minimum/optimal): 4096 bytes / 4096 bytes | |||
' | |||
sudo mount -a | |||
</source> | |||
|} | |||
==Server Config== | |||
{| | |||
| valign="top" | | |||
sudo dnf install postgresql-server | |||
sudo dnf install mariadb-server | |||
sudo dnf install httpd | |||
| valign="top" | | |||
sudo systemctl enable httpd.service | |||
sudo systemctl start httpd.service | |||
ls -lah /usr/lib/systemd/system/ | |||
| valign="top" | | |||
sudo firewall-cmd --permanent --add-service=http | |||
sudo firewall-cmd --add-service=https | |||
sudo firewall-cmd --add-service=http | |||
|- | |||
|colspan="3"| | |||
---- | |||
|- | |||
| valign="top" | | |||
'''sudo dnf copr enable ganto/lxc4''' | |||
sudo dnf install lxd | |||
| valign="top" | | |||
'''sudo dnf install snapd''' | |||
sudo snap install lxd | |||
| valign="top" | | |||
sudo systemctl enable snapd | |||
sudo systemctl restart snapd | |||
|- | |||
|colspan="3"| | |||
---- | |||
|- | |||
|valign="top" colspan="3"| | |||
<source lang="bash" highlight="12"> | |||
sudo groupadd --system lxd | |||
sudo usermod -G lxd -a pi | |||
sudo newgrp lxd | |||
sudo lxd init | |||
:' | |||
Would you like to use LXD clustering? (yes/no) [default=no]: | |||
Do you want to configure a new storage pool? (yes/no) [default=yes]: | |||
Name of the new storage pool [default=default]: | |||
Name of the storage backend to use (ceph, btrfs, dir, lvm) [default=btrfs]: | |||
Create a new BTRFS pool? (yes/no) [default=yes]: | |||
Would you like to use an existing empty block device (e.g. a disk or partition)? (yes/no) [default=no]: | |||
Size in GB of the new loop device (1GB minimum) [default=23GB]: 60GB | |||
Would you like to connect to a MAAS server? (yes/no) [default=no]: | |||
Would you like to create a new local network bridge? (yes/no) [default=yes]: | |||
What should the new bridge be called? [default=lxdbr0]: | |||
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: | |||
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: | |||
Would you like the LXD server to be available over the network? (yes/no) [default=no]: | |||
Would you like stale cached images to be updated automatically? (yes/no) [default=yes] | |||
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: | |||
' | |||
</source> | |||
|} | |||
==Device Status== | ==Device Status== | ||
Line 237: | Line 481: | ||
' | ' | ||
</source> | </source> | ||
|} | |} | ||
Line 424: | Line 487: | ||
{| | {| | ||
| valign="top" | | | valign="top" | | ||
* [https://forums.raspberrypi.com/viewtopic.php?t=45265 Extend root filesystem using <code>parted</code> & <code>resize2fs</code>] | |||
* [https://docs.fedoraproject.org/en-US/fedora-server/server-installation-sbc/ Fedora Server on Single Board Computers] | * [https://docs.fedoraproject.org/en-US/fedora-server/server-installation-sbc/ Fedora Server on Single Board Computers] | ||
* [https://discussion.fedoraproject.org/t/coreos-vs-iot-editions-in-the-rpm-ostree-family/17787 Fedora CoreOS VS IoT Editions] | * [https://discussion.fedoraproject.org/t/coreos-vs-iot-editions-in-the-rpm-ostree-family/17787 Fedora CoreOS VS IoT Editions] | ||
Line 435: | Line 499: | ||
| valign="top" | | | valign="top" | | ||
* [https://stackoverflow.com/questions/26305376/ <code>resize2fs:</code>Bad magic number in super-block] | |||
* [https://fedoraproject.org/wiki/Architectures/AArch64/F28/Installation Architectures/AArch64/F28/Installation] | * [https://fedoraproject.org/wiki/Architectures/AArch64/F28/Installation Architectures/AArch64/F28/Installation] | ||
* [https://unix.stackexchange.com/questions/200239/ SSH Sessions Prevent From Freezing] | * [https://unix.stackexchange.com/questions/200239/ SSH Sessions Prevent From Freezing] | ||
Line 446: | Line 511: | ||
| valign="top" | | | valign="top" | | ||
* [https://ask.fedoraproject.org/t/fedora-iot-greenboot-login-errors/25721 <code>Script '01_update_platforms_check.sh' FAILURE</code>] | |||
* [https://raspberrypi.stackexchange.com/questions/133150/ Expand volume of Fedora 35 Server AArch64] | |||
* [https://www.linuxquestions.org/questions/fedora-35/how-to-resize-extend-a-volume-group-895429/ Fedora Resize/Extend a Volume Group] | * [https://www.linuxquestions.org/questions/fedora-35/how-to-resize-extend-a-volume-group-895429/ Fedora Resize/Extend a Volume Group] | ||
* [https://access.redhat.com/articles/1190213 Fedora resize a partition using <code>fdisk</code>] | * [https://access.redhat.com/articles/1190213 Fedora resize a partition using <code>fdisk</code>] | ||
* [https://www.redhat.com/sysadmin/resize-lvm-simple Resize a logical volume using LVM] | * [https://www.redhat.com/sysadmin/resize-lvm-simple Resize a logical volume using LVM] | ||
* [https://networklessons.com/uncategorized/extend-lvm-partition Extend Linux LVM Logical Volume] | * [https://networklessons.com/uncategorized/extend-lvm-partition Extend Linux LVM Logical Volume] | ||
* [https://fedora.ipserverone.com/fedora/linux/releases/ Fedora Releases Repository] | * [https://fedora.ipserverone.com/fedora/linux/releases/ Fedora Releases Repository] | ||
* [https://linuxroutes.com/extend-linux-mount-point/ Extend Linux Mount Point] | * [https://linuxroutes.com/extend-linux-mount-point/ Extend Linux Mount Point] | ||
Line 461: | Line 527: | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
* [https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/ Enabling the RPM Fusion repositories] | * [https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/ Enabling the RPM Fusion repositories] | ||
* [https://linuxhint.com/install_fedora_33_raspberry_pi4/ Install Fedora 33 on Raspberry Pi4] | * [https://linuxhint.com/install_fedora_33_raspberry_pi4/ Install Fedora 33 on Raspberry Pi4] | ||
* [https://blog.while-true-do.io/fedora-raspberrypi-setup/ Fedora on Raspberry Pi Setup] | |||
* [https://snapcraft.io/docs/installing-snap-on-fedora Installing snap on Fedora] | |||
* [https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/ DNF System Upgrade] | * [https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/ DNF System Upgrade] | ||
* [[Ubuntu/Raspberry Pi]] | |||
* [[Ubuntu/GraalVM]] | |||
* [[Fedora/GraalVM]] | |||
| valign="top" | | | valign="top" | |
Latest revision as of 01:57, 10 December 2022
================================================================================ ================================================================================ 1) [x] Language Settings 2) [x] Time Settings (English (United States)) (US/Eastern timezone) 3) [ ] Network configuration 4) [x] Root password (Not Connected) (Disabled. Set password to enable root account.) 5) [ ] User creation (No user will be created) Please make a selection from the above ['c' to continue, 'q' to quite, 'r' to refresh]: we needs to set root password & user creation before move forward. We can skip other settings for future or can be done on the fly. | |
| |
sudo timedatectl set-timezone 'Asia/Kuala_Lumpur' sudo hostnamectl set-hostname fedora sudo timedatectl set-ntp true ip link show |
sudo nmcli dev wifi rescan sudo nmcli dev wifi sudo nmcli dev ip addr show |
| |
sudo nmcli dev wifi con 'ChorkeOrg_2.4GHz' password 'sadaqah!' sudo nmcli dev wifi con 'ChorkeOrg' password 'sadaqah!' https://10.19.83.111:9090/ |
Disable Overscan
sudo su
cat << EOF >> /boot/efi/config.txt
disable_overscan=1
EOF
cat /boot/efi/config.txt
init 6
DNF Repository
Free/Community: sudo dnf install\
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release\
-$(rpm -E %fedora).noarch.rpm
|
Non-Free/Commercial: sudo dnf install\
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree\
-release-$(rpm -E %fedora).noarch.rpm
|
System Update
sudo su
cat << EOF >> /etc/dnf/dnf.conf
fastestmirror=True
max_parallel_downloads=10
defaultyes=True
EOF
dnf update
Expand Volume
sudo fdisk /dev/mmcblk0
:<<EOF
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.
Command (m for help): p
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos
Disk identifier: 0x8f4e3975
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux
/dev/mmcblk0p3 3328000 14680063 11352064 5.4G 8e Linux LVM
Command (m for help): d
Partition number (1-3, default 3): 3
Partition 3 has been deleted.
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (3,4, default 3): 3
First sector (3328000-62521343, default 3328000):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (3328000-62521343,
default 62521343):
Created a new partition 3 of type 'Linux' and of size 28.2 GiB.
Partition #3 contains a LVM2_member signature.
Do you want to remove the signature? [Y]es/[N]o: N
Command (m for help): t
Partition number (1-3, default 3): 3
Hex code or alias (type L to list all): 8e
Changed type of partition 'Linux' to 'Linux LVM'.
Command (m for help): p
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos
Disk identifier: 0x8f4e3975
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux
/dev/mmcblk0p3 3328000 62521343 59193344 28.2G 8e Linux LVM
Command (m for help): w
The partition table has been altered.
Syncing disks.
EOF
|
lsblk
:'
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 29.8G 0 disk
├─mmcblk0p1 179:1 0 600M 0 part /boot/efi
├─mmcblk0p2 179:2 0 1G 0 part /boot
└─mmcblk0p3 179:3 0 28.2G 0 part
└─fedora_fedora-root 253:0 0 5.4G 0 lvm /
zram0 252:0 0 7.6G 0 disk [SWAP]
'
sudo umount /dev/mmcblk0p3
sudo pvresize /dev/mmcblk0p3
sudo pvs
sudo lvresize -l +100%FREE /dev/fedora_fedora/root
sudo xfs_growfs /dev/fedora_fedora/root
sudo lvs
lsblk
:'
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 29.8G 0 disk
├─mmcblk0p1 179:1 0 600M 0 part /boot/efi
├─mmcblk0p2 179:2 0 1G 0 part /boot
└─mmcblk0p3 179:3 0 28.2G 0 part
└─fedora_fedora-root 253:0 0 28.2G 0 lvm /
zram0 252:0 0 7.6G 0 disk [SWAP]
'
sudo fdisk -l
:'
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos
Disk identifier: 0x8f4e3975
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux
/dev/mmcblk0p3 3328000 62521343 59193344 28.2G 8e Linux LVM
Disk /dev/mapper/fedora_fedora-root: 28.22 GiB, 30303846400 bytes,
59187200 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/zram0: 7.64 GiB, 8205107200 bytes, 2003200 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
'
sudo mount -a
|
Server Config
sudo dnf install postgresql-server sudo dnf install mariadb-server sudo dnf install httpd |
sudo systemctl enable httpd.service sudo systemctl start httpd.service ls -lah /usr/lib/systemd/system/ |
sudo firewall-cmd --permanent --add-service=http sudo firewall-cmd --add-service=https sudo firewall-cmd --add-service=http |
| ||
sudo dnf copr enable ganto/lxc4 sudo dnf install lxd |
sudo dnf install snapd sudo snap install lxd |
sudo systemctl enable snapd sudo systemctl restart snapd |
| ||
sudo groupadd --system lxd
sudo usermod -G lxd -a pi
sudo newgrp lxd
sudo lxd init
:'
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]:
Name of the storage backend to use (ceph, btrfs, dir, lvm) [default=btrfs]:
Create a new BTRFS pool? (yes/no) [default=yes]:
Would you like to use an existing empty block device (e.g. a disk or partition)? (yes/no) [default=no]:
Size in GB of the new loop device (1GB minimum) [default=23GB]: 60GB
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
Would you like the LXD server to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]:
'
|
Device Status
sudo nmcli dev
:'
DEVICE TYPE STATE CONNECTION
wlan0 wifi connected ChorkeOrg_2.4GHz
p2p-dev-wlan0 wifi-p2p disconnected --
eth0 ethernet unavailable --
lo loopback unmanaged --
'
ifconfig
|
lsblk
:'
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 29.8G 0 disk
├─mmcblk0p1 179:1 0 600M 0 part /boot/efi
├─mmcblk0p2 179:2 0 1G 0 part /boot
└─mmcblk0p3 179:3 0 5.4G 0 part
└─fedora_fedora-root 253:0 0 5.4G 0 lvm /
zram0 252:0 0 7.6G 0 disk [SWAP]
'
|
| |
sudo pvdisplay
:'
--- Physical volume ---
PV Name /dev/mmcblk0p3
VG Name fedora_fedora
PV Size 5.41 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 1385
Free PE 0
Allocated PE 1385
PV UUID QSZIHQ-zti6-8zM2-gCrb-XXWT-LFVT-csiI54
'
|
df -h
:'
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 1.6G 9.2M 1.6G 1% /run
/dev/mapper/fedora_fedora-root 5.5G 2.4G 3.1G 44% /
tmpfs 3.9G 32K 3.9G 1% /tmp
/dev/mmcblk0p2 1014M 154M 861M 16% /boot
/dev/mmcblk0p1 599M 31M 569M 6% /boot/efi
tmpfs 783M 0 783M 0% /run/user/1000
'
|
| |
sudo vgdisplay
:'
--- Volume group ---
VG Name fedora_fedora
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 5.41 GiB
PE Size 4.00 MiB
Total PE 1385
Alloc PE / Size 1385 / 5.41 GiB
Free PE / Size 0 / 0
VG UUID fr0O3c-g90f-jeh0-9fjv-q63b-VCGi-wH8yIn
'
|
sudo fdisk -l
:'
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos
Disk identifier: 0x8f4e3975
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux
/dev/mmcblk0p3 3328000 14680063 11352064 5.4G 8e Linux LVM
Disk /dev/mapper/fedora_fedora-root: 5.41 GiB, 5809111040 bytes, 11345920 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/zram0: 7.64 GiB, 8205107200 bytes, 2003200 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
'
|
| |
sudo lvdisplay
:'
--- Logical volume ---
LV Path /dev/fedora_fedora/root
LV Name root
VG Name fedora_fedora
LV UUID NbFPQx-F1x7-XW8d-2Ghe-K8Bv-Q3e7-S6SIo7
LV Write Access read/write
LV Creation host, time fedora, 2021-10-26 13:39:46 +0800
LV Status available
# open 1
LV Size 5.41 GiB
Current LE 1385
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
'
|
sudo fdisk /dev/mmcblk0 -l
:'
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 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: dos
Disk identifier: 0x8f4e3975
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 1230847 1228800 600M 6 FAT16
/dev/mmcblk0p2 1230848 3327999 2097152 1G 83 Linux
/dev/mmcblk0p3 3328000 14680063 11352064 5.4G 8e Linux LVM
'
|