more notes
This commit is contained in:
@ -11,6 +11,43 @@ fdisk p # existing partitions
|
||||
# Press n to create a new partition.
|
||||
# press w to write the changes to the disk.
|
||||
sudo mkfs.ext4 /dev/sdXN
|
||||
|
||||
# mount
|
||||
|
||||
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/apps/docker_volumes/portainer_data:/data portainer/portainer-ce
|
||||
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/apps/docker_volumes/portainer_data:/data portainer/portainer-ce
|
||||
|
||||
# ---------------------
|
||||
# disk info
|
||||
lsblk
|
||||
sudo fdisk -l
|
||||
sudo parted -l
|
||||
gnome-disks
|
||||
|
||||
|
||||
sudo umount -f /mnt
|
||||
|
||||
|
||||
umount --lazy /mnt/data
|
||||
|
||||
|
||||
## ntfs resize:
|
||||
sudo ntfsfix /dev/sda2
|
||||
# Shrink the NTFS Partition:
|
||||
sudo ntfsresize --size 100G /dev/sda2 (-f)
|
||||
|
||||
|
||||
mkdir
|
||||
|
||||
|
||||
# folder size:
|
||||
du -hs
|
||||
|
||||
# find big files
|
||||
find / -type f -size +100M
|
||||
|
||||
|
||||
|
||||
# find big files - NCurses Disk Utility - https://dev.yorhel.nl/ncdu
|
||||
sudo apt-get install ncdu
|
||||
ncdu
|
||||
Delete the File: Once you have highlighted the file you want to delete, press the d key. ncdu will prompt you to confirm the deletion.
|
Reference in New Issue
Block a user