Running FreeBSD 7.2
I have a external hot swappable hard drive enclosure that connects via a PCI-e SATA card. BSD sees the drive when I reboot but I need to be able to swap a drive out and create a new filesystem without rebooting...So after some research I've come across the following utilities that I think can get me there.....Problem is I need help sorting this out as the man page for camcontrol and atacontrol warn of disk corruption and data loss if you're not careful.....This is a blank disk so I'm not worried about the new drive just want to make sure I don't screw the OS drive...Thanks
camcontrol
atacontrol
kldload
After removing the old device I see this in messages
OK so I tried
AND
I have a external hot swappable hard drive enclosure that connects via a PCI-e SATA card. BSD sees the drive when I reboot but I need to be able to swap a drive out and create a new filesystem without rebooting...So after some research I've come across the following utilities that I think can get me there.....Problem is I need help sorting this out as the man page for camcontrol and atacontrol warn of disk corruption and data loss if you're not careful.....This is a blank disk so I'm not worried about the new drive just want to make sure I don't screw the OS drive...Thanks
camcontrol
atacontrol
kldload
After removing the old device I see this in messages
Code:
Jun 22 09:16:47 BSD kernel: ata3: reset timeout - no device found
OK so I tried
Code:
atacontrol reinit ata3
Master: no device present
Slave: no device present
AND
Code:
atacontrol attach ata3
atacontrol: ioctl(IOCATAATTACH): File exists