From: Nuno L. <ml-...@xp...> - 2005-01-05 02:07:43
|
I don't know details, and I also just go by trial and error, but it has to do with Windows having the notion of "logical" and "physical" partitions numbers. For example, primary partitions are always first than extended partitions. If you had a second hard-disk, the first primary partition on the second hard-disk will have a lower letter than the extended partitions on the first hard-disk. It seems colinux paths use the logical partitions numbers, that can map to different physical partitions numbers. Eventually, we can make colinux to use physical partition numbers. It's just a matter of knowing how (eventually we can "talk" to the disk manager to get this info, but probably there is some API already)... Well, my "heads" are spinning now, so good luck ;) Regards, ~Nuno Lucas Charles Duffy, dando pulos de alegria, escreveu : > Interestingly enough, the appropriate device paths to use were not the > ones suggested by either diskpart or the Windows dd port. > > The relevant portion of dd's output reads as follows: > > \\?\Device\Harddisk0\Partition0 > Fixed hard disk media. Block size = 512 > \\?\Device\Harddisk0\Partition1 > \\?\Device\Harddisk0\Partition2 > Fixed hard disk media. Block size = 512 > \\?\Device\Harddisk0\Partition3 > Fixed hard disk media. Block size = 512 > \\?\Device\Harddisk0\Partition4 > > ...whereas a diskpart "LIST PARTITION" command (on the only hard drive > installed on the system) shows the following: > > Partition ### Type Size Offset > ------------- ---------------- ------- ------- > Partition 1 Extended 29 GB 8033 KB > Partition 2 Logical 29 GB 8064 KB > Partition 3 Primary 29 GB 29 GB > Partition 4 Primary 15 GB 59 GB <-- desired root > Partition 5 Primary 3530 MB 73 GB <-- desired swap > > ...yet, the "Partition 4" referenced here is only accessible from > coLinux as \Device\Harddisk0\Partition2 and the "Partition 5" in > diskpart needs to be referred to as \Device\Harddisk0\Partition3. > > The good news is that it works -- I have a 15GB root partition and a > 3.5GB swap partition, just as I wanted, and I'm quite certainly not > stomping on my other partitions (which are still mounted and accessible, > including after a reboot). The bad news is that I have frankly no clue > *why* it works. Enlightenment? |