DragonFly bugs List (threaded) for 2003-12
Re: DF mountroot
Matthew Dillon wrote:
:Looking at it now...
:cpdup / to /tmp/hd
Good idea checking /dev/null! As soon as I get ethernet configured, and
"cvsup-date" everything, I'll take a run at adding that feature to init.
:I think you are missing /dev, /var and maybe even a properly set-up
:/tmp. As they are mounted from seperate (mfs)
:partitions with the cd boot $cpdup / /tmp/hd won't copy them as well.
:See /README on the cd.
:Max, you correctly diagnosed the problem. I was missing the contents
:of /dev. All that was needed was to boot from the DF CD and cpdup
:/dev to /tmp/hd/dev. Now DragonFly boots perfectly from the hard
:Never having used cpdup before, I failed to notice that it does not
:cross boundaries, which is logical.
:Failing to "mountroot ufs:/dev/ad0s1a" could have indicated to me to
:check to see if the device node was there to mount... but no error
:message was given by mountroot, and all of the other files were
:present on the hard drive ( including /var/* and /tmp ).
:Now all I need is the nge ethernet driver from FreeBSD.
Excellent! I'm glad you got it working. That's one to file away
in my memory.
Hmm. You know it seems to me that it would be logical to have the
init program check that at least /dev/null exists and print something
out if it doesn't. Would someone like to post a patch to do that?
Testing such a patch would be easy, just rename /dev/null and reboot
and see if init complains :-), then reboot into the CD to fix it.