Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Fedora 31 Essentials

You're reading from   Fedora 31 Essentials Learn how to install, administer, and deploy Fedora 31 systems

Arrow left icon
Product type Paperback
Published in Apr 2020
Publisher Packt
ISBN-13 9781800562790
Length 271 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Neil Smyth Neil Smyth
Author Profile Icon Neil Smyth
Neil Smyth
Arrow right icon
View More author details
Toc

Table of Contents (32) Chapters Close

1. Introduction 2. A Brief History of Linux FREE CHAPTER 3. Installing Fedora 31 on a Clean Disk Drive 4. Dual Booting Fedora 31 with Windows 5. Allocating Windows Disk Partitions to Fedora 31 6. A Guided Tour of the GNOME 3 Desktop 7. An Overview of the Fedora 31 Cockpit Web Interface 8. Using the Bash Shell on Fedora 31 9. Managing Fedora 31 Users and Groups 10. Understanding Fedora 31 Software Installation and Management 11. Configuring Fedora 31 systemd Units 12. Fedora 31 Network Management 13. Basic Fedora 31 Firewall Configuration with firewalld 14. Configuring SSH Key-based Authentication on Fedora 31 15. Fedora 31 Remote Desktop Access with VNC 16. Displaying Fedora 31 Applications Remotely (X11 Forwarding) 17. Using NFS to Share Fedora 31 Files with Remote Systems 18. Sharing Files between Fedora 31 and Windows Systems with Samba 19. An Overview of Virtualization Techniques 20. Installing KVM Virtualization on Fedora 31 21. Creating KVM Virtual Machines using Cockpit and virt-manager 22. Creating KVM Virtual Machines with virt-install and virsh 23. Creating a Fedora 31 KVM Networked Bridge Interface 24. Managing KVM using the virsh Command-Line Tool 25. An Introduction to Linux Containers 26. Working with Containers on Fedora 31 27. Setting Up a Fedora 31 Web Server 28. Configuring a Fedora 31 Postfix Email Server 29. Adding a New Disk Drive to a Fedora 31 System 30. Adding a New Disk to a Fedora 31 Volume Group and Logical Volume 31. Adding and Managing Fedora 31 Swap Space Index

31.5 Adding Swap as a Partition

As an alternative to designating a file as swap space, entire disk partitions may also be designated as swap. The steps to achieve this are largely the same as those for adding a swap file. Before allocating a partition to swap, however, make sure that any existing data on the corresponding filesystem is either backed up or no longer needed and that the filesystem has been unmounted.

Assuming that a partition exists on a disk drive represented by /dev/sdb1, for example, the first step would be to convert this into a swap partition, once again using the mkswap utility:

# mkswap /dev/sdb1

mkswap: /dev/sdb1: warning: wiping old xfs signature.

Setting up swapspace version 1, size = 8 GiB (8587833344 bytes)

no label, UUID=a899c8ec-c410-4569-ba18-ddea03370c7f

Next, add the new partition to the system swap and verify that it has indeed been added:

# swapon /dev/sdb1

# swapon

NAME TYPE SIZE USED PRIO

/dev/dm-1 partition...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image