elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


+  Foro de elhacker.net
|-+  Sistemas Operativos
| |-+  Windows (Moderador: Randomize)
| | |-+  ¿Cual es la clave de registro donde están listados los dispositivos ATA?
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: ¿Cual es la clave de registro donde están listados los dispositivos ATA?  (Leído 3,562 veces)
Eleкtro
Ex-Staff
*
Desconectado Desconectado

Mensajes: 9.817



Ver Perfil
¿Cual es la clave de registro donde están listados los dispositivos ATA?
« en: 30 Marzo 2014, 14:28 pm »

En un Home PC los dispositivos Serial ATA están listados en la siguiente clave:

Código:
HKLM\SYSTEM\CurrentControlSet\Enum\SCSI\(MANUFACTURER ID)

Pero he podido comprobar que en los portatiles que tienen discos duros ATA estos no están en dicha clave.

Mediante un Script identifico la ID del producto del disco duro principal (Ej: DISK&VEN_WDC_WD10&PROD_02FAEX-00Z3A0),
y necesito modificar un valor que está dentro de la clave que indiqué arriba (Ej: HKLM\SYSTEM\CurrentControlSet\Enum\SCSI\DISK&VEN_WDC_WD10&PROD_02FAEX-00Z3A0),
pero para los discos duros ATA parece que la ruta de la clave es distinta... y no la encuentro, como tampcoo encuentro información al respecto.
 
¿Alguien sabe cual es la clave de registro equivalente donde Windows lista los dispositivos ATA?

Saludos

EDITO:

Ya lo descubrí:
Código:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE


« Última modificación: 30 Marzo 2014, 15:18 pm por Eleкtro » En línea

dato000


Desconectado Desconectado

Mensajes: 3.034



Ver Perfil
Re: ¿Cual es la clave de registro donde están listados los dispositivos ATA?
« Respuesta #1 en: 31 Marzo 2014, 17:24 pm »

en IDE???? windows asume que un disco SATA es similar a un disco IDE???

bueno pues no soy el experto, pero el registro inicial que dejaste verificaba discos SCSI, muy diferentes a cualquier otro, así que pues parecia (sin decirlo sobradamente ni nada de eso, maese, no lo tomes a mal  :silbar: :silbar:) algo obvio que no era por ahi.

Vale como en mi trabajo no tengo acceso a regedit por el usuario, y en mi casa estoy actualizando mi sistema, pues me remito a esta página: http://msdn.microsoft.com/en-us/library/windows/hardware/ff546173(v=vs.85).aspx

encontrando lo siguiente, muy interesante

Citar
HKLM\SYSTEM\CurrentControlSet\Enum Registry Tree

The HKLM\SYSTEM\CurrentControlSet\Enum registry tree contains information about the devices on the system. The PnP manager creates a subkey for each device, with a name in the form of HKLM\SYSTEM\CurrentControlSet\Enum\Enumerator\deviceID. Under each of these keys is a subkey for each device instance present on the system. This subkey has information such as the device description, hardware IDs, compatible IDs, and resource requirements.

The Enum tree is reserved for use by operating system components, and its layout is subject to change. Drivers and user-mode Device Installation Components must use system-supplied functions, such as IoGetDeviceProperty and SetupDiGetDeviceRegistryProperty, to extract information from this tree. Drivers and Windows applications must not access the Enum tree directly. You can view the Enum tree directly by using Registry Editor when you debug drivers.

Particularmente este campo.

Citar
\Enum\Enumerator\deviceID

y esta parte:

Citar
Drivers and Windows applications must not access the Enum tree directly. You can view the Enum tree directly by using Registry Editor when you debug drivers.

De que forma entonces accederan los drivers al hardware??


En línea


Eleкtro
Ex-Staff
*
Desconectado Desconectado

Mensajes: 9.817



Ver Perfil
Re: ¿Cual es la clave de registro donde están listados los dispositivos ATA?
« Respuesta #2 en: 31 Marzo 2014, 20:58 pm »

No me molesta, sabes que el Hardware no es lo mio, no tenia claro donde podian estar enumerados los dispositivos IDE's

PD: Esto que escribí forma parte del "nuevo" pack de trucos que tanto te gusta xD (y deberia funcionar en cualquier caso)

