User Tools

Site Tools


miscscripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
miscscripts [2022/07/07 12:34]
dwheele [rdfind]
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 /mnt/usb-drive/     # mount /dev/sdc1 /mnt/usb-drive/
          
-==== 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 ====
miscscripts.1657197261.txt.gz · Last modified: 2022/07/07 12:34 by dwheele