public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Aaron Schneider <notstop@users.sourceforge.net>
To: cygwin@cygwin.com
Subject: Re: RAID devices not listed under /dev on cygwin
Date: Mon, 23 Jul 2012 18:20:00 -0000	[thread overview]
Message-ID: <BLU0-SMTP20691D8192A8736EF9EA418CEDD0@phx.gbl> (raw)
In-Reply-To: <20120723074925.GA12741@calimero.vinschen.de>

[-- Attachment #1: Type: text/plain, Size: 1545 bytes --]

On 23/07/2012 9:49, Corinna Vinschen wrote:
> On Jul 21 13:09, Aaron Schneider wrote:
>> On 21/07/2012 11:11, Corinna Vinschen wrote:
>>
>> Not at all. I mean that fedora live dvd sees the virtual raid device
>> md126 while cygwin doesn't under /dev.
>
> Oh, come one.  You wrote a mail exclusively with Linux content.  How
> was anybody supposed to know this is about Cygwin at all?
>
> Cygwin lists the devices which are harddisks in terms of the native NT
> namespace.  What you see are the translations of the device names
> \Device\HarddiskX\PartitionY to /dev/sd*.
> If the device you're referring to is is not available as device in
> this notation, you won't see it.
>
> If you can find the NT equivalent of your Linux md126 device in the
> native NT namespace under /proc/sys/Device, we can talk about covering
> them somehow.  Other than that, you can probably access it via
> /cygdrive/<drive-letter>, right?
>
>
> Corinna
>

You are right that I wasn't clear enough in the title, sorry for that.

As well I made a mistake in naming, the c: drive in windows (which is 
mounted in /cygdrive/c/) is md123p3 in linux not md123 which is the 
whole raid volume.

But, taking it back into windows, I've found that the raid volume is at 
either of these locations:

\\.\PhysicalDrive0
\Device\Harddisk0\Partition0
/proc/sys/Device/Harddisk0/DR0
/proc/sys/Device/Harddisk0/Partition0 -> /proc/sys/Device/Harddisk0/DR0
IDE\DISKVOLUME01.0.00__\4&A4B6A57&0&0.0.0

Here is also the attachment Volume0_raid_info.txt with extensive 
information.



[-- Attachment #2: Volume0_raid_info.txt --]
[-- Type: text/plain, Size: 12033 bytes --]

c:\Downloads> dskwipe.exe -l
Device Name                         Size Type      Partition Type
------------------------------ --------- --------- --------------------
\\.\PhysicalDrive0                128 GB Fixed                         
\Device\Harddisk0\Partition0      128 GB Fixed                         
\Device\Harddisk0\Partition1      8.4 GB Fixed     0x27                
\Device\Harddisk0\Partition2      104 MB Fixed     NTFS                
\Device\Harddisk0\Partition3      119 GB Fixed     NTFS                
\\.\C:                            119 GB Fixed     NTFS                
\\.\D:                            2.1 GB Fixed     FAT32 


$ ls -l /proc/sys/Device/Harddisk0/
total 0
brwxrwx--x 1 Administrators SYSTEM 0, 250 Jul 23 18:14 DR0
lr--r--r-- 1 Administrators SYSTEM      0 Jul 23 18:14 Partition0 -> /proc/sys/Device/Harddisk0/DR0
lr--r--r-- 1 Administrators SYSTEM      0 Jul 23 18:14 Partition1 -> /proc/sys/Device/HarddiskVolume1
lr--r--r-- 1 Administrators SYSTEM      0 Jul 23 18:14 Partition2 -> /proc/sys/Device/HarddiskVolume2
lr--r--r-- 1 Administrators SYSTEM      0 Jul 23 18:14 Partition3 -> /proc/sys/Device/HarddiskVolume3

$ wmic diskdrive
Availability  BytesPerSector  Capabilities  CapabilityDescriptions                                       Caption  CompressionMethod  ConfigManagerErrorCode  ConfigManagerUserConfig  CreationClassName  DefaultBlockSize  Description  DeviceID            ErrorCleared  ErrorDescription  ErrorMethodology  FirmwareRevision  Index  InstallDate  InterfaceType  LastErrorCode  Manufacturer            MaxBlockSize  MaxMediaSize  MediaLoaded  MediaType              MinBlockSize  Model    Name                NeedsCleaning  NumberOfMediaSupported  Partitions  PNPDeviceID                                PowerManagementCapabilities  PowerManagementSupported  SCSIBus  SCSILogicalUnit  SCSIPort  SCSITargetId  SectorsPerTrack  SerialNumber  Signature   Size          Status  StatusInfo  SystemCreationClassName  SystemName  TotalCylinders  TotalHeads  TotalSectors  TotalTracks  TracksPerCylinder  
              512             {3, 4, 10}    {"Random Access", "Supports Writing", "SMART Notification"}  Volume0                     0                       FALSE                    Win32_DiskDrive                      Disk drive   \\.\PHYSICALDRIVE0                                                    1.0.              0                   SCSI                          (Standard disk drives)                              TRUE         Fixed hard disk media                Volume0  \\.\PHYSICALDRIVE0                                         3           IDE\DISKVOLUME01.0.00__\4&A4B6A57&0&0.0.0                                                         0        0                0         0             63               Volume0       -322836739  128034708480  OK                  Win32_ComputerSystem     VAIO        15566           255         250067790     3969330      255                

$ wmic volume
Access  Automount  Availability  BlockSize  BootVolume  Capacity      Caption                                            Compressed  ConfigManagerErrorCode  ConfigManagerUserConfig  CreationClassName  Description  DeviceID                                           DirtyBitSet  DriveLetter  DriveType  ErrorCleared  ErrorDescription  ErrorMethodology  FileSystem  FreeSpace    IndexingEnabled  InstallDate  Label            LastErrorCode  MaximumFileNameLength  Name                                               NumberOfBlocks  PageFilePresent  PNPDeviceID  PowerManagementCapabilities  PowerManagementSupported  Purpose  QuotasEnabled  QuotasIncomplete  QuotasRebuilding  SerialNumber  Status  StatusInfo  SupportsDiskQuotas  SupportsFileBasedCompression  SystemCreationClassName  SystemName  SystemVolume  
        TRUE                     4096       FALSE       104853504     \\?\Volume{79e34f92-5965-11e0-b596-806e6f6e6963}\  FALSE                                                                                        \\?\Volume{79e34f92-5965-11e0-b596-806e6f6e6963}\  FALSE                     3                                                            NTFS        73744384     TRUE                          System Reserved                 255                    \\?\Volume{79e34f92-5965-11e0-b596-806e6f6e6963}\                  FALSE                                                                                         FALSE          FALSE             FALSE             716741096                         TRUE                TRUE                                                   VAIO        TRUE          
        TRUE                     4096       TRUE        119485231104  C:\                                                FALSE                                                                                        \\?\Volume{79e34f93-5965-11e0-b596-806e6f6e6963}\  FALSE        C:           3                                                            NTFS        33593618432  TRUE                                                          255                    C:\                                                                TRUE                                                                                          FALSE          TRUE              FALSE             1656313325                        TRUE                TRUE                                                   VAIO        FALSE         
        TRUE                     4096       FALSE       8449421312    \\?\Volume{79e34f91-5965-11e0-b596-806e6f6e6963}\  FALSE                                                                                        \\?\Volume{79e34f91-5965-11e0-b596-806e6f6e6963}\  FALSE                     3                                                            NTFS        841162752    TRUE                          Recovery                        255                    \\?\Volume{79e34f91-5965-11e0-b596-806e6f6e6963}\                  FALSE                                                                                         FALSE          FALSE             FALSE             39094928                          TRUE                TRUE                                                   VAIO        FALSE         
        TRUE                                                          D:\                                                                                                                                             \\?\Volume{79e34f98-5965-11e0-b596-806e6f6e6963}\               D:           5                                                                                                                                                                          D:\                                                                                                                                                                                                                                                                                                                              VAIO                      

----------- Volume0 registry key --------------------

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\IDE\DiskVolume01.0.00__]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\IDE\DiskVolume01.0.00__\4&a4b6a57&0&0.0.0]
"DeviceDesc"="@disk.inf,%disk_devdesc%;Disk drive"
"LocationInformation"="0"
"Capabilities"=dword:00000080
"HardwareID"=hex(7):49,00,44,00,45,00,5c,00,44,00,69,00,73,00,6b,00,56,00,6f,\
  00,6c,00,75,00,6d,00,65,00,30,00,31,00,2e,00,30,00,2e,00,30,00,30,00,5f,00,\
  5f,00,00,00,49,00,44,00,45,00,5c,00,56,00,6f,00,6c,00,75,00,6d,00,65,00,30,\
  00,31,00,2e,00,30,00,2e,00,30,00,30,00,5f,00,5f,00,00,00,49,00,44,00,45,00,\
  5c,00,44,00,69,00,73,00,6b,00,56,00,6f,00,6c,00,75,00,6d,00,65,00,30,00,00,\
  00,56,00,6f,00,6c,00,75,00,6d,00,65,00,30,00,31,00,2e,00,30,00,2e,00,30,00,\
  30,00,5f,00,5f,00,00,00,47,00,65,00,6e,00,44,00,69,00,73,00,6b,00,00,00,00,\
  00
