Thursday, April 25, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 452  / 2 Years ago, sun, april 17, 2022, 3:30:36

When i'm looking at my Disk Utility, I have 3 partitions:




  • Filesystem | Partition 1 | 99 MB FAT

  • Filesystem | Partition 2 | 636 GB Ext4

  • Swap | Partition 3 | 3.7 GB Swap



What are the three for? Can I delete any of these?



christopher@christopher-Ubuntu:~$ sudo blkid
[sudo] password for christopher:
/dev/sda1: UUID="B566-A28C" TYPE="vfat"
/dev/sda2: UUID="efea80ee-715a-44de-9c74-57b38fc9b25c" TYPE="ext4"
/dev/sda3: UUID="7b763a32-e4c4-48a1-9ced-1b87ef3d80fd" TYPE="swap"

christopher@christopher-Ubuntu:~$ fdisk -l
christopher@christopher-Ubuntu:~$ sudo free
total used free shared buffers cached
Mem: 3436848 1256972 2179876 0 65776 577704
-/+ buffers/cache: 613492 2823356
Swap: 3639292 0 3639292

christopher@christopher-Ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 584G 6.5G 548G 2% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.7G 8.0K 1.7G 1% /dev
tmpfs 336M 1.2M 335M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.7G 288K 1.7G 1% /run/shm
none 100M 40K 100M 1% /run/user
/dev/sda1 93M 2.2M 91M 3% /boot/efi


sudo fdiks -l:



WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x16a83e64

Device Boot Start End Blocks Id System
/dev/sda1 1 1250263727 625131863+ ee GPT
Partition 1 does not start on physical sector boundary.

More From » partitioning

 Answers
1

Third partition is Swap:



Swap space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory.



Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of swap partitions and swap files.



Swap should equal 2x physical RAM for up to 2 GB of physical RAM, and then an additional 1x physical RAM for any amount above 2 GB, but never less than 32 MB.



I'm not sure about the 1st partition, but your system(OS) should be installed in 2nd partition that you can't delete.



Yes you can delete/disable/enable/add/remove 3rd partition i,e Swap.



But it is not recommended to not allot any memory space for swap.



Here is the command which you can use to enable/disable swap memeory:



to disable:



sudo swapoff -a


to enable:



sudo swapon -a


Get more info:



sudo swapoff -h 


or



sudo swapon -h


If you provide some more information by posting the output of these commands then I'll be able to give some more information:



sudo blkid
sudo fdisk -l
sudo free
df -h


Reply if you need further assistance..


[#28832] Tuesday, April 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
algicuade

Total Points: 317
Total Questions: 89
Total Answers: 106

Location: Saint Pierre and Miquelon
Member since Fri, Jan 28, 2022
2 Years ago
;