Bug 13452

Summary: changing to root device wd0s1a \n error 22: panic: cannot mount root (2)
Product: Base System Reporter: PhilmoreW <PhilmoreW>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description PhilmoreW 1999-08-29 16:00:01 UTC
changing to root device wd0s1a
error 22: panic: cannot mount root (2)

(reboots and repeats sequence until stopped)

How-To-Repeat: PC has 2 hard disks.  Installation is to 2nd disk with 1.5 gig using default mount points.  Used kern and mfs floppies to create startup; dos files to install; included all bin, doc, manpages, proflibs, dict and info files.
Comment 1 Sheldon Hearn 1999-08-30 10:23:51 UTC
On Sun, 29 Aug 1999 07:53:23 MST, PhilmoreW@worldnet.att.net wrote:

> PC has 2 hard disks.  Installation is to 2nd disk with 1.5 gig using
> default mount points.  Used kern and mfs floppies to create startup;
> dos files to install; included all bin, doc, manpages, proflibs, dict
> and info files.

You need to fiddle with the rootdev loader variable. At the boot:
prompt, you'll need to do either

	set rootdev="wd1s1a"

or

	set rootdev=\"wd1s1a\"

Sorry, I can't remember which one works right now. Also, I'm assuming
that wd1s1a is your root partition. If I'm wrong, use the right one. :-)

Once you're into your system, you can make this a permanent change by
sticking the following line in /boot/loader.conf:

rootdev="wd1s1a"

Note that, even if the command you had to use at the boot: prompt
involved escaped quotes (\"), you should _not_ use them in
/boot/loader.conf .

Please let me know whether this helped you or not. Specifically, I'd
like to know which of the syntaxes for the boot: prompt ``set'' command
worked. :-)

Ciao,
Sheldon.
Comment 2 nbm freebsd_committer freebsd_triage 2000-08-05 23:31:32 UTC
State Changed
From-To: open->feedback

Did Sheldon's advice work?
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-03-13 02:13:35 UTC
State Changed
From-To: feedback->closed

Feedback timeout.