Código
  1. Echo [+] Deshabilitar la cache de escritura en discos duros secundarios menos el disco principal
  2. REM Get the System's Hard Drive Model ID.
  3. For /F "Tokens=1,2,* Delims=\" %%a in (
  4. 'Reg.exe Query "HKLM\SYSTEM\CurrentControlSet\services\Disk\Enum" ^| Find /I "0    REG_SZ"'
  5. ) Do (
  6. Set "ExcludedDeviceID=%%b"
  7. )
  8. )
  9.  
  10. REM Set the 'UserWriteCacheSetting' device property, excluding then System's Hard Drive.
  11. :: SATA Hard Drive
  12. REG.exe Query "HKLM\SYSTEM\CurrentControlSet\Enum\SCSI\%ExcludedDeviceID%" 1>NUL 2>&1 && (
  13. For /F "Tokens=* Delims=" %%a In (
  14. 'REG.exe Query "HKLM\SYSTEM\CurrentControlSet\Enum\SCSI" ^| Find /I "Disk"'
  15. ) Do (
  16. Echo "%%a" | Find /I "%ExcludedDeviceID%" 1>Nul || (
  17. For /F "Tokens=* Delims=" %%b In ('REG.exe Query "%%~a"') Do (
  18. Reg.exe ADD "%%b\Device Parameters\Disk" /V "UserWriteCacheSetting" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
  19. )
  20. )
  21. )
  22. )
  23. :: IDE Hard Drive
  24. REG.exe Query "HKLM\SYSTEM\CurrentControlSet\Enum\IDE\%ExcludedDeviceID%" 1>NUL 2>&1 && (
  25. For /F "Tokens=* Delims=" %%a In (
  26. 'REG.exe Query "HKLM\SYSTEM\CurrentControlSet\Enum\IDE" ^| Find /I "Disk"'
  27. ) Do (
  28. Echo "%%a" | Find /I "%ExcludedDeviceID%" 1>Nul || (
  29. For /F "Tokens=* Delims=" %%b In ('REG.exe Query "%%~a"') Do (
  30. Reg.exe ADD "%%b\Device Parameters\Disk" /V "UserWriteCacheSetting" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
  31. )
  32. )
  33. )
  34. )

Saludos
En línea

dato000


Desconectado Desconectado

Mensajes: 3.034



Ver Perfil
Re: ¿Cual es la clave de registro donde están listados los dispositivos ATA?
« Respuesta #3 en: 31 Marzo 2014, 23:32 pm »

Que carajos es la cache de escritura de discos?? si eso no es acerca del indexado me temo que no entiendo y me daria miedo aplicar tal código, además lo siguiente:

Código
  1. REM Set the 'UserWriteCacheSetting' device property, excluding then System's Hard Drive.
  2. :: SATA Hard Drive
  3. REG.exe Query "HKLM\SYSTEM\CurrentControlSet\Enum\SCSI\%ExcludedDeviceID%" 1>NUL 2>&1 && (
  4. For /F "Tokens=* Delims=" %%a In (
  5. 'REG.exe Query "HKLM\SYSTEM\CurrentControlSet\Enum\SCSI" ^| Find /I "Disk"'
  6. ) Do (
  7. Echo "%%a" | Find /I "%ExcludedDeviceID%" 1>Nul || (
  8. For /F "Tokens=* Delims=" %%b In ('REG.exe Query "%%~a"') Do (
  9. Reg.exe ADD "%%b\Device Parameters\Disk" /V "UserWriteCacheSetting" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
  10. )
  11. )
  12. )
  13. )

No seria nuevamente...SCSI, no SATA???
En línea


Eleкtro
Ex-Staff
*
Desconectado Desconectado

Mensajes: 9.817



Ver Perfil
Re: ¿Cual es la clave de registro donde están listados los dispositivos ATA?
« Respuesta #4 en: 1 Abril 2014, 03:51 am »

No seria nuevamente...SCSI, no SATA???

No hagas caso del nombre, en la clave "...\SCSI\" están listados los dispositivos SATA (todos), CDROMS, unidades fijas, etc, como imagino que también se listarán los dispositivos SAS.

En la clave "...\IDE\" están listados los dispositivos ATA/IDE.

PD: Windows 7: Write-Caching - Enable or Disable

basicamente activar la caché mejora el rendimiento de un disco (y se nota bastante, por eso lo quiero mantener activado en el disco principal), pero si sufres un fallo de luz (o si se te resetea el PC por cualquier pantallazo azul y tu disco estaba haciendo una operación importante) podría sufrir daños en los sectores

saludos
En línea

dato000


Desconectado Desconectado

Mensajes: 3.034



Ver Perfil
Re: ¿Cual es la clave de registro donde están listados los dispositivos ATA?
« Respuesta #5 en: 1 Abril 2014, 16:03 pm »

Me gusto mucho lo de:

Citar
Disable Write Caching for Quick Removal

This option is usually the best choice for storage devices that you are likely to remove from the system frequently, such as USB flash drives, SD, MMC, Compact Flash, or similar memory cards, and other similar externally attached storage devices.

When you select the Quick Removal option, Windows 7 manages commands sent to the device using a method called write-through caching. In write-through caching, the device operates on write commands as if there were no cache. The cache may still provide a small performance benefit, but the emphasis is on treating the data as safely as possible by getting the commands to the storage device. The main benefit is that you can remove the storage device from the system quickly without risking data loss. For example, if a flash drive were to be accidentally pulled out of its port, the data being written to it is much less likely to be lost.

Esa se la sugeriria a mi jefe la proxima vez que desconecte una memoria USB...maldito hijo de !"#"!$%"!$ ignorante, no le vuelvo a prestar mi USB a esa bestia de tipo, solo por correo con ese retrasado.

Ummmmmmmm nada mal, nada mal el aporte.  ;-)
En línea


Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines