Finding new virtual disks in a Linux system

for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done

fdisk -l
fdisk /dev/[diskid]
mkfds.ext4 /dev/[diskid]

vim /etc/fstab ## add the mount path for /dev/[diskid]

umount [mountpoint]
growpart /dev/[diskid]
mount /dev/[diskid] [mountpoint]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.