Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2010 17:56:56 -0500
From:      Jay Hall <jhall@socket.net>
To:        Jay Hall <jhall@socket.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Custom Kernel to Memory Stick
Message-ID:  <E02F9B77-613E-43AE-8620-843E3BA4FCB5@socket.net>
In-Reply-To: <595AE04E-B7B3-4F79-8618-DE1F633F6697@socket.net>
References:  <03658C6E-697A-43C5-9E6D-8B261D18F9A4@socket.net> <595AE04E-B7B3-4F79-8618-DE1F633F6697@socket.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> On Mar 29, 2010, at 10:49 AM, Jay Hall wrote:
>>
>> What would be the best way to get our custom configuration onto the  
>> memory stick?
>

OK, I managed t get our custom configuration on to the memory stick  
using dump.  After getting everything configured, what I thought was  
correctly, I am able to boot from the memory stick until it is time to  
mount the root partition.

When mounting the root partition from /dev/da0s1a, I receive the  
following message:

Trying to mount root from ufs:/dev/da0s1a
ROOT MOUNT ERROR:
If you have invalid mount options, reboot and first try the following  
from the loader prompt:

I have tried the suggested courses of action without any success.

If I type ufs:/dev/da0s1a I receive the ROOT MOUNT ERROR again.

Following is what I have done to create the bootable memory stick.

Created two partitions on the memory stick each about 2 GB.   
sysinstall was used for this.

Used bsdlabel to create the necessary labels on the memory stick.   
sysinstall was used for this.

Ran newfs as on all of the labels.  This was done from the command  
prompt.

Once everything was created, I mounted the memory stick and created an  
image of my working installation using dump.

boot0cfg was run on the memory stick.  boot0cfg -v -B -o noupdate da0

Modified the fstab on the memory stick as follows

/dev/da0s1a 	/ 	rw,noatime	0	0

Everything other than the operating system was left on the hard drive.

If anyone has any suggestions how to fix this, please let me know.  I  
am out of ideas.  Or, if you can direct me to a howto, that would be  
fine also.

Thanks for all your help and patience.



Jay



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E02F9B77-613E-43AE-8620-843E3BA4FCB5>