NetBSD-Users archive

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

Re: gpt howto?



On Sun, 2008-02-10 at 19:23 +0200, Jukka Marin wrote:
> On Sun, Feb 10, 2008 at 05:32:49PM +0100, Manuel Bouyer wrote:
> > I just had a look at it, and it looks like the gpt error message is
> > misleading. ktrace -i shows:
> >  15574      1 gpt      NAMI  "/dev/drvctl"
> >  15574      1 gpt      RET   open -1 errno 2 No such file or directory
> >  15574      1 gpt      CALL  close(3)
> >  15574      1 gpt      RET   close 0
> >  15574      1 gpt      CALL  write(2,0xbfbfdd80,5)
> >  15574      1 gpt      GIO   fd 2 wrote 5 bytes
> >      "gpt: "
> >  15574      1 gpt      RET   write 5
> >  15574      1 gpt      CALL  write(2,0xbfbfddb0,0x1d)
> >  5574      1 gpt      GIO   fd 2 wrote 29 bytes
> >      "unable to open device 'rwd0d'"
> > 
> > So I guess you don't have 'pseudo-device drvctl' in your kernel config
> > file ...
> 
> Yes, so it seems.
> 
> On Sun, Feb 10, 2008 at 10:41:34AM -0600, jakllsch%kollasch.net@localhost 
> wrote:
> > Do you have 'pseudo-device drvctl' in your kernel?  You need it.
> 
> No, I didn't - and gpt(8) doesn't mention it.
> 
> I added drvctl and now gpt worked - do I also need to greate a wedge
> on it before using newfs?  Guess so..  this is all new to me.

Yes, you'll need to manually add/remove a wedge when dealing with gpt
partitions.

> Thanks for the help!
> 
>   -jm
> 



Home | Main Index | Thread Index | Old Index