"CompatibleIDs"=hex(7):47,00,65,00,6e,00,44,00,69,00,73,00,6b,00,00,00,00,00
"ContainerID"="{00000000-0000-0000-ffff-ffffffffffff}"
"Service"="disk"
"ClassGUID"="{4d36e967-e325-11ce-bfc1-08002be10318}"
"ConfigFlags"=dword:00000000
"Driver"="{4d36e967-e325-11ce-bfc1-08002be10318}\\0000"
"Class"="DiskDrive"
"Mfg"="@disk.inf,%genmanufacturer%;(Standard disk drives)"
"FriendlyName"="Volume0"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\IDE\DiskVolume01.0.00__\4&a4b6a57&0&0.0.0\Device Parameters]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\IDE\DiskVolume01.0.00__\4&a4b6a57&0&0.0.0\Device Parameters\Partmgr]
"Attributes"=dword:00000000
"DiskId"="{3319cd68-9372-11df-9eb3-806e6f6e6963}"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\IDE\DiskVolume01.0.00__\4&a4b6a57&0&0.0.0\LogConf]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\IDE\DiskVolume01.0.00__\4&a4b6a57&0&0.0.0\Control]
"ActiveService"="Disk"


----- devmgmt.msc -> Disk Drives -> Volume0 -> Properties -> Details ----------

