On Sun, 2023-07-16 at 16:28 -0700, ToddAndMargo via users wrote:
> On 7/16/23 00:05, ToddAndMargo via users wrote:
> > On 7/15/23 23:27, ToddAndMargo via users wrote:
> > > Hi All,
> > > 
> > > I have a removable drive sleeve that I mount SATA
> > > drives mounted in that attaches to an internal SATA
> > > port.  I use it backup my system to removable
> > > drives.  The mechanism works identical to USB
> > > flash drives.
> > > 
> > > With one exception.  A drive MUST be in the
> > > carriage when I boot up.  Otherwise, if I insert
> > > a drive AFTER the system is booted up, the drive
> > > is invisible to the system.
> > > 
> > > Now I have seen Clonzilla re-educating the system
> > > as to what drives are where.  Is there a way to
> > > goose Fedora to do the same?  Is there
> > > a way to rescan without having to reboot?
> > > 
> > > Many thanks,
> > > -T
> > > 
> > 
> > smartd.service ???
> 
> nope, that ain't it

I have an external dock with a couple of SATA HDDs in it, which is
normally spun down. The drives are RAID-1 but you can ignore that. To
spin it up I do:

SLOT1=/dev/disk/by-id/wwn-0x50014ee058f952e1    # Usually /dev/sdd
SLOT2=/dev/disk/by-id/wwn-0x50014ee212458648    # Usually /dev/sde

spunup() {              # At least one is spun up, so RAID should work
        if sudo hdparm -C $SLOT1 $SLOT2 |grep -q active/idle ; then
                return 0
        else
                return 1
        fi
}

spinup() {
        sudo hdparm $SLOT1 $SLOT2 >> /dev/null 2>&1
        for t in 1 2 ; do       # Make sure it's up
                spunup && return
                sleep 5
        done
}

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to