NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
bullfrog1
Oct 31, 2011Tutor
compiling idle3tools under qemu for sparc
Hi I'm trying to compile idle3tools using the qemu development environment for sparc platform. At the moment it's compiling with warnings, however when I then run it on the readynas nv+ I'm also...
bullfrog1
Oct 31, 2011Tutor
Hi Baxxx
Thanks for the assistance. I could attach the drives to a pc, however it strikes me that saving everyone the trouble of doing this would be beneficial. I've basically the makings of an addon, just need to get the idle3tool to run properly and I'm done. However getting it to run is the final hurdle. As far as I can tell the 4 devices for the 4 drives are (/dev/hdc, /dev/hde, /dev/hdg, /dev/hdi) . However reconfirmation would be most useful. I've run smartctl -a against each device and I seem to get manufacturer and smart data for each drive.
As suggested it does appear to be an access problem, with the verbose option against idle3tools I get a failure at the very beginning of the program.
./idle3ctl -v -g /dev/hdc
Checking if Drive is a Western Digital Drive
outgoing cdb: 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 ec 00
ioctl(fd,SG_IO): Invalid argument
Trying legacy HDIO_DRIVE_CMD
Enabling Vendor Specific ATA commands
outgoing cdb: 85 06 20 00 45 00 00 00 00 00 44 00 57 a0 80 00
ioctl(fd,SG_IO): Invalid argument
sg16(VSC_ENABLE) failed: Invalid argument
From what I gather the drive is accessed using sg_io which is some sort of scsi routine, which has been doctored to use sata commands, and for some reason this is failing. I've now patched in the sgio.c/sgio.h from the hdparam in the radiator source and it compiles too but when run has the same error, so definately appears to be some sort of accessing problem to me, either the wrong device name or using the wrong method to access the drive. Smartctl the program that frontview uses to display smart information appears to use ioctl/ataioctl/scsiioctl rather than sg_io so perhaps I should investigate that, I've been working on this for about 4 hours now , so I'm going to give it a rest for a bit.
Thanks for your assistance. Greetings from the UK
Jeremy
Thanks for the assistance. I could attach the drives to a pc, however it strikes me that saving everyone the trouble of doing this would be beneficial. I've basically the makings of an addon, just need to get the idle3tool to run properly and I'm done. However getting it to run is the final hurdle. As far as I can tell the 4 devices for the 4 drives are (/dev/hdc, /dev/hde, /dev/hdg, /dev/hdi) . However reconfirmation would be most useful. I've run smartctl -a against each device and I seem to get manufacturer and smart data for each drive.
As suggested it does appear to be an access problem, with the verbose option against idle3tools I get a failure at the very beginning of the program.
./idle3ctl -v -g /dev/hdc
Checking if Drive is a Western Digital Drive
outgoing cdb: 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 ec 00
ioctl(fd,SG_IO): Invalid argument
Trying legacy HDIO_DRIVE_CMD
Enabling Vendor Specific ATA commands
outgoing cdb: 85 06 20 00 45 00 00 00 00 00 44 00 57 a0 80 00
ioctl(fd,SG_IO): Invalid argument
sg16(VSC_ENABLE) failed: Invalid argument
From what I gather the drive is accessed using sg_io which is some sort of scsi routine, which has been doctored to use sata commands, and for some reason this is failing. I've now patched in the sgio.c/sgio.h from the hdparam in the radiator source and it compiles too but when run has the same error, so definately appears to be some sort of accessing problem to me, either the wrong device name or using the wrong method to access the drive. Smartctl the program that frontview uses to display smart information appears to use ioctl/ataioctl/scsiioctl rather than sg_io so perhaps I should investigate that, I've been working on this for about 4 hours now , so I'm going to give it a rest for a bit.
Thanks for your assistance. Greetings from the UK
Jeremy
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!