I'm trying to ddrescue (through rescueCD) a drive, which keeps spinning down. e.g
ddrescue -N -n -A -M -f /dev/sdk /dev/sdd mapfile
Without rebooting I can get the drive for a short while through
echo "- - - " > /sys/class/scsi_host/host11/scan
I was hoping to 'watch' that command to run recurrently (bad idea?); but it will occasionally put the drive onto a new /dev/sdX. e.g. from sdf to sdg
Is there some way to force it so keep the same /dev/sdX? In a similar way to how you'd mount a partition through UUID, but for the drive. NB This won't be permanent solution, just for the rescue.
Or, is there some better way to refer to the drive that won't change? Fdisk gives and identifier which doesn't seem to have changed last time, is this a UUID for the disk?
Disk identifier: A9F95F28-4E6C-4ADB-B618-E9C68D96BFEC
ddrescue UUID=A9F95F28-4E6C-4ADB-B618-E9C68D96BFEC /mnt/rescue/testdd.image mapfile ddrescue: Both input and output files must be specified. Try 'ddrescue --help' for more information. zsh: no such file or directory: /mnt/rescue/testdd.image
Seems to suggest it's not recognising the UUID, but could be something else.
Other suggestions very welcome! Thanks in advance.
Very much out of my depth (new to linux) and am googling further (udev, wwns) but drowning, badly.