I followed this thread and installed Ubuntu 16.04 alongside macOS. Now I have 8GM RAM and 8G swap space so I should reduce it. After searching from existing threads, I am aware there may be risk involved when dealing with partition on an active OS. Then, should I switch to macOS and resize the partition? Or using Gparted on Ubuntu will be the best practice?
This is the result after df
:
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4016104 0 4016104 0% /dev
tmpfs 807456 9664 797792 2% /run
/dev/sda6 24339852 6650036 16430348 29% /
tmpfs 4037272 56160 3981112 2% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 4037272 0 4037272 0% /sys/fs/cgroup
/dev/sda1 201633 27390 174244 14% /boot/efi
tmpfs 807456 76 807380 1% /run/user/1000
and free
:
total used free shared buff/cache available
Mem: 8074548 1387972 4520412 535036 2166164 5800552
Swap: 7802784 0 7802784
This is my partition table:
flint1025@xiaofeng-MacBookPro:~$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Disk /dev/sda: 490234752 sectors, 233.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 215DBDCF-EC33-482E-AC7D-8526F063DBA7
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 490234718
Partitions will be aligned on 8-sector boundaries
Total free space is 981 sectors (490.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 422660167 201.3 GiB AF05 Customer
3 422660168 423929927 620.0 MiB AB00
4 423929928 439535503 7.4 GiB 8200
5 489259008 490233855 476.0 MiB EF00
6 439535616 489259007 23.7 GiB 8300
Thanks for help in advance.
sudo gdisk -l /dev/sda
orsudo parted /dev/sda print
is what we need to see, or a screen shot of GParted. Also, where you do want to reallocate the swap space? To macOS or to Ubuntu? – Rod Smith May 06 '17 at 22:30