- Device description -
Disk drive

- Hardware Ids -
IDE\DiskVolume01.0.00__
IDE\Volume01.0.00__
IDE\DiskVolume0
Volume01.0.00__
GenDisk

- Compatible Ids -
GenDisk

- Service -
disk

- Device class -
DiskDrive

- Device class guid -
{4d36e967-e325-11ce-bfc1-08002be10318}

- Driver key -
{4d36e967-e325-11ce-bfc1-08002be10318}\0000

- Config flags -
00000000

- Manufacturer -
(Standard disk drives)

- Friendly name -
Volume0

- Location information -
0

- Physical Device Object name -
\Device\Ide\IAAStorageDevice-1

- Capabilities -
00000080
CM_DEVCAP_SURPRISEREMOVALOK

- Bus type guid -
{1530ea73-086b-11d1-a09f-00c04fc340b1}

- Legacy bus type -
0000000F

- Bus number -
00000000

- Enumerator -
IDE

- Power data -
Current power state:
D0

Power capabilities:
0000000B
PDCAP_D0_SUPPORTED
PDCAP_D1_SUPPORTED
PDCAP_D3_SUPPORTED

Power state mappings:
S0 -> D0
S1 -> D1
S2 -> Unspecified
S3 -> D3
S4 -> D3
S5 -> D3

- Removal policy -
00000001

- Removal policy default -
00000001

- Install state -
00000000

- Base container Id -
{00000000-0000-0000-ffff-ffffffffffff}

- Display name -
Volume0

- Device Instance Path -
IDE\DISKVOLUME01.0.00__\4&A4B6A57&0&0.0.0

- DevNode status -
0180000A
DN_DRIVER_LOADED
DN_STARTED
DN_NT_ENUMERATOR
DN_NT_DRIVER

- Problem code -
00000000

- Removal relations -
STORAGE\Volume\{3319cd68-9372-11df-9eb3-806e6f6e6963}#0000000000100000
STORAGE\Volume\{3319cd68-9372-11df-9eb3-806e6f6e6963}#00000001F7B00000
STORAGE\Volume\{3319cd68-9372-11df-9eb3-806e6f6e6963}#00000001FDF00000

- Parent -
PCI\VEN_8086&DEV_282A&SUBSYS_905A104D&REV_05\3&11583659&0&FA

- Siblings -
IDE\CdRomMATSHITA_DVD-RAM_UJ892AS________________1.21____\4&a4b6a57&0&0.1.0

- Container Id -
{00000000-0000-0000-ffff-ffffffffffff}

- Safe Removal Required -
<false>

- Bus reported device description -
Volume0

- Device Node Strong Name -
disk.inf:disk_device.NTamd64:disk_install:6.1.7600.16385:gendisk

- Install date -
19/07/2010 22:14:57

- First install date -
19/07/2010 22:14:57

- Driver assembly date -
21/06/2006 2:00:00

- Driver assembly version -
6.1.7600.16385

- Driver assembly description -
Disk drive

- Inf name -
disk.inf

- Inf section -
disk_install

- Inf section extension -
.NT

- Matching device Id -
gendisk

- Provider -
Microsoft

- Rank of Installed Driver -
00FF0004

- Class upper filters -
tdrpman273
PartMgr
snapman
tdrpman273

- Class default device type -
00000007

- Class default characteristics -
00000100

- Class long name -
Disk drives

- Class short name -
DiskDrive

- Class installer -
StorProp.Dll,DiskClassInstaller

- No install class -
<true>

- Silent install class -
<true>

- Class icon path -
%SystemRoot%\System32\imageres.dll,-32

- Display name -
Disk drives

- Class co-installers -
SysClass.Dll,StorageCoInstaller
SysClass.Dll,CriticalDeviceCoInstaller

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2012-07-23 18:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-20 22:31 RAID devices not listed under /dev Aaron Schneider
2012-07-21  9:12 ` Corinna Vinschen
2012-07-21 11:09   ` Aaron Schneider
2012-07-23  7:50     ` Corinna Vinschen
2012-07-23 18:20       ` Aaron Schneider [this message]
2012-07-23 19:27         ` RAID devices not listed under /dev on cygwin Corinna Vinschen
2012-07-23 19:58           ` Aaron Schneider

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU0-SMTP20691D8192A8736EF9EA418CEDD0@phx.gbl \
    --to=notstop@users.sourceforge.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).