Re: smartmontools and raw VirtualBox disks
Christian Franke <Christian.Franke <at> t-online.de>
2010-09-01 09:43:44 GMT
Frédéric L. W. Meunier wrote:
> I'm testing VirtualBox on Windows 7 using a raw disk, but once I
> start it, smartmontools stops working partially on the host.
> Anybody know if this is supposed to happen, or is a bug in
> VirtualBox or smartmontools ?
>
VirtualBox probably removes host OS administrative access to the raw
disk if a guest OS has raw access.
If this is the case it is IMO good and not bug.
> BTW, I'm starting it as as administrator, so "Warning: Limited
> functionality due to missing admin rights" is misleading.
>
Yes, somewhat misleading if the above is true. Probably should be:
"Limited functionality due to missing administrative access to device"
This message is printed if the raw device ("\\.\PhysicalDrive0") cannot
be opened in R/W mode (which requires membership in local admin group)
but can be opened without any access (works from normal user). Then
smartctl uses other I/O controls (IOCTL_STORAGE_QUERY_PROPERTY,
IOCTL_STORAGE_PREDICT_FAILURE) which work without R/W mode but provide
only limited info (part of IDENTIFY info, SMART STATUS, SMART DATA, no
thresholds, no logs).
> > smartctl -a /dev/hda
> smartctl 5.40 2010-07-31 r3131 [i686-pc-mingw32-win7] (local build)
> Copyright (C) 2002-10 by Bruce Allen,
(Continue reading)