pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo fdisk -l
Disk /dev/loop0: 4 KiB, 4096 bytes, 8 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: 91.69 MiB, 96141312 bytes, 187776 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: 266.63 MiB, 279584768 bytes, 546064 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: 12.32 MiB, 12922880 bytes, 25240 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: 496.98 MiB, 521121792 bytes, 1017816 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/loop5: 74.21 MiB, 77819904 bytes, 151992 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/loop6: 40.43 MiB, 42393600 bytes, 82800 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/loop7: 452 KiB, 462848 bytes, 904 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/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SK hynix BC501 HFM512GDJTNG-8310A
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: gpt
Disk identifier: 94822197-2590-407F-AFE3-47798D411FE1
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 616447 614400 300M EFI System
/dev/nvme0n1p2 616448 878591 262144 128M Microsoft reserved
/dev/nvme0n1p3 878592 1000215182 999336591 476.5G Microsoft basic data
Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM008-2FR1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6C1D76CA-8A2B-4BF3-97C6-D9538EE24F12
Device Start End Sectors Size Type
/dev/sda1 34 32767 32734 16M Microsoft reserved
/dev/sda2 1025490944 1220802559 195311616 93.1G Linux filesystem
/dev/sda3 1220802560 1298927615 78125056 37.3G Linux filesystem
Partition 1 does not start on physical sector boundary.
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo fdisk /dev/sda
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): m
Help:
GPT
M enter protective/hybrid MBR
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): n
Partition number (4-128, default 4): 4
First sector (32768-3907029134, default 1298927616):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1298927616-3907029134, default 3907029134): 2342168223
Created a new partition 4 of type 'Linux filesystem' and of size 497.5 GiB.
Command (m for help): w
The partition table has been altered.
Syncing disks.
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo fdisk -l
Disk /dev/loop0: 4 KiB, 4096 bytes, 8 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: 91.69 MiB, 96141312 bytes, 187776 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: 266.63 MiB, 279584768 bytes, 546064 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: 12.32 MiB, 12922880 bytes, 25240 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: 496.98 MiB, 521121792 bytes, 1017816 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/loop5: 74.21 MiB, 77819904 bytes, 151992 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/loop6: 40.43 MiB, 42393600 bytes, 82800 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/loop7: 452 KiB, 462848 bytes, 904 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/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SK hynix BC501 HFM512GDJTNG-8310A
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: gpt
Disk identifier: 94822197-2590-407F-AFE3-47798D411FE1
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 616447 614400 300M EFI System
/dev/nvme0n1p2 616448 878591 262144 128M Microsoft reserved
/dev/nvme0n1p3 878592 1000215182 999336591 476.5G Microsoft basic data
Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM008-2FR1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6C1D76CA-8A2B-4BF3-97C6-D9538EE24F12
Device Start End Sectors Size Type
/dev/sda1 34 32767 32734 16M Microsoft reserved
/dev/sda2 1025490944 1220802559 195311616 93.1G Linux filesystem
/dev/sda3 1220802560 1298927615 78125056 37.3G Linux filesystem
/dev/sda4 1298927616 2342168223 1043240608 497.5G Linux filesystem
Partition 1 does not start on physical sector boundary.
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo mkfs -t ext4 /dev/sda4
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 130405076 4k blocks and 32604160 inodes
Filesystem UUID: 2ec9061d-65d9-4de3-b1b1-ecd55742b14f
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ ls
data Documents fishros Pictures snap Videos
Desktop Downloads Music Public Templates
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.2G 2.1M 3.2G 1% /run
/dev/sda2 92G 8.5G 79G 10% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
efivarfs 150K 86K 60K 59% /sys/firmware/efi/efivars
/dev/nvme0n1p1 300M 32M 269M 11% /boot/efi
/dev/sda3 37G 142M 35G 1% /home
tmpfs 3.2G 1.7M 3.2G 1% /run/user/1000
/dev/sda4 489G 127M 464G 1% /media/pcl/2ec9061d-65d9-4de3-b1b1-ecd55742b14f
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo blkid | grep /dev/sda4
/dev/sda4: UUID="2ec9061d-65d9-4de3-b1b1-ecd55742b14f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="04047920-da39-c945-b3b1-873035f5d043"
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo blkid | grep /dev/sda3
/dev/sda3: UUID="084ffd07-c04e-4e5d-8a2a-0625aba4c10c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="847806c5-436e-4993-be62-1f2493964619"
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$
~$ sudo gedit /etc/fstab
sudo cp -arv /home/* /test