[root@VM-20-9-centos ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/live-rw 7.8G 4.2G 3.6G 54% /
devtmpfs 966M 0 966M 0% /dev
tmpfs 1000M 4.0K 1000M 1% /dev/shm
tmpfs 1000M 17M 983M 2% /run
tmpfs 1000M 0 1000M 0% /sys/fs/cgroup
/dev/sr1 1.6G 1.6G 0 100% /run/initramfs/live
tmpfs 1000M 0 1000M 0% /tmp
varcacheyum 1000M 0 1000M 0% /var/cache/yum
vartmp 1000M 0 1000M 0% /var/tmp
tmpfs 200M 0 200M 0% /run/user/0
[root@VM-20-9-centos ~]# free -m
total used free shared buff/cache available
Mem: 1999 126 1212 16 661 1697
Swap: 0 0 0
[root@VM-20-9-centos ~]# mkdir /mnt/tmpfs
[root@VM-20-9-centos ~]# mount -t tmpfs -o size=1G tmpfs /mnt/tmpfs
[root@VM-20-9-centos ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/live-rw 7.8G 4.2G 3.5G 55% /
devtmpfs 966M 0 966M 0% /dev
tmpfs 1000M 4.0K 1000M 1% /dev/shm
tmpfs 1000M 17M 983M 2% /run
tmpfs 1000M 0 1000M 0% /sys/fs/cgroup
/dev/sr1 1.6G 1.6G 0 100% /run/initramfs/live
tmpfs 1000M 29M 972M 3% /tmp
varcacheyum 1000M 0 1000M 0% /var/cache/yum
vartmp 1000M 0 1000M 0% /var/tmp
tmpfs 200M 0 200M 0% /run/user/0
tmpfs 1.0G 0 1.0G 0% /mnt/tmpfs
[root@VM-20-9-centos ~]# cd /mnt/tmpfs
[root@VM-20-9-centos tmpfs]# wget -O "CentOS-76.img.gz" "https://api.moetools.net/get/centos-76-image"
--2024-08-05 22:06:11-- https://api.moetools.net/get/centos-76-image
Resolving api.moetools.net (api.moetools.net)... 172.67.201.42, 104.21.44.157
Connecting to api.moetools.net (api.moetools.net)|172.67.201.42|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://jcccmacid1-my.sharepoint.com/personal/dansnow_jcccmacid1_onmicrosoft_com/_layouts/15/download.aspx?share=ERN-fxsO5JdBiv_rBQ818VEBcbmTAGHyleN4sMkOsPaujQ [following]
--2024-08-05 22:06:14-- https://jcccmacid1-my.sharepoint.com/personal/dansnow_jcccmacid1_onmicrosoft_com/_layouts/15/download.aspx?share=ERN-fxsO5JdBiv_rBQ818VEBcbmTAGHyleN4sMkOsPaujQ
Resolving jcccmacid1-my.sharepoint.com (jcccmacid1-my.sharepoint.com)... 13.107.138.10, 13.107.136.10, 2620:1ec:8fa::10, ...
Connecting to jcccmacid1-my.sharepoint.com (jcccmacid1-my.sharepoint.com)|13.107.138.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 452543743 (432M) [application/x-gzip]
Saving to: ‘CentOS-76.img.gz’
100%[======================================>] 452,543,743 2.32MB/s in 2m 27s
2024-08-05 22:08:43 (2.94 MB/s) - ‘CentOS-76.img.gz’ saved [452543743/452543743]
[root@VM-20-9-centos tmpfs]# ls -a
. .. CentOS-76.img.gz
[root@VM-20-9-centos tmpfs]# fdisk -l
Disk /dev/vda: 53.7 GB, 53687091200 bytes, 104857600 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 label type: dos
Disk identifier: 0x0009ac89
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 104857566 52427759+ 83 Linux
Disk /dev/loop0: 0 MB, 20480 bytes, 40 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/loop1: 4 MB, 4513792 bytes, 8816 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/loop2: 1613 MB, 1613860864 bytes, 3152072 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/loop3: 8589 MB, 8589934592 bytes, 16777216 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/loop4: 536 MB, 536870912 bytes, 1048576 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/live-rw: 8589 MB, 8589934592 bytes, 16777216 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/live-base: 8589 MB, 8589934592 bytes, 16777216 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/live-osimg-min: 8589 MB, 8589934592 bytes, 16777216 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
[root@VM-20-9-centos tmpfs]# gzip -dc CentOS-76.img.gz | dd of=/dev/vda
3145728+0 records in
3145728+0 records out
1610612736 bytes (1.6 GB) copied, 162.819 s, 9.9 MB/s
[root@VM-20-9-centos tmpfs]#