Last active
February 5, 2025 13:18
-
-
Save parsibox/827dc1839380a2163ee17e0e4a39f04d to your computer and use it in GitHub Desktop.
add hard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done | |
or | |
echo "- - -" | tee /sys/class/scsi_host/host*/scan | |
lsblk | |
sudo fdisk /dev/sdb | |
Press n to create a new partition. | |
Choose p for a primary partition. | |
Accept the default partition number (1). | |
Accept the default first and last sectors to use the entire disk. | |
Press w to write the changes and exit. | |
sudo mkfs.ext4 /dev/sdb1 | |
sudo mount /dev/sdb1 /var/www | |
Get the UUID of the partition: | |
sudo blkid /dev/sdb1 | |
sudo nano /etc/fstab | |
UUID=<your-uuid> /var/www ext4 defaults 0 2 | |
test | |
sudo mount -a | |
```` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment