This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
miscscripts [2022/06/25 18:01] dwheele [Copy ISO to USB stick] |
miscscripts [2023/01/21 18:13] (current) dwheele [Partition and Format GPT] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| # fdisk -l | # fdisk -l | ||
| + | |||
| + | ==== findmnt ==== | ||
| + | |||
| + | Detailed listing of mounts, mount points, and child directories. | ||
| + | |||
| + | > findmnt | ||
| + | |||
| ==== List USB drives, mounted and unmounted ==== | ==== List USB drives, mounted and unmounted ==== | ||
| Line 53: | Line 60: | ||
| # mount /dev/sdc1 / | # mount /dev/sdc1 / | ||
| | | ||
| - | ==== Partition and Format GPT ==== | + | ==== Partition GPT with gdisk ==== |
| + | |||
| + | # gdisk /dev/sdc | ||
| + | |||
| + | |||
| + | ==== Partition and Format GPT with PARTED | ||
| + | |||
| + | This is somewhat difficult to use because the mkpart command sometimes gives alignment errors. | ||
| $ sudo parted /dev/sdd | $ sudo parted /dev/sdd | ||
| Line 74: | Line 88: | ||
| # mkfs.ext4 -L offsitebackup /dev/sdd1 | # mkfs.ext4 -L offsitebackup /dev/sdd1 | ||
| + | |||
| ==== Mount for Test Use ==== | ==== Mount for Test Use ==== | ||
| Line 102: | Line 117: | ||
| sudo rdfind -n true / | sudo rdfind -n true / | ||
| | | ||
| - | | + | ===== Remove empty directories ===== |
| + | |||
| + | find / | ||
| + | |||
| + | ===== Remove empty files ===== | ||
| + | |||
| + | find / | ||
| + | |||