On 16/07/2023 18.07, ToddAndMargo via users wrote:
On 7/16/23 00:46, Barry wrote:
On 16 Jul 2023, at 08:44, Barry <barry@xxxxxxxxxxxxxxxx> wrote:
If nothing you need to trigger a scan of the SATA bus.
I do not know how you would do that.
Maybe try what this says? https://serverfault.com/questions/5336/how-do-i-make-linux-recognize-a-new-sata-dev-sda-drive-i-hot-swapped-in-without#5342 <https://serverfault.com/questions/5336/how-do-i-make-linux-recognize-a-new-sata-dev-sda-drive-i-hot-swapped-in-without#5342>
Barry
In the link:
echo "- - -" > /sys/class/scsi_host/host<n>/scan
Any idea what `host<n>` is suppose to be?
# ls /sys/class/scsi_host/
host0 host1 host2 host3 host4 host5 host6 host7
By any chance it is the SATA port I have it plugged into?
If so, how do I figure that out?
Assuming it is the sata port, would
# lsscsi
[1:0:0:0] disk ATA TOSHIBA DT01ACA2 ABB0 /dev/sda
[2:0:0:0] cd/dvd ATAPI iHAS124 F CL9M /dev/sr0
[N:0:2:1] disk Samsung SSD 960 EVO 1TB__1 /dev/nvme0n1
Assuming it is 'sda' you want to manipulate,
At this point I would simply run
# echo '- - -' >'/sys/bus/scsi/devices/1:0:0:0/rescan'
and after umounting it I would remove it with
# echo 'x' >'/sys/bus/scsi/devices/1:0:0:0/delete'
HTH
the "1" in [1:0:0:0] mean "host1"?
Yours in confusion,
-T
--
Eyal Lebedinsky (fedora@xxxxxxxxxxxxxx)
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue