NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Are dk wedges the only way to access GPT partitions?
On 29 January 2012 08:08, John Nemeth <jnemeth%victoria.tc.ca@localhost> wrote:
> On Jun 20, 9:20pm, "Thomas Mueller" wrote:
> }
> } > Linux and FreeBSD have more elegant ways, that can not span a
> } > sequence over two or more disks as dkwedges can.
> }
> } Sorry, I can not parse that. What do you mean with "span a sequence"?
> }
> } Martin
> }
> } By "span a sequence", I mean that sequence /dev/dk0, dk1, dk2, ...,
> } can run over two or more GPT-partitioned disks.
>
> /dev/dk0, dk1, etc. are seperated device instances, no different from
> /dev/wd0, wd1, etc.
The kernel just counts up the found wedges, no matter where, by whom
or how they have been created. I see noting inelegant here - it tells
you where the wedge is:
# dmesg| grep dk
dk0 at wd2: gdrive
dk0: 40119807 blocks at 100, type: ffs
dk1 at wd2: mdrive
dk1: 20000000 blocks at 40119907, type: ffs
dk2 at wd2: pkgsrc
dk2: 40000000 blocks at 60119907, type: ffs
dk3 at wd2: htdocs
dk3: 10000000 blocks at 100119907, type: ffs
dk4 at wd2: i_01
dk4: 40000000 blocks at 110119907, type:
dk5 at wd2: i_02
dk5: 30000000 blocks at 150119907, type: ffs
dk6 at wd2: i_03
dk6: 20000000 blocks at 180119907, type: ffs
dk7 at wd2: i_04
dk7: 10000000 blocks at 200119907, type: ffs
dk8 at wd2: i_05
dk8: 10000000 blocks at 210119907, type: ffs
dk9 at wd2: i_06
dk9: 10000000 blocks at 220119907, type: ffs
dk10 at wd2: i_07
dk10: 9999868 blocks at 230119907, type: ffs
(not that I have particular need of these wedges in this case, but it
works - four are locally mounted, seven are iSCSI served by istgt -
and yes, I know it is rather pointless, but have done it because I
can, and it is a test server, so I try to push it here and there).
>
> } Regarding dkwedges, I prefer
> } /dev/ada0p1, ada0p2, ada0p3,... or
> } /dev/da0p1, da0p2, ... (FreeBSD style) or
> }
> } /dev/sda1, sda2, ... Linux style
This is just personal preference, I was bitten recently bitten by the
FreeBSD change in device naming when I had to switch to PV mode.
> }
> } I don't know how other OSes (Mac OS X, MS-Windows, any other?) name
> } GPT partitions.
>
> I would expect MS Windows to continue using letters.
Not really. You can mount a partition on a folder or use it without a
mount point.
On one of W2k8R2 servers I use:
.....
C:\Users\ci>diskpart
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: SNEEZY
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 223 GB 1024 KB
Disk 1 Online 233 GB 1024 KB
Disk 2 Online 335 GB 0 B
Disk 3 Online 153 GB 0 B
Disk 4 Online 232 GB 0 B
Disk 5 Online 37 GB 0 B
Disk 6 Online 10 GB 1024 KB
Disk 7 Online 100 GB 99 GB
Disk 8 Online 50 GB 1024 KB
Disk 9 Online 5120 MB 1024 KB
Disk 10 Online 15 GB 14 GB
Disk 11 Online 15 GB 14 GB
Disk 12 Online 15 GB 14 GB
Disk 13 Online 15 GB 1024 KB
Disk 14 Online 15 GB 1024 KB
Disk 15 Online 15 GB 0 B *
Disk 16 Online 15 GB 1024 KB
Disk 17 Online 15 GB 1024 KB
Disk 18 Online 15 GB 1024 KB
Disk 19 Online 100 GB 0 B
Disk 20 Online 100 GB 1024 KB
Disk 21 Online 512 MB 0 B
Disk 22 Online 30 GB 1024 KB
Disk 23 Online 19 GB 19 GB
Disk 24 Online 14 GB 14 GB *
Disk 25 Online 9 GB 0 B
Disk 26 Online 4882 MB 0 B
Disk 27 Online 4882 MB 0 B
Disk 28 Online 4882 MB 0 B
Disk 29 Online 4882 MB 0 B
Disk 30 Online 8 GB 6144 KB
Disk 31 Online 76 GB 1024 KB
Disk 32 Online 76 GB 1024 KB
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 Q DVD-ROM 0 B No Media
Volume 1 D Data-01-Str NTFS Partition 223 GB Healthy
Volume 2 F Data-02-RAI NTFS Partition 233 GB Healthy
Volume 3 loan8-dk4 NTFS Partition 14 GB Healthy
C:\bin\
Volume 4 G cheeky-2 NTFS Partition 14 GB Healthy
Volume 5 loan8-dk5 NTFS Partition 14 GB Healthy
C:\loan8-dk5\
Volume 6 L cheeky-3 NTFS Partition 14 GB Healthy
Volume 7 P cheeky-1 NTFS Partition 14 GB Healthy
Volume 8 15g NTFS Partition 14 GB Healthy
C:\15g\
Volume 9 X VDisks2 NTFS Partition 99 GB Healthy
Volume 10 C SysRes-04-R NTFS Partition 335 GB Healthy System
Volume 11 Z VDisks NTFS Partition 99 GB Healthy
Volume 12 H quorum NTFS Partition 510 MB Healthy
Volume 13 temp30g NTFS Partition 29 GB Healthy
C:\30g\
Volume 14 R dk6-loan8 NTFS Partition 9 GB Healthy
Volume 15 S dk7-loan8 NTFS Partition 4880 MB Healthy
Volume 16 T dk8-loan8 NTFS Partition 4880 MB Healthy
Volume 17 W dk9-loan8 NTFS Partition 4880 MB Healthy
Volume 18 J dk10-loan8 NTFS Partition 4880 MB Healthy
Volume 19 E ExternalKit NTFS Partition 153 GB Healthy
Volume 20 K iscsi-sd1 NTFS Partition 8 GB Healthy
Volume 21 O OffLoad NTFS Partition 76 GB Healthy
Volume 22 M i1 NTFS Partition 29 GB Healthy
Volume 23 U i2 NTFS Partition 47 GB Healthy
Volume 24 V Icy Ext NTFS Partition 232 GB Healthy
Volume 25 N xf3r9 NTFS Partition 37 GB Healthy
Volume 26 10g NTFS Partition 9 GB Healthy
C:\10g\
Volume 27 Temp NTFS Partition 49 GB Healthy
C:\temp\
Volume 28 I 5gfreenas NTFS Partition 5117 MB Healthy
DISKPART>
DISKPART> select volume 26
Volume 26 is the selected volume.
DISKPART> detail disk
NEXENTA COMSTAR SCSI Disk Device
Disk ID: CCA8A1EB
Type : iSCSI
Status : Online
Path : 0
Target : 0
LUN ID : 0
Location Path : UNAVAILABLE
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 26 10g NTFS Partition 9 GB Healthy
C:\10g\
DISKPART> detail volume
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
* Disk 6 Online 10 GB 1024 KB
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No
Offline : No
BitLocker Encrypted : No
Installable : Yes
Volume Capacity : 9 GB
Volume Free Space : 8 GB
DISKPART> detail partition
Partition 1
Type : 07
Hidden: No
Active: No
Offset in Bytes: 1048576
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 26 10g NTFS Partition 9 GB Healthy
C:\10g\
(Again, nothing like this is either needed or recommended; the small
iSCSI serverd disks were
meant to be used by VirtualBox machines directly, but this did not
prove effective at the time of testing, so was left like this).
----
>
> }-- End of excerpt from "Thomas Mueller"
Chavdar Ivanov
--
----
Home |
Main Index |
Thread Index |
Old Index