How Do I Rescan a Disk in Ubuntu?
Contents How Do I Scan a New Disk in Ubuntu? Example for System Disk Without Reboot: Rescan the Bus for the New Size: # Echo 1 > /Sys/Class/Block/Sda/Device/Res...
Contents
How do I scan a new disk in Ubuntu?
Example for system disk without reboot:
- Rescan the bus for the new size: # echo 1 > /sys/class/block/sda/device/rescan.
- Expand your partition (works with ansible): # parted —pretend-input-tty /dev/sda resizepart F 2 Yes 100% – F for Fix – 2 for partition – Yes to confirm – 100% for whole partition.
Must Read
How do I rescan a disk in Linux?
How to scandetect new LUN’s & SCSI disks in Linux?
- Scan each scsi host device using /sys class file.
- Run the “rescan-scsi-bus.sh” script to detect new disks.