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
Nov 01, 2011Tutor
Hi
I've added some extra code to see if I can determine the whats happening
results below
./idle3ctl -v -g /dev/hdc
Checking if Drive is a Western Digital Drive
outgoing cdb (sgio.c): 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 ec 00
ioctl (fd,SG_IO), errno=22
ioctl(fd,SG_IO) (sgio.c) : Invalid argument
Trying legacy HDIO_DRIVE_CMD
return code,rc=0
The drive /dev/hdc appears to be a Western Digital Drive it's a WDC WD20EARS-00MVWB0
Enabling Vendor Specific ATA commands
outgoing cdb (sgio.c): 85 06 20 00 45 00 00 00 00 00 44 00 57 a0 80 00
ioctl (fd,SG_IO), errno=22
ioctl(fd,SG_IO) (sgio.c) : Invalid argument
sg16(VSC_ENABLE) failed: Invalid argument
The sg16/SG_IO command is failing with error code 22 which apparently means 22.ENAMETOOLONG Filename too long
Apparently this error can occur when the buffer is too small so as this drive is a 4K sector drive not a 512 byte drive, I increased the buffer size to 4096 bytes but that made no difference either.
So now officially stuck.
Going to see if I can contact the original creator of idle3tools.
Jeremy
I've added some extra code to see if I can determine the whats happening
results below
./idle3ctl -v -g /dev/hdc
Checking if Drive is a Western Digital Drive
outgoing cdb (sgio.c): 85 08 2e 00 00 00 00 00 00 00 00 00 00 40 ec 00
ioctl (fd,SG_IO), errno=22
ioctl(fd,SG_IO) (sgio.c) : Invalid argument
Trying legacy HDIO_DRIVE_CMD
return code,rc=0
The drive /dev/hdc appears to be a Western Digital Drive it's a WDC WD20EARS-00MVWB0
Enabling Vendor Specific ATA commands
outgoing cdb (sgio.c): 85 06 20 00 45 00 00 00 00 00 44 00 57 a0 80 00
ioctl (fd,SG_IO), errno=22
ioctl(fd,SG_IO) (sgio.c) : Invalid argument
sg16(VSC_ENABLE) failed: Invalid argument
The sg16/SG_IO command is failing with error code 22 which apparently means 22.ENAMETOOLONG Filename too long
Apparently this error can occur when the buffer is too small so as this drive is a 4K sector drive not a 512 byte drive, I increased the buffer size to 4096 bytes but that made no difference either.
So now officially stuck.
Going to see if I can contact the original creator of idle3tools.
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!