NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: problem with wedges



On Sat, May 01, 2010 at 03:51:18PM +0200, Jean-Yves Migeon wrote:
> On 01.05.2010 15:13, Jukka Marin wrote:
> >xbd0: 208 GB, 512 bytes/sect x 437498880 sectors
> >xbd1: 4705 GB, 512 bytes/sect x 9867174912 sectors
> >xbd1: GPT GUID: c1349a02-e045-11dc-96ed-003048928bca
> >dk0 at xbd1: c1349a16-e045-11dc-96ed-003048928bca
> >dk0: 9867174845 blocks at 34, type: ffs
> >
> >However, I can't access dk0:
> >
> ># gpt show dk0
> >gpt: unable to open device ': No such process
> ># dkctl dk0 listwedges
> >dkctl: dk0: listwedges: Inappropriate ioctl for device
> ># disklabel dk0
> >disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
> 
> # gpt show xbd1
> # dkctl xbd1 listwedges
> 
> I do not understand what you want to get access to: a GPT partition? MBR 
> partition? A disklabel?

Previously, dom0 supplied /dev/dk0 to domU for xbd1 and domU then mounted
/dev/xbd1d as /media (ffs).

Now, dom0 gives the raw disk (sdh) to domU which detects the gpt/wedge and
attaches dk0.

I want to access the data on dk0, but I'm not sure what I'm doing wrong.
 
> What did you use to partition xbd1?

I can't access my own wedge related notes right now and it was maybe 1.5
years ago when I created the disk.  It is using gpt and wedges because
the normal disklabel does not work with disks this large.

The disk has about 3 TB of data which I do not want to lose...

  -jm


Home | Main Index | Thread Index | Old Index