gcc есть. Поставьте buildroot.
А возможно ли читать параметры SMART подключенного по USB винта?
Чем можно это сделать?
Пробовал скомпилировать прямо на роутере hddtemp отсюда http://wl500g.info/showthread.php?t=10488
Опыт не удался из-за отсутствия в системе и в репозитории gcc. Кто-нибудь делал это? Или не имеет смысла ибо через USB работать не будет?
Last edited by bigest; 24-11-2007 at 09:21.
gcc есть. Поставьте buildroot.
bigest, в репозитории есть пакет с утилитами, smartmontools называется. Попробуй так:Code:smartctl -d scsi -a /dev/discs/disc0/disc
Last edited by Mam(O)n; 24-11-2007 at 14:08. Reason: очепятка в параметрах
О! По описанию то что нужно! Однако...
Пробуем просмотреть состояние: smartctl -a -d scsi /dev/discs/disc0/disc
Пробуем принудительно включить смарт в устройстве: smartctl -s on -d scsi /dev/discs/disc0/discCode:smartctl version 5.37 [mipsel-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: IC35L080 AVVA07-0 Version: 0811 Device type: disk Local Time is: Sat Nov 24 11:58:55 2007 MSK Device does not support SMART
Есть идеи как пробиться к SMART?Code:smartctl version 5.37 [mipsel-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ unable to fetch IEC (SMART) mode page [unsupported field in scsi command] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
А черт, похоже шансов нет.
FireWire, USB, and SATA disks/systems
As for USB and FireWire (IEEE 1394) disks and tape drives, the news is not good. They appear to the operating system as SCSI devices but their implementations do not usually support those SCSI commands needed by smartmontools. A consortium associated with IEEE 1394 certified some external enclosures (containing a ATA disk and a protocol bridge) as being compliant to the relevant standards. Even still, that compliance means that they tend to only support the bare minimum of commands needed for device operation (i.e. SMART support is an unsupported extra). Hopefully external USB and Firewire devices will support SAT in the future, see below.
на сайте смартмона появилась новость
что бы попробовать\проверить, нужно собрать версию из CVS командамиsmartctl has a new option '-d usbcypress'. So you can address USB devices with cypress chips. The chipset contains an ATACB proprietary pass through for ATA commands passed through SCSI commands.
у меня дело дошло только до make, дальше вываливается в Segmentation fault (походу памяти для сборки больше нужно, на ББ собирается без проблем), мож кто соберет?Code:cvs -d:pserver:anonymous@smartmontools.cvs.sourceforge.net:/cvsroot/smartmontools login # when prompted for a password, just press Enter cvs -d:pserver:anonymous@smartmontools.cvs.sourceforge.net:/cvsroot/smartmontools co sm5 cd sm5 ./autogen.sh ./configure make make install
зы исходники могу запаковать, если к цвсу никак...
после праздников попробуем, где-то с пятого мая.
В общем сабж.
К USB раутера через SATA-USB переходник подключен SATA-II HDD. Существует ли возможность просмотра таблицы S.M.A.R.T. без отключения девайса от раутера?
Установить smartmontools
Code:ipkg info smartmontools Package: smartmontools Version: 5.38-2 Status: unknown ok not-installed Section: misc Architecture: mipsel maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com> MD5Sum: 2e45c3a22850f3d4c2d147d8fa8e26fe Size: 209414 Filename: smartmontools_5.38-2_mipsel.ipk Source: http://easynews.dl.sf.net/sourceforge/smartmontools/smartmontools-5.38.tar.gz Description: Utility programs to control and monitor (SMART) built into most modern ATA and SCSI hard disks.
Прошу тогда объяснить мне, зачем в репозитарии этот пакет (smartmontools)? Ведь, на сколько мне известно, к роутеру жёсткий диск, кроме как по USB, не подключишь.