Monday, October 27, 2014

windows - List every DeviceHarddiskvolume.?


I've tried Diskpart commands like "list" "volume" (no it's not that at all), "disk" and "partition"; but it still don't work.


\Device\Harddiskvolume0 seems to not be used, since \Device\Harddiskvolume1 means the first Windows' partition (aka "System Reserved") and \Device\Harddiskvolume2 is for C:.


So the question is: How to list every \Device\Harddiskvolume in Windows' 7 installation disk (for BCD editing) ?


Answer



The reason I couldn't get things done is that HarddiskVolume doesn't reflect Diskpart volumes -which only lists every Windows readable volumes-.


In fact, it works with every partitions available on the disk -even the non-Windows ones-, by order they appear like in Linux's Gparted.


E.g, if you have an sda4 before sda3, this latter will show as is -sda4 then sda3- (HarddiskVolume4 then HarddiskVolume3).


So, it means that HarddiskVolume0 mainly don't exist in BCD.


The commands that helped me to understand that are:


mountvol /L
bootsect /nt60 all /force -> Be careful with that one !!!

These links also helped me:


Finally, if you have a spare Windows, just run DriveLetterView to see how Windows works with HarddiskVolume.


Note: The HarddiskVolume is a WMI/COM notation


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...